Altering ListView Items At Runtime
I have a ListView which is defined in a layout XML. I have another XML whcih defines TextViews that are elements in each of the items in the ListView and in code use the 'inflato
Solution 1:
ListView definitely supports this scenario. Make sure your TextView have a height set to wrap_content and also have a minimum height (so they don't appear tiny when there's only one line of text.) When you change the content of a row, make sure to call notifyDatasetChanged() on ListView to tell it to relayout properly.
Post a Comment for "Altering ListView Items At Runtime"