Android circle rotation animation and android circle Animation

Source: Internet
Author: User

Android circle rotation animation and android circle Animation

The xml file for creating an animation is as follows:

<? Xml version = "1.0" encoding = "UTF-8"?>

<Animation-list xmlns: android = "http://schemas.android.com"

Android: oneshot = "false"> <! -- If it is set to false, the animation does not play cyclically. --!>

<Item

Android: drawable = "@ drawable/loading_01"

Android: duration = "150"> </item>

<Item

Android: drawable = "@ drawable/loading_02"

Android: duration = "150"> </item>

<Item

Android: drawable = "@ darwable/loading_03"

Android: duration = "150"> </item>

</Animation-list>

This is the animation effect. If you set this animation effect for an imageView, each image will be executed in turn to form an animation.

Then let's look at the animation loading class.

MLoadingImageBiew = (ImageView) findViewById (R. id. loadingimageview );

AnimationDrawable animationDrawable = (AnimationDrawable) this. getResources (). getDrawable (R. drawable. loading_animation_drawable );

MLoadingImageView. setImageDrawable (animationDrawable );

AnimationDrawable. start ();

// Enable the animation effect

// After the animation is executed, let's jump to the next interface and see the following:

New Thread (new Runnable (){

Public void run (){

Handler. post (new Runnable (){

Public void run (){

StartActivity (new Intent (MainActivity. this, UserListActivity. class ));

Finish ();

}

);

});


The Android rotation animation RotateAnimation is rotated and then the page is displayed. Is there any way to eliminate the page?

Paint paint = new Paint ();
Paint. setAntiAlias (true); // de-sawtooth

How can I determine the waiting time when a small circle appears while waiting for data on the android server? Paste local code

You should go to the developer forum to ask, which seems difficult for someone to answer.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.