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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:40:13+00:00 2026-05-18T01:40:13+00:00

I have two textviews, a listview (this is a listactivity, by the way) and

  • 0

I have two textviews, a listview (this is a listactivity, by the way) and a datepicker. All is supposed to be displayed in this order, vertically.

The problem is that the ListView is pushing the datepicker below the screen, to the depths of the unseen world. I want the datepicker to have its own space, fixed at the bottom, while the listview grows as needed, but still allowing datepicker to have its own space.

+/- like this:

~~~~~~~~~~~~~~~ screen top

TextView 1

TextView 2

|

|

|

| ListView [*]

|

|

|

DatePicker (stays here no matter how much List grows or shrinks

~~~~~~~~~~~~~~~ screen bottom

[*] -> This listview will scroll a lot, but won’t hide datepicker!

I know it’s very lazy to ask for ready code, but could you guys share a light? This is driving me crazy. I’ve tried millions of combinations I believe.

Thank you a lot. This is all I need to finish my first app! 🙁

  • 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-18T01:40:14+00:00Added an answer on May 18, 2026 at 1:40 am

    Use RelativeLayout:

    <RelativeLayout>
      <!-- other stuff goes here -->
      <DatePicker
        android:id="@+id/some_id"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"/>
      <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@id/some_id"/>
    </RelativeLayout>
    

    By the way, I just gave you the basic and important part… you will need to complete the code (for instance, you have to give a width and height to the RelativeLayout tag, put your TextViews, etc.)

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

Sidebar

Related Questions

So I have a custom ListView object. The list items have two textviews stacked
I have two applications written in Java that communicate with each other using XML
I have two spreadsheets... when one gets modified in a certain way I want
I have a listview with custom rows and that extends SimpleAdapter. Each row consist
My ListView (two TextView , one Icon) have more than 4000 rows and It
I have a xml file name list_row.xml, this was load in a listView: <?xml
I have quite a complicated ListView . Each item looks something like this: >
I have a xml -layout file main with two textviews A/B and a view
I have two arrays of animals (for example). $array = array( array( 'id' =>
I have two arrays of System.Data.DataRow objects which I want to compare. The rows

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.