I am working on collage app. Currently, i have done adding images in individual blocks. I have done it by keeping 1 relative layout in xml and then in code by inflating collage layout in that relative layout. In that inflated view, i am dynamically adding views.
But now my problem is that i have to add stickers on that. I searched a lot for way to add it. If i add stickers using addView()
then all those views behind, wont be accessible.
Any hint/help will be appreciated.
Thanks.
View localView = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE))
.inflate(R.layout.frame_six, null);
layoutBox1 = (LinearLayout) localView
.findViewById(R.id.six_one);
layout_addPictures.addView(
localView,
new RelativeLayout.LayoutParams(layout_addPictures
.getLayoutParams().width, layout_addPictures
.getLayoutParams().height));
BlockView localBlockView = new BlockView(getApplicationContext(),
BitmapFactory.decodeFile(imagePath));
layoutBox1.addView(localBlockView);
BlockView is my custom view used for collage blocks.