這是我的活動,我正在接收位圖並製作多個位圖並在一個圖像視圖中顯示 我在圖像視圖中獲取多個圖像但未正確設置請幫助我?無法在一個圖像視圖中設置多個位圖
private Bitmap Final_Murge_Bitmap()
{
Murge_Bitmap = null;
try {
Murge_Bitmap = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(Murge_Bitmap);
c.drawBitmap(Murge_Bitmap, 0, 0, null);
Drawable drawable1 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable2 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable3 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable4 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable5 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable6 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable7 = new BitmapDrawable(Bitmap_recieve);
Drawable drawable8 = new BitmapDrawable(Bitmap_recieve);
drawable1.setBounds(220, 220, 501, 501);
drawable2.setBounds(330, 330, 400, 400);
drawable3.setBounds(160, 150, 200, 200);
drawable4.setBounds(140, 120, 200, 200);
drawable5.setBounds(120, 100, 400, 400);
drawable6.setBounds(100, 80, 500, 500);
drawable7.setBounds(80, 70, 200, 200);
drawable8.setBounds(60, 60, 200, 200);
drawable1.draw(c);
drawable2.draw(c);
drawable3.draw(c);
drawable4.draw(c);
drawable5.draw(c);
drawable6.draw(c);
drawable7.draw(c);
drawable8.draw(c);
} catch (Exception e)
{
}
return Murge_Bitmap;
}}
你想達到什麼目的? – pskink
我想設置像gridview –
順序格式的位圖爲什麼不使用GridView? –