
In addition, added a @Nullable constraint on the categorySpinner and a null guard when resuming the fragment to handle possible null cases (though I don't think there will be any).
39 lines
1.2 KiB
XML
39 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/category_wrapper"
|
|
android:layout_alignParentTop="true">
|
|
|
|
<Spinner
|
|
android:id="@+id/category_spinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:paddingBottom="1dp" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
android:layout_alignBottom="@id/category_spinner"
|
|
android:background="@color/fdroid_green" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<ListView
|
|
style="@style/AppList"
|
|
android:layout_below="@id/category_wrapper" />
|
|
|
|
<TextView
|
|
style="@style/AppListEmptyText"
|
|
android:layout_below="@id/category_wrapper"
|
|
android:text="@string/empty_available_app_list" />
|
|
|
|
</RelativeLayout>
|