KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am interested in creating a screen composed of a transparent header and a listview that scrolls behind the header. I have this working with one flaw; the FAST scroll bar also draws underneath header. For some reason, the fastscrollbar doesn't seem to respect the scrollbarStyle applied to the list view. You'll notice in the image below that the normal scroll bar works fine, but the powerscroll bar is behind the transparent header. Unfortunately the listviews I am using will often have hundreds of items, so the fastscrollbar is a necessity. Is there some way to set the "fastscrollStyle" that is not documented? I am open to any suggestions! Thank you. Here is the layout XML for reference: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@+id/myListView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clipToPadding="false" android:fastScrollEnabled="true" android:scrollbars="vertical" android:scrollbarStyle="insideOverlay" android:paddingTop="50dp"/> <TextView android:text="My Header" android:gravity="center" android:background="#8fff0000" android:layout_width="fill_parent" android:layout_height="50dp"/> </RelativeLayout> This was fixed in KitKat for ListView, however GridView still appears to exhibit this problem. Google?
Tags (comma-separated)
Save Edits
Cancel