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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:13:14+00:00 2026-05-25T15:13:14+00:00

I am obviously missing some little final bit of info here – within the

  • 0

I am obviously missing some little final bit of info here – within the main RelativeLayout, the 2nd/last item, the LinearLayout with the 2 images gets “pushed off” the screen by the ViewFlipper. If I specify a hard-coded height for the 2nd layout (the LinearLayout/MapView) inside the ViewFlipper, then the disappearing LinearLayout will show up, but of course that’s not the way to do it. Thanks for any pointers here.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android"
    a:layout_width="fill_parent" 
    a:layout_height="fill_parent"
    a:background="#ffffff" 
    a:id="@+id/layout_main">

    <ViewFlipper 
        a:layout_width="fill_parent" 
        a:layout_height="wrap_content" 
        a:id="@+id/MainFlipper">

        <ScrollView 
            a:id="@+id/ScrollView1" 
            a:layout_width="fill_parent"
            a:layout_height="wrap_content">

            <LinearLayout 
                a:orientation="vertical" 
                a:layout_width="fill_parent"
                a:background="#ffffff" 
                a:layout_height="wrap_content">

                <TableLayout a:layout_width="wrap_content" a:id="@+id/tableLayout1"
                    a:layout_height="wrap_content">
                    <TableRow a:layout_height="wrap_content" a:layout_width="wrap_content">
                        <TextView a:layout_column="1" a:text="S" />
                        <Spinner a:id="@+id/SSpinner" a:layout_width="wrap_content"
                            a:layout_height="wrap_content" />
                    </TableRow>
                    <TableRow a:layout_width="wrap_content" a:layout_height="wrap_content">
                        <TextView a:layout_column="1" a:text="C" />
                        <Spinner a:id="@+id/CSpinner" a:layout_width="wrap_content"
                            a:layout_height="wrap_content" />
                    </TableRow>
                    <TableRow a:layout_width="wrap_content" a:layout_height="wrap_content">
                        <TextView a:layout_column="1" a:text="J" />
                        <Spinner a:id="@+id/JSpinner" a:layout_width="wrap_content"
                            a:layout_height="wrap_content" />
                    </TableRow>
                    <TableRow a:layout_width="wrap_content" a:layout_height="wrap_content">
                        <TextView a:layout_column="1" a:text="L" />
                        <Spinner a:id="@+id/LSpinner" a:layout_width="wrap_content"
                            a:layout_height="wrap_content" />
                    </TableRow>
                </TableLayout>
                <TextView a:text=" " a:layout_width="wrap_content"
                    a:layout_height="wrap_content" />
                <TextView a:text="Fill in only one field, then click Calculate"
                    a:layout_width="wrap_content" a:layout_height="wrap_content" />
                <TableLayout a:layout_width="wrap_content"
                    a:layout_height="wrap_content">
                    <TableRow a:layout_height="wrap_content" a:layout_width="wrap_content">
                        <TextView a:layout_column="1" a:text="Price1 ($)" />
                        <EditText a:layout_width="200px" a:inputType="numberDecimal"
                            a:id="@+id/P1EditText" a:layout_height="wrap_content"
                            a:cursorVisible="false" />
                    </TableRow>
                    <TableRow a:layout_width="wrap_content" a:layout_height="wrap_content">
                        <TextView a:layout_column="1" a:text="Page" />
                        <EditText a:layout_width="wrap_content" a:inputType="number"
                            a:id="@+id/PageNoEditText" a:layout_height="wrap_content" />
                    </TableRow>
                    <TableRow a:layout_width="wrap_content" a:layout_height="wrap_content">
                        <TextView a:layout_column="1" a:text="Price2 ($)" />
                        <EditText a:layout_width="wrap_content" a:inputType="numberDecimal"
                            a:id="@+id/P2EditText" a:layout_height="wrap_content" />
                    </TableRow>
                </TableLayout>
                <TextView a:id="@+id/E1TextView" a:text=" "
                    a:layout_width="wrap_content" a:layout_height="wrap_content" />
                <TableLayout a:layout_width="wrap_content"
                    a:layout_height="wrap_content">
                    <TableRow a:layout_height="wrap_content" a:layout_width="wrap_content">
                        <Button a:onClick="ClickCalculateButton" a:text="Calculate"
                            a:id="@+id/CalculateButton" a:layout_height="wrap_content"
                            a:layout_width="wrap_content" />
                        <Button a:onClick="ClickClearButton" a:text="Clear Fields"
                            a:id="@+id/ClearButton" a:layout_width="wrap_content"
                            a:layout_height="wrap_content" />
                    </TableRow>
                </TableLayout>
            </LinearLayout>
        </ScrollView>

        <LinearLayout 
            a:id="@+id/ScrollView2" 
            a:layout_width="fill_parent" 
            a:layout_height="wrap_content">
            <com.google.android.maps.MapView 
                a:id="@+id/mapView"
                a:enabled="true" 
                a:clickable="true" 
                a:layout_width="fill_parent"
                a:layout_height="wrap_content" 
                a:apiKey="my-key" />
        </LinearLayout>
    </ViewFlipper>

    <LinearLayout 
        a:layout_below="@+id/MainFlipper"
        a:layout_width="fill_parent" 
        a:id="@+id/linearLayout1"
        a:layout_alignParentBottom="true" 
        a:gravity="bottom|center" 
        a:layout_height="fill_parent">

        <ImageView 
            a:layout_height="wrap_content" 
            a:layout_width="wrap_content"
            a:id="@+id/imageView1" 
            a:src="@drawable/btn_toggle_on" />
        <ImageView 
            a:layout_height="wrap_content" 
            a:layout_width="wrap_content"
            a:id="@+id/imageView2" 
            a:src="@drawable/btn_toggle_off" />
    </LinearLayout>
</RelativeLayout>
  • 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-25T15:13:15+00:00Added an answer on May 25, 2026 at 3:13 pm

    Add a:layout_above="@+id/linearLayout1" to your flipper and remove a:layout_below="@+id/MainFlipper" from your last linear layout. Also, it could be easier to achieve with LinearLayout instead of RelativeLayout.

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

Sidebar

Related Questions

I’m struggling a little bit with some XAML syntax I hope someone can advise
I'm having a little trouble with some MySQL relationships. I think I'm missing something
I'm pretty new to bash scripting and I'm obviously missing some fairly basic understanding
OK, I'm feeling like this should be easy but am obviously missing something fundamental
Potentially embarrassing question, but there is obviously something I'm missing that I want/need to
I'm probably missing something obvious here but here's what I'm trying to do. From
I seem to be missing something obvious here, why would I want more than
I may be missing something obvious here, but how could I rewrite this code
I might be missing something obvious here, but I'm implementing NSCopying on one of
I'm sure this is basic stuff but I'm obviously missing something. I want to

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.