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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:35:14+00:00 2026-05-28T19:35:14+00:00

I have done like these it not working? public class AnimationActivity extends Activity{ private

  • 0

I have done like these it not working?

public class AnimationActivity extends Activity{
            private AnimationDrawable yourAnimation; 
            @Override
            protected void onCreate(Bundle savedInstanceState) {
                // TODO Auto-generated method stub
                super.onCreate(savedInstanceState);
                setContentView(R.layout.animation);  
                getIntentValues();
                final ImageView imageView = (ImageView) findViewById(R.id.animation_iv);   
                imageView.setBackgroundResource(R.drawable.loadinganim);   
                yourAnimation = (AnimationDrawable) imageView.getBackground(); 
                yourAnimation.start();
    }

res\drawable\loading.xml

<?xml version="1.0" encoding="utf-8"?> 
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"  
    android:oneshot="false">  
    <item android:drawable="@drawable/v1" android:duration="160" />  
    <item android:drawable="@drawable/v4" android:duration="160" />  
    <item android:drawable="@drawable/v7" android:duration="160" />  
    <item android:drawable="@drawable/v8" android:duration="160" />  
    <item android:drawable="@drawable/v9" android:duration="160" />  
    <item android:drawable="@drawable/v10" android:duration="160" />  
    <item android:drawable="@drawable/v11" android:duration="160" />  
   </animation-list>

res\layout\animation.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:orientation="vertical"
 android:layout_width="fill_parent" 
 android:layout_height="fill_parent" 
    >
<ImageView 
 android:id="@+id/animation_iv"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent" 
 />

Animation is starting on imageView onClick().if any one have idea help me.

  • 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-05-28T19:35:15+00:00Added an answer on May 28, 2026 at 7:35 pm
              view.setImageResource(R.anim.framer);
              view.post(new Runnable() {
                public void run() {             
                    AnimationDrawable animationDrawable = (AnimationDrawable)view.getDrawable();
                    animationDrawable.start();
                }
              });
    

    This worked for me try it !!!!

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

Sidebar

Related Questions

I've done enough Googling to know that if I have something like class SubObject
i have done something like this: <form action=validate.php method=get> Id :<input type=text name=pID/><br/><br/> Name
In a previous life, I might have done something like this: <a href=# onclick=f(311);return
I'm designing a game server and I have never done anything like this before.
Most of my development life, I have done a JavaScript generated button like so:
I feel like GUID/UUID questions have been done to death here, but I can't
I have never done any Windows coding and I would like to give it
I would like to track how many surveys have been done by different departments
I have tried what seems like everything - I've done similiar things many times
Hidden worksheets/workbooks have some limitations to what can be done in VBA code, like

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.