i am creating an app where I want to change position of my image (imageview) at runtime. I am not able to do it. I am using Linear Layout. Please can anyone give me specific code to do so.
I tried following code (from stackoverflow) but dint work :
ImageView leaf = (ImageView)findViewById(R.id.imageView1);
LayoutParams par = leaf.getLayoutParams();
par.leftMargin += 30;
leaf.setLayoutParams(par);
There was no method called setLayoutParams()