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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:40:20+00:00 2026-06-01T08:40:20+00:00

I am stuck in a condition that I can’t keep the sub layout faded

  • 0

I am stuck in a condition that I can’t keep the sub layout faded after using the fade animation

FrameLayout mapLayout = (FrameLayout)findViewById(R.id.mapLayout);

Animation fadeAnim = AnimationUtils.loadAnimation(this, android.R.anim.fade_out);
mapLayout.startAnimation(fadeAnim);

Please guide how can I achieve this in android. This animation and shaded effect occurs when I click the ‘Pause’ Button and to reverse the effect I will press the ‘Resume’ Button(Sorry I made the image with ‘Pause’ button in shaded view, in actual it is ‘Resume’)

enter image description here

  • 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-01T08:40:21+00:00Added an answer on June 1, 2026 at 8:40 am

    Both above answers helped me in solving the issue, but both answers weren’t the actual solution to my problem. The solution I made is

    I defined two animations according to my need

    Animation fadeOut = new AlphaAnimation(0f,0.5f);
    Animation fadeIn = new AlphaAnimation(0.5f,1f);
    fadeOut.setFillAfter(true);
    fadeIn.setFillAfter(true);
    

    When I clicked ‘Pause’ button I executed following line

    mapLayout.startAnimation(fadeOut);
    

    Then to resume from paused state, I executed following line

    mapLayout.startAnimation(fadeIn);
    

    Thanks Simon and Deepak!

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

Sidebar

Related Questions

I solved the N- Queen problem with the condition that there can only be
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
I stuck while trying to compile qpid c++ with boost 1_47_0 using Visual Studio
I am debugging an application in an Azure sever using IntelliTrace. Sometimes I can
Evening, Can someone help me with the following condition? RewriteCond %{HTTP_HOST} ^(.*?\.|)(domain1|domain2|domain3)\.(co\.uk|com)$ [NC] I
Can anyone spot my error in this loop? After i read in the reply
Say you have a method that could potentially get stuck in an endless method-call
I read somewhere (can't find it now) that large exception hierarchies are a waste
I have been getting an error message that I can't resolve. It originates from
Getting a bit stuck on this. Basically I have a method that I want

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.