Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing position of Button at Runtime  RSS feed

 
Imran Mohd
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Hey i have scenerio where i have to change the position of Button at Runtime.... is there any method like setx(int i) and setY(int i)... if not can any one tell how can i do it...?
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually, position is determined by the container, not by the widget. So, tell your container (e.g., LinearLayout, RelativeLayout) a new set of LayoutParams, and the widget will move.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!