Move android components in a LinearLayout -


i have activity has edittext programmatically added linearlayout inside scrollview.

scrollview <- linearlayout <- edittext(s) 

is possible rearrange position seting x , y axis or swing components?

this code:

for (field classfield : todofields) {      customedittext field = new customedittext(this);      field.setname(classfield.getname());      layoutfieldwrapper.addview(field);  } 

edit:

can freely move components around interface, instance: put component next setting same y , different x or overlap of them other, ecc.. it's possible?

you can use relativelayout. replace linearlayout inside scrollview. layout gives accessibility. can move views in user interface freely using type of layout. have play around attributes , try like: gravity, layout_centervertical, padding, layout_margin, layout_width, layout_height, layout_below, layout_torightof, , lot more...

reference link: http://developer.android.com/guide/topics/ui/layout/relative.html


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -