Android chrisbanes Action bar pull to refresh not working in nested layouts -
action bar pull refresh not working in following case
<?xml version="1.0" encoding="utf-8"?> <uk.co.senab.actionbarpulltorefresh.extras.actionbarsherlock.pulltorefreshlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ptr_layout" android:layout_width="match_parent" android:layout_height="match_parent" > <relativelayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <linearlayout android:id="@+id/top_btns_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:orientation="horizontal" > <button android:id="@+id/allstores_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="all" /> <button android:id="@+id/stores_nearme_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="near me" /> <button android:id="@+id/stores_ifallow_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="dfdf" /> </linearlayout> <listview android:id="@+id/store_listview1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@+id/top_btns_layout" android:background="#ddd" android:cachecolorhint="#00000000" android:divider="@null" android:dividerheight="8dp" android:visibility="visible" > </listview> </relativelayout>
i using library sherlock library, , using actionbarsherlock
lib. dont know how use abspulltorefreshattacher using add custom views
pull refresh, can 1 please me.thanks in advance.
supported views actionbar-pulltorefresh has in-built support for:
abslistview derivatives (listview & gridview) scrollview webview
so in case sorround relativelayout , listview scrollview.
if dont solution u have read documentation =/
Comments
Post a Comment