Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use an action bar for a specified item of a List in android

 
elenora Rezaie
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a List of items in my android project that includes 3 classes and 2 XML files. the 3 classes, one of them is about defining the list items attributes, the other is a CustomAdapter class which extends BaseAdapter implements OnClickListener and the other one is a class that extends Activity to show the List items. in the activity class, I've defined an actionBar that has some items. Now I want that if user clicks on a item of the List, the referred item's color changes and then the user do some thing with that item with one of the action that was defined in the actionBar. I don't know how to define that if user clicks on the item with a specific position and after that he clicks on one of the actions in the actionBar, some actions should be happened for that specified item in the List. Could anyone help me to fix it? I've explored a lot of websites but didn't find the solution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic