Skip to content Skip to sidebar Skip to footer

Implement Listview In Android Widgets

I am making a widget for one of my applications which includes a ListView. I want to display a list of 2 records on my widget. I have searched many forums and tutorials but could n

Solution 1:

CommonsGuy has a sample widget application in GitHub using a ListView in a homescreen widget: LoremWidget

Solution 2:

Bit late in the day but I've just done this using 3 horizontal linearlayouts within a vertical ll. Set each of the horizontal lls to visibility GONE and then just set visibility to VISIBLE and set text for each one you want to show

Doesn't use a listview but achieves the same end.

Post a Comment for "Implement Listview In Android Widgets"