android - How to create imageviews dynamically? -


enter image description here

hello everyone. need create this,displayed in picture. have no idea how should implement it?. if press camera button , add photo - must added list.

i think create row of invisible imageview , initialize them when needed, think bad solution.

you can use way create imageviews dynamically:

imageview iv=new imageview(context);         iv.setid(id);         iv.layout(l, t, r, b); 

l,t,r , b specify padding left,top,right , bottom respectively can add imageview respective layout


Comments

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -