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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:55:35+00:00 2026-05-17T15:55:35+00:00

I have a main menu screen with a simple ListView that contains links to

  • 0

I have a main menu screen with a simple ListView that contains “links” to further screens in my app (Browse, Bookmarks, Settings, About, etc.). Underneath the ListView there is a TextView (more accurately, a TextSwitcher that rotates TextViews) that changes every 10 seconds to display a new “tip”.
alt text

In portrait mode, this works fine. There are my five list items in the ListView , and my tip label underneath. However, when I switch to landscape mode, the ListView is taller than the screen. The ListView scrolls normally, but I cannot scroll past the end of the ListView to see the TextView underneath.

I have tried every possible combination of Layouts, wrappers, ScrollViews, and layout_height parameters and I simply cannot get it to behave.

Here is the simplest code I can use to get the result pictured above:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content" android:orientation="vertical"
    android:layout_height="fill_parent">
    <LinearLayout android:id="@+id/ListLayout"
        android:layout_width="fill_parent" android:layout_height="wrap_content">
        <ListView android:id="@id/android:list" android:layout_width="fill_parent"
            android:layout_height="wrap_content" android:layout_weight="1">
        </ListView>
    </LinearLayout>
    <LinearLayout android:id="@+id/TipLayout"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:layout_below="@+id/ListLayout">
        <TextSwitcher android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:id="@+id/TipSwitcher">
            <TextView android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:textSize="7pt"
                android:id="@+id/Tip1TextView" android:text="Tip: Hello, Android!"></TextView>
            <TextView android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Tip: This is the second TextView in the TipSwitcher!"
                android:id="@+id/Tip2TextView" android:textSize="7pt"></TextView>
        </TextSwitcher>
    </LinearLayout>
</RelativeLayout>

Like I’ve said, I’ve already tried so many different combinations that I can’t list them, and for the most part I was randomly inserting XML in an attempt to get something to work the way I wanted. So I’d greatly appreciate suggestions as to how I would go about doing this the right way.

Thanks.

EDIT: Something I forgot to mention, this may or may not be relevant. My MainMenuActivity is extending ListActivity. According to the docs, “ListActivity has a default layout that consists of a single, full-screen list in the center of the screen.” But, “If you desire, you can customize the screen layout by setting your own view layout with setContentView() in onCreate().” So I don’t think the ListActivity is interfering.

  • 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-17T15:55:35+00:00Added an answer on May 17, 2026 at 3:55 pm

    Put the TextSwitcher in the ListView itself. You can use addFooterView() for this.

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

Sidebar

Related Questions

My main view controller (representing the Main Menu in my app) has a simple
I am attempting to get my app to open a settings menu screen and
I have a simple form that has a list (dropdown list generated from a
What i have here is a simple webview activity that when loaded it auto
I have a number of utilities that were written in the days of yore
I would like to use Swing to program a simple learning game. I am
I'm building a simple 2d game,and I'm wondering if some better coders than I
I am making a fighting game in Flash and while I have everything running,
I'm very new at CSS and i want to put a header on to
Someone has posted a similar question to this with no resolution, but also no

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.