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 7506895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:22:47+00:00 2026-05-29T22:22:47+00:00

I am making an android application that uses these views: (Root) – LinearLayout (Child

  • 0

I am making an android application that uses these views:

(Root) – LinearLayout
(Child of root) – ListView + 3 other linearlayouts beneeth that listview. But once i add to many items to the listview, the layouts are being placed outside of the screen. Which i don’t want to. How can i make this happen? So that all of the three linearlayouts stay on the screen, at the bottom??? Please help and thanks in advance!

My screen XML code:

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




<TextView
    android:id="@+id/NotesWelcomeTextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/NotesWelcomeText" />








<ListView
    android:id="@+android:id/list"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >

</ListView



<LinearLayout
    android:id="@+id/DeleteAllItemsFromListViewLinearLayout"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:visibility="invisible" >


    <Button
        android:id="@+id/CancelButton2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/Cancel" />


    <Button
        android:id="@+id/DeleteAllButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/Delete" />

</LinearLayout>



<LinearLayout
    android:id="@+id/DeleteItemFromListViewLinearLayout"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:visibility="invisible" >


    <Button
        android:id="@+id/CancelButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/Cancel" />


    <Button
        android:id="@+id/DeleteButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/Delete" />

</LinearLayout>





<LinearLayout
    android:id="@+id/AddItemToListViewLinearLayout"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:visibility="gone" >



    <EditText
        android:id="@+id/AddItemToListViewEditText"
        android:layout_width="250dp"
        android:layout_height="wrap_content"
        android:layout_weight="1" >
    </EditText>



    <Button
        android:id="@+id/AddItemToListViewButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/Add" />

</LinearLayout>

</LinearLayout>
  • 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-29T22:22:47+00:00Added an answer on May 29, 2026 at 10:22 pm

    Try this, you’ll have to add the string references and background again, I removed them so I wouldn’t have errors

    <?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">
    
    <TextView android:id="@+id/NotesWelcomeTextView"
        android:layout_width="wrap_content" android:layout_height="wrap_content"
        android:text="NotesWelcomeText" />
    
    <ListView android:id="@+android:id/list" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:layout_above="@+id/AddItemToListViewLinearLayout"
        android:layout_below="@+id/NotesWelcomeTextView">
    
    </ListView>
    
    <LinearLayout android:id="@+id/DeleteAllItemsFromListViewLinearLayout"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:layout_weight="1" android:visibility="invisible"
        android:layout_alignParentBottom="true">
    
        <Button android:id="@+id/CancelButton2" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:text="Cancel" />
    
        <Button android:id="@+id/DeleteAllButton" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:text="Delete" />
    
    </LinearLayout>
    
    <LinearLayout android:id="@+id/DeleteItemFromListViewLinearLayout"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:layout_weight="1" android:visibility="invisible"
        android:layout_alignParentBottom="true">
    
        <Button android:id="@+id/CancelButton" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:text="Cancel" />
    
        <Button android:id="@+id/DeleteButton" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:text="Delete" />
    
    </LinearLayout>
    
    <LinearLayout android:id="@+id/AddItemToListViewLinearLayout"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:visibility="gone" android:layout_alignParentBottom="true">
    
        <EditText android:id="@+id/AddItemToListViewEditText"
            android:layout_width="250dp" android:layout_height="wrap_content"
            android:layout_weight="1">
        </EditText>
    
        <Button android:id="@+id/AddItemToListViewButton"
            android:layout_width="wrap_content" android:layout_height="wrap_content"
            android:layout_weight="1" android:text="Add" />
    
    </LinearLayout>
    

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

Sidebar

Related Questions

I am making an android application that uses a listview. I want to get
I'm making an Android application that reads an XML Internet. This application uses SAX
I'm making an Android application that, among other things, shows websites in a webview.
I am making an android application that needs to use a ListView . I
I have learned that when using android:entries with a ListView , it uses android.R.layout.simple_list_item_1
I am making an android application that will play an mp3 file once a
I'm in the process of making an Android application that creates a new file
i am making one application in Android 2.2 in that application i want to
I'm making an application for Android that needs to react to when the device
I am making a email sending application in android phone. For that I included

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.