Wednesday, 20 April 2011

Some problem with Android ListView

While doing with my last project in android I have figure out some problem with Android ListView.

1. No divider will be shown for last list view item if ListView is used in xml layout and set layout height as wrap content. So to show the divider its required to set layout height as fill parent.

2. Its required to override areAllItemsEnabled() and return false for showing no divider of disable item. In that case divider will not shown for addjacent item of the disable item.

3. Devider will not be shown for the last item if there is a scroll that means there is not enough space to hold the ListView.

4. You can not set the constant value of view item greater than total number of view type if there are different types of view item.

5. Its required to use parent context while passing context to dialog in case of TabActivity or ActivityGroup.

No comments:

Post a Comment