0
說我有一個創建ImageViews,並將它們添加到佈局android,如何找到一個ImageView的位圖?
final LinearLayout linLayRow1 = (LinearLayout) findViewById(R.id.LLrow1);
...
try {
FileInputStream in1 = new FileInputStream(masterPath+shiftimage);
BufferedInputStream buf1 = new BufferedInputStream(in1);
Bitmap bMap1 = BitmapFactory.decodeStream(buf1);
ivBtnSym.setImageBitmap(bMap1);
in1.close();
buf1.close();
} catch (Exception e) { }
...
linLayBtnInside.addView(ivBtnSym);
現在我需要,masterPath +「/ 1.png」改變ImageView的是位圖,例如一個循環masterPath +「/ 2.png」...你會怎麼做?
謝謝! :)
你有一個根視圖與imageViews裏面?或ImageViews的數組? –
我有一個linearlayout(最終LinearLayout linLayRow1 =(LinearLayout)findViewById(R.id.LLrow1);)與IVs裏面。 – Roger