Can I Make A Listview Item Not Selectable?
I am implementing an endless ListView (like in the Twitter app). I want to make the last item not selecteble. So that if the penultimate item is selected and I scroll down with my
Solution 1:
It's pretty easy, in your adapter you can override the method isEnabled(int position) and return false for this item.
Solution 2:
if you're using custom array adapter just override this method.
@OverridepublicbooleanisEnabled(int position) {
returnfalse;
}
Post a Comment for "Can I Make A Listview Item Not Selectable?"