| | |
| | | package com.moral.yunfushao.activity; |
| | | |
| | | import android.animation.ObjectAnimator; |
| | | import android.content.Intent; |
| | | import android.os.Bundle; |
| | | import android.support.annotation.Nullable; |
| | |
| | | private TextView tv_forget, tv_register; |
| | | private EditText et_phone, et_pwd; |
| | | private IWXAPI iwxapi; |
| | | private ObjectAnimator animator; |
| | | |
| | | @Override |
| | | protected void getBundleExtras(Bundle extras) { |
| | |
| | | et_phone = findView(R.id.et_phone); |
| | | et_pwd = findView(R.id.et_pwd); |
| | | weixinlogin = findView(R.id.weixinlogin); |
| | | |
| | | |
| | | // et_phone.setText("18362724160"); |
| | | // et_pwd.setText("123456"); |
| | | initAnimator(); |
| | | } |
| | | |
| | | private void initAnimator() { |
| | | // ObjectAnimator an = ObjectAnimator.ofFloat(bt_sure, "translationX", 500f, 0f); |
| | | // an.start(); |
| | | //// ObjectAnimator translationY = ObjectAnimator.ofFloat(bt_sure, "rotation", 360f, 0f); |
| | | // ObjectAnimator scaleY = ObjectAnimator.ofFloat(bt_sure, "scaleY", 0f, 1f); |
| | | // ObjectAnimator scaleX = ObjectAnimator.ofFloat(bt_sure, "scaleX", 0f, 1f); |
| | | // |
| | | // AnimatorSet oo = new AnimatorSet(); |
| | | // oo.playTogether(scaleY, scaleX); |
| | | // oo.setDuration(500); |
| | | // oo.start(); |
| | | } |
| | | |
| | | @Override |
| | |
| | | bt_sure.setOnClickListener(this); |
| | | tv_forget.setOnClickListener(this); |
| | | tv_register.setOnClickListener(this); |
| | | weixinlogin.setOnClickListener(this); |
| | | } |
| | | |
| | | @Override |