• Post Reply Bookmark Topic Watch Topic
  • New Topic

Android layout  RSS feed

 
Mike Hussey
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I create a table-row with one text-view and 4 buttons (horizontal)
 
John Joe
Ranch Hand
Posts: 443
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean you want display them in one row ?
 
Mike Hussey
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yesss
 
Tim Moores
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either a horizontal LinearLayout or a TableLayout with one row would do. Have you tried either of them? See http://www.mkyong.com/android/android-linearlayout-example/ and http://www.mkyong.com/android/android-tablelayout-example/ for examples in action.
 
John Joe
Ranch Hand
Posts: 443
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Linear Layout
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I merged your stuff with the following thread. I hope that is okay by you.
 
Mike Hussey
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I create one text-view and 4 buttons
like this.
top textview
box button
DrawViewCapture.jpg
[Thumbnail for DrawViewCapture.jpg]
 
Tim Moores
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked out TableLayout yet? That would seem to fit well.
 
Giovanni Montano
Ranch Hand
Posts: 434
7
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike Hussey wrote:How can I create a table-row with one text-view and 4 buttons (horizontal)

Some official documentation will do the trick https://developer.android.com/guide/topics/ui/declaring-layout.htm
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!