• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Button in center

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to place command button in center using LinearLayout.
By default it is left aligned.
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try android:layout_gravity="center", or one of the other valid gravity values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic