Chrysanthemum circles that often appear in the android UI (Circular loading circles)
The night was boring. I looked at the old Code and found that we often used the chrysanthemum ring. It was originally made by frame animation. Suddenly, it seems that the frame animation has a good effect, at least it looks good. Code on start:
First, layout file:
Package com. woyou. frameanimation; import java. util. timer; import java. util. timerTask; import android. content. intent; import android. OS. bundle; import android. support. v7.app. actionBarActivity;/*** chrysanthemum ring Layout * @ author Administrator **/public class FrameActivity extends ActionBarActivity {@ Overrideprotected void onCreate (Bundle savedInstanceState) {super. onCreate (savedInstanceState); setContentView (R. layout. login_main); Timer timer = new Timer (); timer. schedule (new TimerTask () {@ Overridepublic void run () {Intent intent = new Intent (FrameActivity. this, LoginActivity. class); startActivity (intent); finish () ;}, 5000 );}}
Let him jump over at a scheduled time...