• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

some issues with ExpandableList

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I've looked up into some forums and found nothing that deals with the things I wanna implement in my ExpandableList, which are:

1) I want to expand only one item (row) at a time (closes it whenever I want to expand a new item)
2) when I click on the item I want to change the text on it and add an image in that row
3) I need a button inside every item so that it can do a specific task based on its row's data
4) I tried to see if it has a kind of onListItemClick method but there isn't... how can I get the position of the item that was selected?

if you know how to accomplish ANY of these tasks I would really appreciate.

Thanks a lot guys!

--gustavo
 
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you learn from API Demos , it covers wide range of examples and i'm sure you will find solution to your list of problems.

you need to learn from Expandable List Example 1 , and More examples out there on Android.com

 
Beware the other head of science - it bites! Nibble on this message:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic