This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Layout question.  RSS feed

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't so much Java, but it sure is an Android question.

I'm having trouble adding some buttons underneath a scroll view.

What I want is a tab pane, with a header row, then a scroll view of a table containing a variable number of rows, then two buttons side by side.

What I have is this:




What do I need to do to get the buttons at the bottom of tab1 just below the scroll view? Everything looks just great except for the buttons!

THANKS!
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is pure speculation, but if you want the buttons at the bottom, then it's probably not a good idea to have anything after them (like the other scroll view).

What's it doing as it is? You mention that it doesn't do what you were expecting, but not what it does do.
 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lester Burnham wrote:This is pure speculation, but if you want the buttons at the bottom, then it's probably not a good idea to have anything after them (like the other scroll view).

What's it doing as it is? You mention that it doesn't do what you were expecting, but not what it does do.



The scroll view at the bottom is for the second tab.

What it does now is display everything perfectly (tabs included) but the buttons are on top of the scroll area and on top of one another.

I tried adding various layouts around the buttons but the thing would crash every time I did it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!