@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);
editor = sharedPreferences.edit();
an = new RotateAnimation(0.0f,
360.0f,Animation.RELATIVE_TO_SELF, 0.5f,
Animation.RELATIVE_TO_SELF,
0.5f);
// Set the animation's parameters
an.setInterpolator(new LinearInterpolator());
an.setDuration(7000); // duration in ms
an.setRepeatCount(-1); // -1 = infinite repeated
}
MainActivity.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:secretknock
作者:
评论列表
文章目录