• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Layout question.

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic