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.