2011-09-01 102 views

回答

1

你需要使用BitmapField,設置FOCUSABLE,然後覆蓋navigationClick()執行FieldChangeListener

0

您必須製作一個自定義字段,該字段將包含一個位圖,並將處理單擊事件或使用BitmapField並將FOCUSABLE樣式設置爲該位置。如果您在如何創建自定義字段方面需要幫助,請通知我..

0

這是可能的。

image=Bitmap.getBitmapResource("abc.png"); 
    one=new ButtonField("One") 
    { 
     protected void paint(Graphics g) 
     { 
      g.drawBitmap(0, 0, image.getWidth(), image.getHeight(), image, 0, 0); 
      super.paint(g); 
     } 
    }; 
    one.setChangeListener(this); 
    hor.add(one);