View Single Post
Old 09-22-2010, 11:12 AM   #1
SergioTapia
New Member
 
SergioTapia's Avatar
 
Join Date: Aug 2010
Model: 7100T
PIN: N/A
Carrier: asdfasdf
Posts: 12
Default How can I handle a user screen tap on a BitmapField?

Please Login to Remove!

I want to show another screen when a user taps the screen on a picture I put up.

Here is my simple class:

Code:
public class SelectYesNoArea extends Manager {

    BitmapField yes;
    BitmapField no;
    DateField date;
    Calendar cal;

    public SelectYesNoArea(long style){
        super(style);           

        Bitmap bgPic = Bitmap.getBitmapResource("divBackgrounds.png");
        Background bg = BackgroundFactory.createBitmapBackground(bgPic);
        setBackground(bg);

        cal = Calendar.getInstance();               
        date = new DateField("",cal.getTime().getTime(), DateFormat.DATE_SHORT);
        add(date);

        Bitmap bitYes = Bitmap.getBitmapResource("yes.png");
        yes = new BitmapField(bitYes);
        add(yes);

        Bitmap bitNo = Bitmap.getBitmapResource("no.png");
        no = new BitmapField(bitNo);
        add(no);
    }   
}
How can I achieve this? I want them to be taken to another screen when he taps the picture. I need help specifically with the click handling part, the screen navigation is secondary at this point. Thanks for the help!
Offline   Reply With Quote