• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Menu from button press

  • Thread starter Thread starter Deleted User
  • Start date Start date
D

Deleted User

Guest
Hi,

I've added a Menu to my Activity that the user can use to navigate between this Activity and my other Activity.

However, I would like to add another menu specific to pressing a checkbox on my list items.

For example, open your Mail application and click the checkbox next to an email. You'll see a menu pop up from the bottom specific to clicking that checkbox. It provides you with the ability to mark read, add star and delete. I'm looking to replicate this (I'm creating a messaging app).

So how do I create a menu specific to pressing a checkbox on my list items?
 
implement the onItemClick() method?

Not positive which method is associated with check boxes, but I am pretty sure that is the one. If not, a simple Google search will tell you. Basically you have to implement the method that handles checkbox clicks and then use a conditional to test which checkbox was selected.
 
Back
Top Bottom