Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4380634
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:33:25+00:00 2026-05-21T12:33:25+00:00

I’m trying to put the buttonbar I’ve created on the bottom of each screen.

  • 0

I’m trying to put the buttonbar I’ve created on the bottom of each screen. I’ve succeeded for the first screen fairly easy.

Now I’ve tried to put it other screens, but it seems that it can’t stick to the bottom of the screen. When I look in the hiearchyviewer, it looks like the RelativeLayout that’s wrapped araound my layout and buttonbar, isn’t filling the whole screen, though, its height is set to fill parent.

Can anyone help me by pointing out where I’m going wrong?

This is the XML I use:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:orientation="vertical">
    <TableLayout android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:padding="5pt" android:id="@+id/table"
        android:stretchColumns="1">
        <TableRow>
            <TextView android:text="@string/Arbeiderbediende"
                android:id="@+id/txtArbeiderBediende" android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
        </TableRow>

        <TableRow android:gravity="center">
            <RadioGroup android:layout_width="fill_parent"
                android:layout_height="wrap_content" android:orientation="horizontal"
                android:id="@+id/group1">

                <RadioButton style="@style/RadioButton"
                    android:layout_width="wrap_content" android:id="@+id/rbArbeider"
                    android:text="@string/Arbeider" android:layout_height="wrap_content"
                    android:paddingLeft="18pt" />

                <RadioButton style="@style/RadioButton"
                    android:layout_width="wrap_content" android:id="@+id/rbBediende"
                    android:text="@string/Bediende" android:layout_height="wrap_content"
                    android:layout_marginLeft="20pt" android:paddingLeft="18pt" />
            </RadioGroup>
        </TableRow>

        <TableRow android:gravity="center" android:paddingTop="5dip">
            <TextView android:text="@string/OverzichtFuncties"
                android:id="@+id/txtFuncties" android:layout_width="0dip"
                android:layout_weight="1" android:layout_height="wrap_content" />

            <Spinner android:layout_height="wrap_content" style="Spinner"
                android:layout_width="0dip" android:layout_weight="2"
                android:id="@+id/cmbFuncties" />
        </TableRow>

        <TableRow android:gravity="center" android:paddingTop="5dip">
            <TextView android:text="@string/Regio" android:id="@+id/txtRegio"
                android:layout_width="0dip" android:layout_weight="1"
                android:layout_height="wrap_content" />

            <Spinner android:layout_height="wrap_content"
                android:layout_width="0dip" android:layout_weight="2" android:id="@+id/cmbRegio" />
        </TableRow>

        <TableRow android:gravity="center" android:paddingTop="5dip">
            <TextView android:text="@string/Opleiding" android:id="@+id/txtOpleidingsniveau"
                android:layout_width="0dip" android:layout_weight="1"
                android:layout_height="wrap_content" />

            <Spinner android:layout_height="wrap_content"
                android:layout_width="0dip" android:layout_weight="2"
                android:id="@+id/cmbOpleidingsniveau" />
        </TableRow>

        <Button android:text="@string/VindJobButton" android:id="@+id/btnFindJob"
            android:layout_width="fill_parent" android:layout_height="wrap_content"
            android:layout_marginTop="10dip" />


    </TableLayout>

    <stage.accent.Toolbar android:layout_width="fill_parent"
        android:layout_height="70dip" android:layout_alignParentBottom="true"
        android:layout_below="@+id/table" />
</RelativeLayout>

This is the result I achieved and the result I want to get

enter image description here enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T12:33:26+00:00Added an answer on May 21, 2026 at 12:33 pm

    In case you want your buttonbar to be always visible at the bottom of the screen and not scroll with the content, you might want to switch your RelativeLayout and ScrollView tags, and move your buttonbar to be the first child of your RelativeLayout, the ScrollView to be the second:

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
        <stage.accent.Toolbar android:id="id/buttonBar" android:layout_width="fill_parent"
            android:layout_height="70dip" android:layout_alignParentBottom="true" />
        <ScrollView android:layout_above="@+id/buttonBar"
            android:layout_width="fill_parent" android:layout_height="fill_parent">
            <TableLayout android:layout_width="fill_parent"
                android:layout_height="fill_parent" android:padding="5pt" android:id="@+id/table"
                android:stretchColumns="1">
                <TableRow>
                    <TextView android:text="@string/Arbeiderbediende"
                        android:id="@+id/txtArbeiderBediende" android:layout_width="wrap_content"
                        android:layout_height="wrap_content" />
                </TableRow>
                <TableRow android:gravity="center">
                    <RadioGroup android:layout_width="fill_parent"
                        android:layout_height="wrap_content" android:orientation="horizontal"
                        android:id="@+id/group1">
    
                        <RadioButton style="@style/RadioButton"
                            android:layout_width="wrap_content" android:id="@+id/rbArbeider"
                            android:text="@string/Arbeider" android:layout_height="wrap_content"
                            android:paddingLeft="18pt" />
    
                        <RadioButton style="@style/RadioButton"
                            android:layout_width="wrap_content" android:id="@+id/rbBediende"
                            android:text="@string/Bediende" android:layout_height="wrap_content"
                            android:layout_marginLeft="20pt" android:paddingLeft="18pt" />
                    </RadioGroup>
                </TableRow>
                <TableRow android:gravity="center" android:paddingTop="5dip">
                    <TextView android:text="@string/OverzichtFuncties"
                        android:id="@+id/txtFuncties" android:layout_width="0dip"
                        android:layout_weight="1" android:layout_height="wrap_content" />
    
                    <Spinner android:layout_height="wrap_content" style="Spinner"
                        android:layout_width="0dip" android:layout_weight="2"
                        android:id="@+id/cmbFuncties" />
                </TableRow>
                <TableRow android:gravity="center" android:paddingTop="5dip">
                    <TextView android:text="@string/Regio" android:id="@+id/txtRegio"
                        android:layout_width="0dip" android:layout_weight="1"
                        android:layout_height="wrap_content" />
    
                    <Spinner android:layout_height="wrap_content"
                        android:layout_width="0dip" android:layout_weight="2" android:id="@+id/cmbRegio" />
                </TableRow>
                <TableRow android:gravity="center" android:paddingTop="5dip">
                    <TextView android:text="@string/Opleiding" android:id="@+id/txtOpleidingsniveau"
                        android:layout_width="0dip" android:layout_weight="1"
                        android:layout_height="wrap_content" />
    
                    <Spinner android:layout_height="wrap_content"
                        android:layout_width="0dip" android:layout_weight="2"
                        android:id="@+id/cmbOpleidingsniveau" />
                </TableRow>
                <Button android:text="@string/VindJobButton" android:id="@+id/btnFindJob"
                    android:layout_width="fill_parent" android:layout_height="wrap_content"
                    android:layout_marginTop="10dip" />
            </TableLayout>
        </ScrollView>
    </RelativeLayout>
    

    This way you’ll be able to achieve what you want:

    portrait and landscape

    The button bar will be always at the bottom of your screen.

    And by scrolling the content, you’ll be able to see the last bit of it too, it won’t be hidden behind the buttonbar:

    landscape 2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.