johannilsson / android-pulltorefresh

DEPRECATED This project aims to provide a reusable pull to refresh widget for Android.
2.47k stars 1.03k forks source link

first into listview tap screen found a bug? #51

Open crossle opened 12 years ago

crossle commented 12 years ago

I use pulltorefresh on the listview, when the first into listview, I load data, not pull to refresh.., at this time , I touch the listview, the header TAP_TO_REFRESH Inexplicably appear? but,if into the listview the first ,I pull to refresh. and touch screen .the problem is not exist.... can you help me?

crossle commented 12 years ago

How do I manually call onRefresh?

Trinea commented 12 years ago

no, it,s maybe caused by call adapter.notifyDataSetChanged(); u can call setSelection(1) to sovle it. u can use like function setSecondPositionVisible in http://code.google.com/p/trinea-android-common/source/browse/trunk/src/com/trinea/common/view/DropDownToRefreshListView.java

crossle commented 12 years ago

I have used setSelection(1) ,but failed!