Sunny
Sunny

Reputation: 97

how to add imageview runtime into listview

i have a one arraylist in this textview is fixed with country name but images is not fixed it is 10,50,100 but first country name is display than all images which is created dyanmic imageview so is this possible with listview and this country name and images morethan 1 how to do with this listview i have done this with tablelayout but i have no idea about tablelayout lazy loading all lazy loading is for listview not for tablelayout so i want to ask is this possible in listview like tablelayout so i can dothis thanks in advace

HERE YOU CAN SEE IMAGE SO U CAN BETTER UNDERSTAND enter image description here

Upvotes: 1

Views: 784

Answers (1)

Siddharth Lele
Siddharth Lele

Reputation: 27748

As per the comments above:

  1. The link to the GridView Layout: http://pastebin.com/DXfut3eM
  2. The link to the custom GridView items: http://pastebin.com/57fC9uuk
  3. The link to the Main Activity: http://pastebin.com/bft4uuRT
  4. The link to the Adapter used as per Fedor's Lazy Load example: http://pastebin.com/dkP0NWju

Please note that I am not including links to the other files which are common to Fedor's example. They are pretty much the same with minor changes to suit my requirements. Use the stock files from his github and this will work exactly the same as mine.

Hope this helps and good luck.

Upvotes: 1

Related Questions