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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:34:36+00:00 2026-06-12T00:34:36+00:00

Some day I will crack the code on these Android layouts. sigh I need

  • 0

Some day I will crack the code on these Android layouts. sigh

I need an activity with a TextView fixed to the top of the screen, a scrollable listview below that, and at the bottom, fixed to the screen, an editText and a button (the idea is for users to be able to add items to the list).

Working code below as question is now answered:

 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="fill_parent"
     android:layout_height="match_parent" 
     >

     <TextView
         android:id="@+id/tvAddQuizWordQuizName"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content" 
         android:layout_alignParentTop="true"
         android:text="Quiz Name" 
         android:textSize="26dip"
         />

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

     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:tools="http://schemas.android.com/tools"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:layout_alignParentBottom="true"
         android:id="@+id/bottomArea"
         >
         <EditText
             android:id="@+id/etAddQuizWord"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_toLeftOf="@+id/btnAddQuizWord"
             android:textColor="@android:color/black" 
             android:inputType="textNoSuggestions"
             android:hint="Enter quiz word..."
             android:textSize="32dip"
             android:layout_alignParentLeft="true"
             android:background="#0000ff"
             >
         </EditText>

         <Button
             android:text="Add"
             android:id="@+id/btnAddQuizWord"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:textSize="20dip"
             android:textStyle="bold"
             android:gravity="center"
             android:layout_alignParentRight="true" 
             android:onClick="AddButtonClicked"
             />
     </RelativeLayout>

 </RelativeLayout>

The problem is, the textview at the lop and the listView are not showing. I am sure it is something very simple, but I am just not getting it.

  • 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-06-12T00:34:37+00:00Added an answer on June 12, 2026 at 12:34 am

    The layout below should position the element like you want.

    <RelativeLayout >
    
        <TextView android:id="@+id/ttvAddQuizWordQuizName"
             android:layout_alignParentTop="true"
             android:layout_width="match_parent" 
             android:layout_height="wrap_content" />
    
        <RelativeLayout android:id="@+id/InnerRelativeLayout"     
             android:layout_alignParentBottom="true" 
             android:layout_width="match_parent"
             android:layout_height="wrap_content" >
             <!-- contebt here -->
        </RelativeLayout>
    
         <ListView 
             android:layout_width="match_parent"
             android:layout_height="wrap_content" 
             android:id="@+id/list"
             android:layout_above="@id/InnerRelativeLayout"
             android:layout_below="@id/tvAddQuizWordQuizName" />
    
     </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Somewhere here on Stack Overflow, I had found the following code some day which
The other day this code was working. I changed some things and re-ran it
I am about to start a project that I hope will some day require
I need some advice on how to build my DB. I will tell you
Say I have a module which will get eventually some day on CPAN. Is
I have a problem to solve. I research some day but i cant solve
I did some all day learning and I figured out how to add rows
I have some data about a day's events that I'm trying to visualise as
There is some type Record : type Day = Integer type Description = String
I have some date and I want to get last x day before this

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.