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

  • Home
  • SEARCH
  • 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 5975801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:08:15+00:00 2026-05-22T21:08:15+00:00

when using the layout shown below the ScrollView does not show, while if I

  • 0

when using the layout shown below the ScrollView does not show, while if I remove the RelativeLayout just before in the tree (@id/top_bar), it does show. Anybody could explain why?

thanks

Jul

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/item_detail" android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <RelativeLayout android:id="@+id/top_bar"
        android:layout_width="fill_parent" android:layout_height="44dp"
        android:background="@drawable/nav_bar">
        <ImageButton android:id="@+id/btn_map"
            android:layout_width="34dp" android:layout_height="34dp"
            android:src="@drawable/btn_map"
            android:layout_centerVertical="true"
            android:layout_alignParentRight="true"
            android:layout_marginRight="10dp" />
        <TextView android:id="@+id/top_bar_title"
            android:layout_width="200dp" android:layout_height="wrap_content"
            android:layout_centerVertical="true" android:gravity="center"
            android:textSize="16sp" android:textColor="#FFFFFF"
            android:textStyle="bold" android:layout_marginLeft="60dp" />
    </RelativeLayout>

    <ScrollView android:layout_width="fill_parent"
        android:layout_height="wrap_content">

        <LinearLayout android:layout_width="fill_parent"
            android:layout_height="200dp">
            <RelativeLayout android:layout_width="fill_parent"
                android:layout_height="200dp">
                <ViewFlipper android:id="@+id/itemdetail_gallery"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent">

                </ViewFlipper>
                <RelativeLayout android:layout_width="fill_parent"
                    android:layout_height="fill_parent">
                    <ImageView android:id="@+id/btn_gallery_prev"
                        android:layout_alignParentLeft="true"
                        android:layout_centerVertical="true"
                        android:src="@drawable/bg_diapo_left"
                        android:layout_marginLeft="5dp"
                        android:layout_width="30dp"
                        android:layout_height="50dp" android:visibility="gone" />
                    <ImageView android:id="@+id/btn_gallery_next"
                        android:layout_alignParentRight="true"
                        android:layout_centerVertical="true"
                        android:src="@drawable/bg_diapo_right"
                        android:layout_marginRight="5dp"
                        android:layout_width="30dp"
                        android:layout_height="50dp" android:visibility="gone" />
                    <TextView android:id="@+id/btn_gallery_ind"
                        android:layout_alignParentTop="true"
                        android:layout_alignParentRight="true"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="5dp"
                        android:background="@drawable/bg_diapo_ind"
                        android:gravity="center" android:layout_width="30dp"
                        android:layout_height="20dp" android:visibility="gone" />
                </RelativeLayout>
            </RelativeLayout>
        </LinearLayout>
    </ScrollView>

</LinearLayout>
  • 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-22T21:08:16+00:00Added an answer on May 22, 2026 at 9:08 pm

    Default orientation for a LinearLayout is horizontal. The ScrollView is being placed next to the RelativeLayout. Since you have android:layout_width="fill_parent" your ScrollView is never being shown. If you want your layout to be vertical then you need to set is as so. Try setting android:orientation="vertical" in your LinearLayout.

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

Sidebar

Related Questions

The button doesn't show in this layout(code below),image and textview are shown. I tried
I'm getting some very jerky scrolling while using the code below to create a
I want to show images using drawBitmap() method. But before I want to resize
I'm trying to make a scrollable horizontal menu using HorizontalScrollView using the layout shown
I want to make a table layout as shown in the below screen: I
I'm using the layout support (sitemesh) in Grails which works fine. I'd like to
I'm using this layout to create a 2 column fluid web page. What I
I have a 3 column layout using table-less design. <div id=main> <div id=left></div> <div
I have panel that is using group layout to organize some label. I want
I'm developing a 3-column website using a layout like this: <div id='left' style='left: 0;

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.