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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:40:58+00:00 2026-06-11T19:40:58+00:00

I have simple task: fade screen (+ other actions, but it doesnt matter now)

  • 0

I have simple task: fade screen (+ other actions, but it doesnt matter now) when something happens (say, button pressed).
My minSDKVersion is 11. I do it in this way: activity layout contains a view:

<View
    android:id="@+id/bgFadingView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:alpha="0"
    android:background="@android:color/black" />

and method where I fade screen is as follows:

protected void fadeBGView(boolean fadeIn)
{
    ObjectAnimator animator = ObjectAnimator.ofFloat(bgFadingView, "alpha", fadeIn ? 0.75f : 0f); //bgFadingView is initialized via findViewById(R.id.bgFadingView);
    animator.setDuration(1000);
    animator.start();
}

in other words, I have black view, which occupies the whole screen and when I need to fadeIn, I change view’s alpha from 0 to 0.75.

The problem is that it works with bad framerate… I see fading animation frame by frame – it works at about 15fps. What am I doing wrong? Android system fading works much more smoothly – I want to archieve the same result or close. How to?

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

    All I had to do was:

    ObjectAnimator.setFrameDelay(10);
    

    default frame delay was too long, so my animations didnt work smoothly. The problem was not due to device performance limitations.

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

Sidebar

Related Questions

Probably a common problem, but anyway: Let's say I have a simple entity Task
Let me say we have a simple programming task. But for the sake of
now i'm stuck with simple task. I have Code: <m:node1> ... </m:node1> <namespace:something attribute1='1'/>
I have a very simple task I am trying to do in Groovy but
I have a very simple task, but I cannot find any solution. I have
This is a very simple task in every language I have ever used, but
I have to do a simple task, but I don't know how to do
I have a very simple task but got confused. I need my action to
I have a simple task to accomplish, but I am not sure what is
This should be a simple task, but I have seen several attempts on how

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.