1. Check out our app, Forums for Android! Download and leave feedback here!

Menu from button press

Discussion in 'Application Development' started by andywhoa, Jul 22, 2010.

  1. andywhoa

    andywhoa Well-Known Member
    Thread Starter
    38

    May 15, 2010
    105
    13
    38
    Software Engineer
    West Des Moines, IA
    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
    163

    Jul 13, 2010
    1,934
    458
    163
    Male
    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...