Android add RelativeLayout dynamically -
i'm trying insert relativelayout dynamically. method works well, layout placed laterally , not under existing
public void add(view v) { edittext et=new edittext(context); relativelayout dynamic_component = new relativelayout(this); dynamic_component.addview(et); relativo.addview(dynamic_component); }
if want layout "dynamic_component" auto-magically placed under existing views of parent layout, "relativo" parent should linearlayout vertical orientation.
Comments
Post a Comment