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

The Archive Base Latest Questions

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

Possible Duplicate: How to use fade in and fade out effect with an image

  • 0

Possible Duplicate:
How to use fade in and fade out effect with an image using Transition, android

http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

I have seen this link. It shows images by using Fade in and Fade out effects. How could I do this programmatically?

  • 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-10T19:46:59+00:00Added an answer on June 10, 2026 at 7:46 pm
    1. create two Animation

      Animation fadeOutAnimation = new AlphaAnimation(1.0f, 0.0f);  
      Animation fadeInAnimation = new AlphaAnimation(0.0f, 1.0f);
      
    2. set duration

      fadeOutAnimation.setDuration(1000);
      fadeInAnimation.setDuration(1000);
      
    3. set listener – when the fadeout animation finish replace the image

      fadeOutAnimation.setAnimationListener(new AnimationListener() {
      
              @Override
              public void onAnimationStart(Animation animation) {
                  // TODO Auto-generated method stub                  
              }
      
              @Override
              public void onAnimationRepeat(Animation animation) {
                  // TODO Auto-generated method stub
                                  }
      
              @Override
              public void onAnimationEnd(Animation animation) {
                  //here switch the images !
                  //and the begin the second animation FadeIn 
              }
          });
      
    4. ImageView.startAnimation(fadeOutAnimation);

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

Sidebar

Related Questions

Possible Duplicate: Use of var keyword in C# Which one is better? using var
Possible Duplicate: Testing use of NSURLConnection with HTTP response error statuses This is bizarre;
Possible Duplicate: How to use my own sqlite database? Full Android Database Helper class
Possible Duplicate: Use autorelease when setting a retain property using dot syntax? What is
Possible Duplicate: Use javascript variable in object name I am using CKeditor as a
Possible Duplicate: Use of var keyword in C# What is the benefit of using
Possible Duplicate: Why use getters and setters? Is there any advantage to making methods
Possible Duplicate: Proper Use of yield return What is the use of the yield
Possible Duplicate: Why use document.write? Considering the negative effects of document.write(), why are most
Possible Duplicate: How to Use setTimeout in a for…loop calling setTimeout with a for

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.