RelativeLayout 안에
동적으로 Buttondlfkd ImageView를 넣어 준후에 List에 담고 있습니다.
RelativeLayout의 List를 get() 하면서 하나씩
최종적으로 addview 해서 LinearLayout에 넣고
LinearLayout을 보여주고 있는데요.
RelativeLayout의 List 안에있는 여러개의 ImageView 와 Button 중에서
for문 돌리면서 RelativeLayout의 List 안의 ImageView만을 하나씩 얻고 싶은데요.
어떻게 방법이 있을까요...
역으로 구해야 하는 경우가 있어가지고..
고수님들 도와주세요 ㅠㅠ
ImageView img = new ImageView(RNoteAddAndEditActivity.this);
RelativeLayout ry = new RelativeLayout(RNoteAddAndEditActivity.this);
RNotePicture picture = null;
for (int i = 0; i < relativeLayoutList.size(); i++) {
picture = new RNotePicture();
ry = relativeLayoutList.get(i);
img = 이 부분을 알고 싶어요 ry. ?? 뭔가를 한다든지.. 위에서 부터 방식이 잘못 됬나요??
img.buildDrawingCache();
Bitmap bmap = img.getDrawingCache();
byte[] paramPicutres = bitmapToByteArray(bmap);
picture.setPic(paramPicutres);
picList.add(picture);
}




for(int i = 0 ; i < ry.getChildCount() ; i++) {
if(ry.getChildAt(i) instanceof ImageView) {
img = ry.getChildAt(i);
// To do something...
}
}
요런식이면 되지 않을까요?? ㅡㅡa