onclick - Android - delayed clicks in ListView -
onclick - Android - delayed clicks in ListView -
i have next construction in app:
fragmentactivity viewpager holding multiple fragments managed fragmentstatepageradapter using compativility pack android 2.1
each fragment contains listview. each element in listview has linearlayout 2 textviews , button. linearlayout , button have onclicklisteners (separate). clicking on linearlayout starts activity. noticed clicks behavior inconsistent: action executed delayed , it's ignored no matter how many times tap. gets weirder because can tap , action executed when start scrolling list. tried various combinations of setfocusable(false) , setselectable(true) seems not create difference. ideas? i'll happy provide more details.
i ran same problem, in case solution not maintain references views, caused problems listview's view caching. after implementing getview() method utilize of converview, unusual behaviour lost / unexpected click calls gone.
android onclick android-listview android-fragments android-viewpager
Comments
Post a Comment