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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:56:04+00:00 2026-06-04T20:56:04+00:00

I have this (part of a) layout: <ScrollView android:layout_width=0dip android:layout_height=fill_parent android:layout_weight=0.8> <HorizontalScrollView android:id=@+id/paint_board_container android:layout_width=fill_parent

  • 0

I have this (part of a) layout:

<ScrollView android:layout_width="0dip" android:layout_height="fill_parent"
    android:layout_weight="0.8">
    <HorizontalScrollView android:id="@+id/paint_board_container" 
        android:layout_width="fill_parent" android:layout_height="wrap_content">
        <View android:layout_width="wrap_content" android:layout_height="fill_parent"
            android:background="@android:color/white"/>
    </HorizontalScrollView>
</ScrollView>

The background color of the innermost view is set to white, but I can’t see it on the screen, even if its layout width is also set to fill_parent. Where is the problem?
Thanks.

Updated layout:

<ScrollView android:layout_width="0dip" android:layout_height="fill_parent"
    android:layout_weight="0.8" android:fillViewport="true" 
    android:background="#00FF00">
    <HorizontalScrollView android:id="@+id/paint_board_container" 
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:fillViewport="true"
        android:background="#FF0000">
        <View android:layout_width="2000dip" android:layout_height="1000dip"
            android:background="@android:color/white"/>
            <!-- android:minWidth="100dip" android:minHeight="100dip"/> -->
    </HorizontalScrollView>
</ScrollView>

Now I see the vertical scroll view, but not the horizontal one, even though the innermost view’s width is set to 2000dip. How do I make the horizontal scroll view show?

  • 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-06-04T20:56:05+00:00Added an answer on June 4, 2026 at 8:56 pm

    A View by default has width and height of 0. Since the HorizontalScrollView has a height of wrap_content, it will set its height to 0 as well. Give the inner view a non-zero minimum width and height and you should see some white on the screen.

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

Sidebar

Related Questions

I have this as part of my layout: <LinearLayout android:layout_width=fill_parent android:layout_height=0dip android:orientation=horizontal android:layout_weight=0.15> <TextView
I have this text view <TextView android:id=@+id/name android:singleLine=true android:layout_height=wrap_content android:textColor=#ffffff android:textSize=16sp android:layout_width=fill_parent/> The problem
I have this code View item = View.inflate(context, R.layout.item_layout, null); LinearLayout.LayoutParams params = new
One part of my layout is supposed to have two components: A ScrollView on
I have a layout that uses a scroll view. The first part of the
I have this part of the function : $jQ('.product-collateral .product-tabs li').each(function(index){ $jQ(this).attr('id', $jQ(this).find('h3').attr('class')); if(index
I have this part of code in my functions.php: function cc_admin_enqueue_scripts($hook) { $file_dir=get_bloginfo('template_directory'); wp_enqueue_script('media-upload');
Ok, so basically I have this part of the .htaccess partly working, but not
I have this as part of my DI config, from the skeleton applicaiton: 'routes'
I have this div as part of an include fine: .connier { text-align: left;

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.