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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:04:44+00:00 2026-05-23T03:04:44+00:00

I was following some instructions here: http://saigeethamn.blogspot.com/2010/04/custom-listview-android-developer.html The example I’m following shows the list

  • 0

I was following some instructions here: http://saigeethamn.blogspot.com/2010/04/custom-listview-android-developer.html

The example I’m following shows the list fullscreen. That’s what I want mine to do. What am I doing wrong?

examples result: examples result

My result:

my result

The example I followed used 2 xml layouts. 1 for the page. 1 for the list.

The page:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout 
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000fff"
android:layout_weight="2"
android:drawSelectorOnTop="false">
</ListView>
<TextView  android:id="@id/android:empty"
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:background="#FFff00"
android:text="No data"
/>
</LinearLayout>
</ScrollView>

And here’s the xml for the list:

<?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:orientation="vertical">

<TextView android:id="@+id/tvAccountName"         
android:textSize="16sp"         
android:textStyle="bold" 
android:textColor="#FFFF00"        
android:layout_width="fill_parent"         
android:layout_height="fill_parent"/>
<TextView android:id="@+id/tvAccountType" 
android:typeface="sans"
android:textSize="14sp"
android:textStyle="italic"
android:layout_width="wrap_content" 
android:layout_height="wrap_content"/>
<TextView android:id="@+id/tvAccountBalance"         
android:textSize="12sp"         
android:textStyle="bold"      
android:layout_width="wrap_content"         
android:layout_height="fill_parent"/>
</LinearLayout>

And here’s the entry from the manifest:

   <activity android:name=".listAccountsPage"
              android:label="@string/app_name"
              >
        <intent-filter>
            <action android:name="com.ourcreditunion.ourcumobile.LISTACCOUNTS" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
</activity>

So what did I do to cause it to not be full screen?

  • 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-23T03:04:45+00:00Added an answer on May 23, 2026 at 3:04 am

    Like @adamp says – don’t put a listview inside a scrollview. Which one is going go scroll?
    Your xml needs to be simpler also. Try something like this:

    <?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">
        <ListView
            android:layout_width="match_parent"
            android:id="@+id/listView1"
            android:layout_alignParentLeft="true"
            android:layout_height="match_parent"/>
    </RelativeLayout>
    

    If you want a colored background, set the background attribute in the RelativeLayout

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

Sidebar

Related Questions

So Im following the exact instructions as given in http://developer.android.com/resources/tutorials/views/hello-mapview.html Problem, is when I
I have just tried to switch to Ruby Enterprise Edition, as described here: http://www.rubyenterpriseedition.com/download.html
Following the instructions here: https://github.com/ry/node/wiki/Building-node.js-on-Cygwin-(Windows ) I've tried installing on two machines, either of
I added custom fonts by following some instructions suggesting add them to plist.info under
Today I was following some instructions to install a software in Linux. There was
I tried following some of the code from here and here , but I
Im trying to hammer togehter a WYSIWYG-edit in c# following some examples from here
I tried following the instructions here in order to create a static website on
I have set up some custom symfony project-level settings in the file config/project.yml following
I am having some issues installing my Windows Service. I followed Matt's instructions here

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.