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
Post a Comment