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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:58:46+00:00 2026-06-15T06:58:46+00:00

Good day, I have an Activity which contains 4 fragments. The Activity has a

  • 0

Good day, I have an Activity which contains 4 fragments. The Activity has a footer which I use to switch between these fragment views. Now in one of my fragments, i have some widgets and the last widget is a ListView. The trouble am having is, the last 2 entries in the Listview are not displaying correctly! they are obscured by the footer. I have set my LayoutParameters for both the width and height of the Listview to FILL_PARENT. but its not working. Any idea how i can solve this? Thanks in advance.

My Layout is :

for the fragment:

<?xml version="1.0" encoding="utf-8"?>  
    <RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" 
    android:layout_height="match_parent"
    android:orientation="vertical">

    <Button android:id="@+id/line_button_id" android:layout_width="160dp"
        android:layout_height="wrap_content" android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true" android:layout_marginLeft="5dp" android:focusable="true"
        android:layout_marginTop="8dp" android:text="@string/line_graph" android:background="@drawable/temp_left_button" />

    <Button android:id="@+id/bar_button_id" android:layout_width="160dp"
        android:layout_height="wrap_content" android:layout_alignBaseline="@+id/line_button_id"
        android:layout_alignBottom="@+id/line_button_id" android:focusable="true"
        android:layout_alignParentRight="true" android:layout_marginRight="5dp"
        android:text="@string/bar_graph" android:background="@drawable/temp_right_button"></Button>"

    <FrameLayout 
       android:id="@+id/graph_framelayout_id"
       android:layout_width="fill_parent"
       android:layout_height="280dp"
       android:layout_below="@id/line_button_id"
       android:padding="4dp"
       android:layout_margin="4dp"
       android:background="@drawable/rounded_date_filter">
    </FrameLayout>

        <!-- first cell information, dashboard -->
       <LinearLayout
             android:id="@+id/row1_id" 
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:layout_margin="4dp"
             android:layout_below="@id/graph_framelayout_id"
             android:orientation="horizontal"
             android:clickable="true"
             android:background="@drawable/rounded_table_row">

            <TextView 
                   android:id="@+id/dashboard_datefrom_id"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:layout_weight="1"
                   android:layout_gravity="center_vertical"
                   android:layout_marginLeft="20dp"
                   android:text="01 may 2012"/>

               <ImageView 
                   android:id="@+id/dashboard_image_id"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:layout_weight="1"
                   android:src="@drawable/ic_action_search"/>

                  <TextView 
                   android:id="@+id/dashboard_dateto_id"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:layout_weight="1"
                   android:layout_gravity="center_vertical"
                   android:text="01 sept 2012"/>
       </LinearLayout>

       <!-- accounts overview listview -->
        <LinearLayout 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/row1_id"
            android:layout_margin="4dp"
            android:orientation="vertical"
            android:background="@drawable/rounded_date_filter">

             <TextView 
              android:id="@+id/list_text_header_id"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:padding="2dp"
              android:text="@string/data_grid_text_header_day"
              android:background="@drawable/text_header">
              </TextView>

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

        </LinearLayout>
        </RelativeLayout>

and for the Activity i have this:

<

?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

 <FrameLayout
        android:id="@+id/fragment_container_id"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
    </FrameLayout>

<include layout="@layout/footer"></include>"
</RelativeLayout>

i replace the fragments with in the framelayout of the Activity

  • 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-15T06:58:47+00:00Added an answer on June 15, 2026 at 6:58 am

    What Layout are you using in your Fragment, this surely won’t happen if you use RelativeLayout and set above attribute to your ListView like this :

    Try to add this into FrameLayout in your Activity layout.

    android:layout_above="@+id/footer"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day. I have an app that has one main activity which holds 3
Good day, I have an activity which i navigate to from an icon on
Good day I have a custom TextBox that has a IndicatorTextBox.ui.xml file as well
Good day, If I have for example the documents which have the following fields
Good day all I have the following question: I would like to use Chart
Good day, I have a hibernate mapping which goes something like this <class name=Person>
Good day, I have three activities with their corresponding fragments A , B and
Good Day I have a project that makes use of custom assemblies in the
Good Day! I have a project on Sharepoint 2010 which requires the following: 1)
Good day to you guys I have an application that has a UITabBarController for

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.