
This caused the entire list view to e animated when navigating back to the Available tab. Tried switching the `animateLayoutChanged=true` to a child view only containing the category spinner, but this is not how the animation handling works. It needs to animate both the thing being hidden/shown, and also the next sibling of that thing to work properly. Thus, moving the spinner to its own child and leaving the list didn't work.
31 lines
945 B
XML
31 lines
945 B
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">
|
|
|
|
<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" />
|
|
|
|
<ListView
|
|
style="@style/AppList"
|
|
android:layout_below="@id/category_spinner" />
|
|
|
|
<TextView
|
|
style="@style/AppListEmptyText"
|
|
android:layout_below="@id/category_spinner"
|
|
android:text="@string/empty_available_app_list" />
|
|
|
|
</RelativeLayout>
|