Here is my class, very simple:
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);
}
}
I just want to handle when a user taps on the bitmapField. How can I do this?