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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:00:47+00:00 2026-06-11T23:00:47+00:00

I have a simple layout with some page title, ViewPager and SlidingDrawer. There is

  • 0

I have a simple layout with some page title, ViewPager and SlidingDrawer.

There is my layout:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

    <com.viewpagerindicator.TitlePageIndicator
            android:id="@+id/indicator"
            android:padding="5dip"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:textSize="10dp"
            />
    <android.support.v4.view.ViewPager
            android:id="@+id/viewpager"
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            />

    <SlidingDrawer
            android:id="@+id/main_layout_slider"
            android:layout_height="fill_parent"
            android:layout_width="wrap_content"
            android:handle="@+id/main_layout_arrow_image"
            android:content="@+id/main_layout_opinions"
            >
        <Button
                android:id="@+id/main_layout_arrow_image"
                android:src="@android:drawable/arrow_up_float"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                />
        <LinearLayout
                android:id="@+id/main_layout_opinions"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:orientation="horizontal">
            <ImageButton
                    android:id="@+id/main_layout_opinions_categories"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>

            <ImageButton
                    android:id="@+id/main_layout_opinions_settings"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>

            <ImageButton
                    android:id="@+id/main_layout_opinions_search"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>
        </LinearLayout>

    </SlidingDrawer>

</LinearLayout>

Without SlidingDrawer it work perfectly but, when i add it, ViewPager is lose control.

And one more thing why Sliding Drawer take all view, not only height of buttons, how can I chane it?

  • 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-11T23:00:48+00:00Added an answer on June 11, 2026 at 11:00 pm

    You can achieve this by using a relativelayout instead of the linear layout and in your sliding drawer mention this android:layout_below=”@+id/idOfYourHeaderWhichShouldNotBeCovered”

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

Sidebar

Related Questions

I have a rather simple ListView row: <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=wrap_content
I have a fairly simple layout with an image, and some textviews wrapped in
I have a simple page layout with two divs--one on top, and one on
I have a simple screen created in xml, the parent layout is a relativelayout
I have simple WPF layout task and looking to avoid code-behind if possible. I
I have created a simple layout using the HTML div tag. I would like
I have to make a simple layout in android but have problem with the
I'm trying to build the simple layout that I have got in the image
I am having trouble with a simple table layout in ExtJs 4.0. I have
Simple - I have a layout that is 800 by 600. When I press

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.