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

  • Home
  • SEARCH
  • 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 8065385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:39:17+00:00 2026-06-05T11:39:17+00:00

Can anyone tell me, I have developed Android Pair Game. So i need When

  • 0

Can anyone tell me, I have developed Android “Pair Game”. So i need When i click on the imagebutton, It turns the image and display a animal or birds image. Please advice me, How can i do this?

  • 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-05T11:39:19+00:00Added an answer on June 5, 2026 at 11:39 am

    Try to use the animation effect for this –

    package com.example.flip3d;
    
    import android.graphics.Camera;
    import android.graphics.Matrix;
    import android.view.animation.Animation;
    import android.view.animation.Transformation;
    
    public class Flip3dAnimation  extends Animation {
    private final float mFromDegrees;
    private final float mToDegrees;
    private final float mCenterX;
    private final float mCenterY;
    private Camera mCamera;
    
    public Flip3dAnimation(float fromDegrees, float toDegrees,
       float centerX, float centerY) {
    mFromDegrees = fromDegrees;
    mToDegrees = toDegrees;
    mCenterX = centerX;
    mCenterY = centerY;
    }
    
    @Override
    public void initialize(int width, int height, int parentWidth, int parentHeight) {
    super.initialize(width, height, parentWidth, parentHeight);
    mCamera = new Camera();
    }
    
    @Override
    protected void applyTransformation(float interpolatedTime, Transformation t) {
    final float fromDegrees = mFromDegrees;
    float degrees = fromDegrees + ((mToDegrees - fromDegrees) * interpolatedTime);
    
    final float centerX = mCenterX;
    final float centerY = mCenterY;
    final Camera camera = mCamera;
    
    final Matrix matrix = t.getMatrix();
    
    camera.save();
    
    camera.rotateY(degrees);
    
    camera.getMatrix(matrix);
    camera.restore();
    
    matrix.preTranslate(-centerX, -centerY);
    matrix.postTranslate(centerX, centerY);
    
    }
    
    }
    

    I suggest you to refer the Flip3dAnimation for this.

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

Sidebar

Related Questions

Can anyone tell me why I always have this strange output after running this
Can anyone tell me why ActionScript 3, a statically typed language, doesn't have generics?
i have invoked blackberry calender from my application can anyone tell me how to
I have a DatePicker and a TimePicker in my app. Can anyone tell me
Can anyone please tell why this error? I have included everything ( all header,
Can anyone tell me how to do runtime debugging on shared libraries? I need
Can anyone tell me how to have several screens in a HTML page and
Can any one tell me an opensource js library that can have a real-time
Can anyone tell me whether Helvetica is a browser base font? If so, it
Can anyone tell me what's wrong with this code? class Dataset < ActiveRecord::Base has_many

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.