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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:41:07+00:00 2026-06-08T06:41:07+00:00

I ran up against a few problems when i use Slidingdrawer. How to fix

  • 0

I ran up against a few problems when i use Slidingdrawer. How to fix it.

Main XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" 
    android:background="@color/white">
    <SlidingDrawer 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:background="@color/black"
    android:handle="@+id/handle"
    android:id="@+id/slideD">
    <Button 
        android:layout_width="60dp" 
        android:layout_height="60dp" 
        android:id="@id/handle" 
        android:background="@drawable/arrow_up"
        />
        <LinearLayout 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content">
              <Button 
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:background="@drawable/ic_launcher"
            >
          </Button>
          <Button 
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:background="@drawable/ic_launcher"
            >
          </Button>     
        </LinearLayout>
    </SlidingDrawer>
</LinearLayout>

Activity

public class ATDTActivity extends Activity {

    SlidingDrawer slideD;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        slideD = (SlidingDrawer)findViewById(R.id.slideD);
        slideD.setOnDrawerOpenListener(new OnDrawerOpenListener(){
            @Override
            public void onDrawerOpened() {
            slideD.getHandle().setBackgroundResource(R.drawable.arrow_down);
            }
        });
        slideD.setOnDrawerCloseListener(new OnDrawerCloseListener(){
            @Override
            public void onDrawerClosed() {
            sideD.getHandle().setBackgroundResource(R.drawable.arrow_up);
                    }
        });
    }
}

Thank for help!.
Your post does not have much context to explain the code sections; please explain your scenario more clearly.

  • 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-08T06:41:08+00:00Added an answer on June 8, 2026 at 6:41 am

    Add content to SlidingDrawer:

    ....
    <SlidingDrawer
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:content="@+id/content"
            android:handle="@+id/handle"
            android:id="@+id/slideD">
     ........
     <LinearLayout
                android:id="@id/content"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">
    
      ....... 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a python class and ran pylint against it. One message it gave
I just ran Google's Page Speed application against our site and one of the
Today I ran against the fact, that sys.exit() called from a child-thread does not
I recently ran against a very interesting site that expresses a very interesting idea
I'm using Doctrine as ORM in my project but ran against a strange error:
I'm trying to benchmark a few methods against one another and for some reason
I am trying out ruby-prof and ran it against a somewhat self-contained module. The
I ran below SQL query against my MySQL database: load data local infile '/tmp/ad_packs.csv'
I recently ran up against a wall doing some bash shell programming where an
While writing some aysnc controllers in ASP.NET MVC2, I ran up against a situation

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.