Problem with handling click event of bitmap
Posted
by shaina
on Stack Overflow
See other posts from Stack Overflow
or by shaina
Published on 2010-04-23T11:57:29Z
Indexed on
2010/04/23
12:03 UTC
Read the original article
Hit count: 195
abc
i am using navigationClick method to handle click event of Bitmap images & Buttons it works fine when i dont use VerticalFieldManger . But when i adjust positions of field using this field manager then it doesnt capture click event of all controls just on capture Index(0) click which i think is verticalFieldmanager not other (Bitmaps & Buttons fields) Plzzzzzz help how to resolve it
code is
protected boolean navigationClick(int status, int time)
{
Field field = this.getFieldWithFocus();
if(field.getIndex()==0)
{
Dialog.alert("Index 0 (bitmaP) clicked");
}
if(field.getIndex()==1)
{
Dialog.alert("Index 1(Button 1) clicked");
}
if(field.getIndex()==2)
{
Dialog.alert("Index 2 (Button2) Clicked");
}
if(field.getIndex()==3)
{
Dialog.alert("Index 3(bitmap2) Clicked");
}
}
© Stack Overflow or respective owner