Menu from button press


Last Updated:

  1. andywhoa

    andywhoa Well-Known Member This Topic's Starter

    Joined:
    May 15, 2010
    Messages:
    105
    Likes Received:
    13
    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?
     

    Advertisement
  2. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    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.
     

Share This Page

Loading...