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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:10:42+00:00 2026-05-23T15:10:42+00:00

Been searching for a solution and i partially got it but still need to

  • 0

Been searching for a solution and i partially got it but still need to ask..
I use my finger to open the drawer.
Through code im closing the drawer after user point on any of the icons.

the width=110 is because there are 3 icons in the drawer and i want them to stay
on the right side just like the picture show below.

im using this

<translate android:fromXDelta="80%" android:toXDelta="100%" android:duration="300"/>

It kind of works but after it closes, it pops out again. why..

Also it’s not good to write the width=110 in stone, but i could not come up with
a better solution at this time. the text_ball, delete_ball and plus_ball are all
a set of ldpi, hdpi and mdpi.

sorry if this sounds like two question. just trying to input as much info as possible for cooking the right answer.

<LinearLayout android:id="@+id/linearLayoutSlidingDrawerRight"
    android:layout_width="110dip"
    android:layout_height="wrap_content"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_alignParentRight="true"
    android:layout_centerVertical="true"
    >

    <com.bent.solid.editimage.WrappingSlidingDrawer android:id="@+id/slidingDrawerRight"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:handle="@+id/slideHandleButtonRight"
        android:content="@+id/contentLayout2"
        android:orientation="horizontal"
        android:background="@null">

        <ImageButton android:id="@+id/slideHandleButtonRight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/icon"
            android:onClick="btnSlidingDrawerHandler">
        </ImageButton>

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/contentLayout2"
            android:orientation="vertical"
            android:background="@null"

            >

            <ImageButton android:id="@+id/btn_A"
                android:layout_height="60dip"
                android:layout_width="60dip"
                android:text="Button_A"
                android:background="@android:color/transparent"
                android:src="@drawable/plus_ball"
                android:onClick="btnAListener"
                android:gravity="right"
                android:scaleType="fitXY">
            </ImageButton>

            <ImageButton android:id="@+id/btn_B"
                android:layout_height="60dip"
                android:layout_width="60dip"
                android:layout_below="@+id/btn_A"
                android:text="Button_B"
                android:background="@android:color/transparent"
                android:src="@drawable/text_ball"
                android:gravity="right"
                android:onClick="btnBListener"
                android:scaleType="fitXY">
            </ImageButton>

            <ImageButton android:id="@+id/btn_C"
                android:layout_height="60dip"
                android:layout_width="60dip"
                android:layout_below="@+id/btn_B"
                android:text="Button_B"
                android:background="@android:color/transparent"
                android:src="@drawable/delete_ball"
                android:gravity="right"
                android:onClick="btnCListener"
                android:scaleType="fitXY">
            </ImageButton>

        </RelativeLayout>
    </com.bent.solid.editimage.WrappingSlidingDrawer>
</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-23T15:10:42+00:00Added an answer on May 23, 2026 at 3:10 pm

    If I understand you correctly, your question can be greatly simplified to this:

    I’m running an animation and at the end of the animation, the layout is not in its final animation state; it returns to its original state instead. How do I stop this?

    In code, assuming anim is your animation variable, simply call anim.setFillAfter(true); before starting your animation.

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

Sidebar

Related Questions

I've been searching for this everywhere, but still can't find a solution: How do
I've been searching through the web to look for a solution for this but
I've been searching the net but couldn't find a solution for this. I need
I've been searching through forums to find a solution for the problem I'm facing
I've been searching for a solution for a few days now, I've looked through
I have been searching for a solution to my problem but haven't found anything
I've been searching for a solution for this problem but I couldn't solve it!
I'm new to Tomcat and Eclipse, but have been searching for a solution for
I've been searching for a lightbox type solution that allows this but haven't found
I have been searching everywhere but can't seem to find a solution to this

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.