FadingActionBar
FadingActionBar copied to clipboard
Possibility to have a Fragment with a RelativeLayout as root and a listview along with other elements inside
Hello Manuel.
I want to use your library at a project but I am having hard time accomplish a rather common scenario I believe.
I have a fragment where I want to present a listView and a progress bar that is visible while the content is loading. I use a RelativeLayout with a ListView and another RelativeLayout inside (for the loader).
What should be the configuration of the FadingActionBar and the layout that can accomplish this functionality, while still having the parallax effect ?
Having something like:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/windowBackground" android:orientation="vertical"
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="15dp"
android:text="This is a long text that can be even longer sometimes and go to more than one lines. Really !"
android:textAppearance="@android:style/TextAppearance.Medium" />
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:cacheColorHint="@android:color/transparent" />
/RelativeLayout>
has as a result the list to have a height of as big as a single entry is.
Any help would be appreciated :)
Maybe your root RelativeLayout should have android:layout_height="match_parent" ?