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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:38:12+00:00 2026-05-28T01:38:12+00:00

I have an problem to displaying text below listview.when items are more in list

  • 0

I have an problem to displaying text below listview.when items are more in list the below text is not appear in my emulator. how can i solve this. i have use the below code.

<?xml version="1.0" encoding="utf-8"?>
   <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:id="@+id/tableLayout1"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:background="@drawable/bg1"
       android:shrinkColumns="*"
       android:stretchColumns="*" >

       <TextView
           android:id="@+id/t7"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_marginBottom="5dp"
           android:text=""
           android:textColor="#000033"
           android:typeface="serif" />
       <TableRow
           android:id="@+id/tableRow5"
           android:layout_width="match_parent"
           android:layout_height="wrap_content" >

       <TextView
           android:id="@+id/fromstation"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text=""
           android:textColor="#DC143C"
           android:layout_gravity="left"
           android:typeface="serif"
           android:textAppearance="?android:attr/textAppearanceMedium" />

       <TextView
           android:id="@+id/to"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="To"
           android:textColor="#000000"
           android:layout_gravity="center"
           android:typeface="serif"
           android:textAppearance="?android:attr/textAppearanceMedium" />

       <TextView
           android:id="@+id/tostation"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text=""
             android:textColor="#DC143C"
             android:layout_gravity="right"
           android:typeface="serif"
           android:textAppearance="?android:attr/textAppearanceMedium" />

       </TableRow>

       <TableRow
           android:id="@+id/tableRow1"
           android:layout_width="match_parent"
           android:layout_height="wrap_content" >

           <TextView
               android:id="@+id/tname"
               android:layout_width="20dp"
               android:layout_height="wrap_content"
               android:padding="3dip"
               android:text="Train"
               android:layout_gravity="left"
               android:textColor="#9400D3"
               android:typeface="serif"
                >
           </TextView>

           <TextView
               android:id="@+id/arr"
               android:layout_width="20dp"
               android:layout_height="wrap_content"
               android:text="Arrival"
               android:layout_gravity="center"
               android:textColor="#9400D3"
               android:typeface="serif" >
           </TextView>

           <TextView
               android:id="@+id/dep"
               android:layout_width="20dp"
               android:layout_height="wrap_content"
               android:text="  Departure"
               android:textColor="#9400D3"

                 android:layout_gravity="right"     
               android:typeface="serif" >
           </TextView>
       </TableRow>


       <ListView
                  android:id="@id/android:list"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:cacheColorHint="#00000000"
                  >

       </ListView>
       <LinearLayout android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_marginTop="10dp">
        <TextView
           android:id="@+id/enq"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"

           android:text="*Marked services do not run on sunday."
           android:textAppearance="?android:attr/textAppearanceSmall"
           android:textColor="#800000"
           android:typeface="serif" />

        </LinearLayout>   

   </TableLayout>

can anyone tell me where i have done wrong.
thanks in advance.

  • 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-28T01:38:12+00:00Added an answer on May 28, 2026 at 1:38 am

    Try this, android:layout_weight="1" and change layout_height="match_parent" to android:layout_height="match_parent" inside lsitview and the below layoutview

            <ListView
                android:id="@id/android:list"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:cacheColorHint="#00000000"
                android:layout_weight="1">
    
            </ListView>
    
            <LinearLayout android:layout_width="wrap_content"
               android:layout_height="match_parent" 
               android:layout_weight="1"
               android:layout_marginTop="10dp">
    
            <TextView
                android:id="@+id/enq"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="*Marked services do not run on sunday."
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textColor="#800000"
                android:typeface="serif" />
    
            </LinearLayout>   
    

    P.S. For make a space of listview lager than the below layout use Proportion of android:layout_weight to 1:3(Listview 1: the belowlayout 3) or any Propotion you want

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

Sidebar

Related Questions

I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem with displaying the text under the mouse cursor on Picture
I have got a problem in displaying the nested list in IE, firefox displays
Am displaying a google map and below it have a text input where am
I have this array that I am displaying with a table how can i
I have problem with displaying adsense ads in ie7 google adsense adds an iframe
My problem is that I have a user that is having a problem displaying
I have problem when I try insert some data to Informix TEXT column via
I have a HTML5-canvas and write text with context.fillText(...); using a @font-face-font. Displaying the
I have a problem displaying validation errors that are triggered by ui components which

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.