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

  • SEARCH
  • Home
  • 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 5943003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:19:59+00:00 2026-05-22T16:19:59+00:00

Hey, I’m trying to create a layout to my activity but I can’t make

  • 0

Hey, I’m trying to create a layout to my activity but I can’t make a static button at the bottom of the screen, that won’t hide the list view last items.
I saw a lot of ways but all of them are hiding my list view’s last items.
I thought about using “weight” parameter, but it’s not looking so good.
The activity I’m trying to make has an image view in her top, below the image view comes the list, which is not static, and down the bottom suppose to be a static button, that won’t be over list view. This is the xml I wrote, but as you can see, if you will try to “run” it (just add some stuff inside the table layout), that if the list is long is being hidden under the button.
PS: I’m working on building the list view so for now it’s a table layout.

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="fill_parent" android:layout_width="fill_parent"
        android:background="@drawable/background">

    <ImageView android:src="@drawable/search_title"
        android:layout_alignParentTop="true" android:layout_height="wrap_content"
        android:layout_width="wrap_content" android:paddingTop="10dip"
        android:layout_gravity="center" android:id="@+id/shop_list_title" />

    <ScrollView android:layout_marginBottom="1dip"
        android:layout_height="wrap_content" android:layout_width="fill_parent"
        android:layout_below="@id/shop_list_title">
        <TableLayout android:id="@+id/shop_list_list"
            android:layout_width="fill_parent" android:layout_height="wrap_content">
        </TableLayout>
    </ScrollView>

    <Button android:id="@+id/shop_list_search_button" android:layout_alignParentBottom="true"
        android:layout_height="wrap_content" android:layout_width="fill_parent"
        android:text="@string/search_button_shoplist" />
</RelativeLayout>

Thanks in advance, Elad!

  • 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-22T16:20:00+00:00Added an answer on May 22, 2026 at 4:20 pm

    I would recommend using LinearLayout in your case.

    Here is an example. I removed all noisy stuff and left only relevant attributes:

    <?xml version="1.0" encoding="utf-8"?>     
    <LinearLayout 
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="fill_parent" 
        android:layout_width="fill_parent" >
    
        <ImageView              
            android:layout_height="wrap_content"
            android:layout_width="wrap_content" />
    
        <ScrollView     
            android:layout_width="fill_parent" 
            android:layout_height="0dp"
            android:layout_weight="1"
            android:fillViewport="true" >
    
            <TableLayout 
                android:layout_width="fill_parent" 
                android:layout_height="wrap_content">
            </TableLayout>
    
        </ScrollView>
    
        <Button
            android:layout_width="fill_parent"          
            android:layout_height="wrap_content" />
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey can we hide/show tab layout on button click which will be placed below
Hey having some trouble trying to maintain transparency on a png when i create
Hey all i have an XML file that i am trying to loop though.
Hey all i am probably overthinking this but how can i check the textbox
Hey guys, am trying to write to do type casting in java, but i
Hey I'm trying to creare a link that passes the link's text directly to
Hey, I'm looking to find a good MySQL framework for Cocoa that I can
Hey im trying to add countdown timers to an arraylist but it is crashing.
Hey I want to select records with name O'Neil, How can i do that
Hey all. Newbie question time. I'm trying to setup JMXQuery to connect to my

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.