• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
permaculture is giving a gift to your future self. After reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic