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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -