Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!