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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:55:40+00:00 2026-05-16T10:55:40+00:00

I have a ScrolLView that wraps a ViewFlipper. The content in the ViewFlipper is

  • 0

I have a ScrolLView that wraps a ViewFlipper. The content in the ViewFlipper is not of equal height, so my second screen has a very long scrollbar that goes on and on with blank content:

<ScrollView android:id="@+id/outer_scroll"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:fillViewport="true">
<ViewFlipper android:id="@+id/flipper"
android:layout_width="fill_parent" android:layout_height="fill_parent">

<EditText android:id="@+id/desc" style="@style/DescriptionArea"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:enabled="false" android:focusableInTouchMode="false"
android:background="@null" />

<LinearLayout android:id="@+id/details_root"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="10dp">

<TextView android:id="@+id/item_details" style="@style/DetailsLarge"
android:textColor="#000" android:visibility="gone"
android:layout_width="wrap_content" android:layout_height="fill_parent"
android:text="@string/item_details_tags" />
<TextView android:id="@+id/tags" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:textColor="#000"
android:visibility="gone" />
</LinearLayout>
</ViewFlipper>
</ScrollView>

So, for example, the EditText block is very long, and the scroll bar captures it all. I fling to the LinearLayout, and the scrollbar continues way past the TextView content. I essentially need it to “recalculate” the view height.

Also, wrapping the EditText and LinearLayout within their own ScrollViews is not an option, because then the soft/virtual keyboard blocks the EditText content.

  • 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-16T10:55:40+00:00Added an answer on May 16, 2026 at 10:55 am

    During measure, ViewFlipper (as well as ViewSwitcher, TextSwitcher etc. – all descendants of ViewAnimator) will by default be sized according to the largest child, including the non-visible ones.

    Set the MeasureAllChildren flag to false to change this behavior to only use the currently visible child when measuring the size:

    ViewFlipper flipper = (ViewFlipper)findViewById(R.id.flipper);
    flipper.setMeasureAllChildren(false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of
I have a UIscrollview that takes up about half of a screen. The scrollview
I have a layout that has a ViewPager inside of a custom ScrollView and
I have a display screen that has more items than will fit. I would
As said in the title, I have a scrollview that should be listening for
I have a scrollview (IBOutlet); in that scrollview I have added an imageview. I
I know that ScrollView can have only one Child but in my case I
I have an app that shows a series of UIImageView s on a ScrollView
I have a scroll view with transparent background that covers most of the screen.
I have a screen in my project that contains 3 UIScrollView . These scrollviews

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.