Bitmap
public Bitmap bollBitmap;
bollBitmap = BitmapFactory.decodeResource(mainActivity.getResources(),
R.drawable.image_0);
STEP 1
將圖檔加入workspace路徑\res\drawable-hdpi下
STEP 2
Refresh Eclipe res檔案
STEP 3
public Bitmap bollBitmap;
bollBitmap = BitmapFactory.decodeResource(mainActivity.getResources(),
R.drawable.image_0);
沒有留言:
張貼留言