@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
user = (ClearEditText) findViewById(R.id.user);
user.addTextChangedListener(userTextWatcher);
user.setOnFocusChangeListener(this);
pass = (ClearEditText) findViewById(R.id.pass);
pass.setOnFocusChangeListener(this);
pass.addTextChangedListener(passTextWatcher);
login = (Button) findViewById(R.id.login);
login.setOnClickListener(this);
register = (Button) findViewById(R.id.register);
register.setOnClickListener(this);
forget = (TextView) findViewById(R.id.forget);
ObjectAnimator animator = ObjectAnimator.ofFloat(forget, "rotation", 0, 360f);
ObjectAnimator animator1 = ObjectAnimator.ofFloat(forget, "alpha", 1f, 0f, 1f);
AnimatorSet set = new AnimatorSet();
set.play(animator).with(animator1);
set.setDuration(5000);
set.start();
}
MainActivity.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录