Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update LoadingDialog.java dialog 匀速转动。 #6

Open
SniperQian opened this issue Jan 19, 2015 · 0 comments
Open

update LoadingDialog.java dialog 匀速转动。 #6

SniperQian opened this issue Jan 19, 2015 · 0 comments

Comments

@SniperQian
Copy link

hi,z56402344
这个LoadingDialog.java旋转的时候不是匀速的,
在本类中的 initAnim()函数中,增加代码如下:
private void initAnim() {
mAnim = new RotateAnimation(360, 0, Animation.RESTART, 0.5f,
Animation.RESTART, 0.5f);
mAnim.setDuration(2000);
mAnim.setRepeatCount(Animation.INFINITE);
mAnim.setRepeatMode(Animation.RESTART);
mAnim.setStartTime(Animation.START_ON_FIRST_FRAME);
LinearInterpolator lin = new LinearInterpolator();//设置匀速转动
mAnim.setInterpolator(lin);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant