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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:10:51+00:00 2026-06-01T14:10:51+00:00

In my app there is the view says googleBtn. If i press on it

  • 0

In my app there is the view says googleBtn. If i press on it then the Animation occurs and the Menu view goes to upar side. and if i press that button again then the menu will open. See the Below images.

While menu is open:

enter image description here

After menu is closed:

enter image description here

Now the problem is animation occurs right to hide the Menu. But after finishing the animation i want to fix the menu layout to that position (As like second image) but it not happend like that.

Right now if the menu is open and i press google button then the menu getting closed. but after finishing the animation it comes to normal position.

I have try with to fix the scroll y position of the Layout but still not get success.

The code for the Button click is below:

case R.id.googleBtn:
        if(menu){   
            menuLayout.startAnimation(hideMenu);
            menu = false;
        }
        else{
            menuLayout.startAnimation(showMenu);
            menu = true;
        }
        break;

and the layout of the Menu is like below:

  <LinearLayout android:id="@+id/menuLayout" 
    android:layout_height="wrap_content" android:layout_width="fill_parent"
    android:gravity="center_horizontal" 
    android:background="@drawable/slide">
    <View android:layout_height="80dp" android:layout_width="80dp"
        android:layout_marginBottom="25dp" android:id="@+id/googleBtn"
        android:background="#00000000" android:layout_gravity="bottom"/>    

</LinearLayout>

So why i am not able to fix the scroll value? ?

Need help regarding this.

Update

This are my code for the Animation:

For Menuhide:

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

<translate 
    android:fromYDelta="0" 
    android:toYDelta="-70%" 
    android:duration="1000"
    android:fillEnabled="true"
    android:fillAfter="true"
    />

And for MenuShow:

    <?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
    <translate 
        android:fromYDelta="-70%" 
        android:toYDelta="0" 
        android:duration="1000"/>
</set>
  • 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-01T14:10:52+00:00Added an answer on June 1, 2026 at 2:10 pm

    You probably need to set android:fillEnabled="true" and/or android:fillAfter="true".

    If that does not work you can apply the change to the layout in AnimationListener#onAnimationEnd.

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

Sidebar

Related Questions

On the Facebook iPhone app, there is a slideout view on the left side
In my app there is a button, user just click it then the latest
Is there a database term for table or view? In my app, the table
In my app there is requirement that..I have 6 buttons in a nib, when
I'm coding an app that works much like Apple's Weather.app: There's a UIPageControl at
As the title says, is there a way to remove code from a view
I have a view in my app which says something like sorry for the
I have an app which has split view inside a tab bar, and these
When hosting WPF user controls within a WinForms MDI app there is a drawing
I want to have two radio buttons in my Asp.Net MVC3 App.There is no

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.