android - Use relative layout in java code -


i m making , app allows user change interface moving items buttons, erasing them , adding new. need know how can change layout properties (like torightof) of buttons in relative layout through java code, can dynamically relocate them.

i have tried using layoutparams havent manage find solution. have read other post suggest using absolute layout , changing properties x , y. way or can use relative layout ?

please help.

you need use combinations of addrule/getrule relativelayout.layoutparams class.

here's link some example.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -