Thursday, 15 April 2010

android - PullToRefresh refresh issue -



android - PullToRefresh refresh issue -

i have adding "pulltorefresh" library using site https://github.com/johannilsson/android-pulltorefresh/tree/master/pulltorefresh working perfectly. when first time there no date in listview using below component(no data) , pull view no refresh start(i know there no data).how handle sitution if no info in list.

<com.markupartist.android.widget.pulltorefreshlistview android:id="@+id/pullview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:cachecolorhint="@android:color/transparent" android:divider="#19000000" android:dividerheight="1dp" android:fadingedge="none" android:fastscrollenabled="false" android:footerdividersenabled="false" android:headerdividersenabled="false" android:smoothscrollbar="true" />

how blank view , pulltorefresh start when user swipe top bottom?

how perform pullto refresh view automatically (without tap)any method exists in library?

how handle sitution if no info in list.

simplest approach set listview i.e. relativelayout , add together additional overlay on "no data" view. if got no info hide list , show overlay layout. if got info list, overlay view gone , list shines.

android

No comments:

Post a Comment