| | |
| | | initView(); |
| | | //初始化界面监听器 |
| | | initEvent(); |
| | | KeyboardStateObserverUtils.getKeyboardStateObserver(_mActivity).setKeyboardVisibilityListener(new KeyboardStateObserverUtils.OnKeyboardVisibilityListener() { |
| | | @Override |
| | | public void onKeyboardShow(int h) { |
| | | ConstraintSet cs = new ConstraintSet(); |
| | | cs.clone(viewBinding.parentCl); |
| | | cs.connect(viewBinding.registerConfirmPswEt.getId(), ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM, px2dip(h));// |
| | | //应用约束 |
| | | cs.applyTo(viewBinding.parentCl); |
| | | } |
| | | |
| | | @Override |
| | | |
| | | public void onKeyboardHide(int h) { |
| | | ConstraintSet cs = new ConstraintSet(); |
| | | cs.clone(viewBinding.parentCl); |
| | | cs.connect(viewBinding.registerConfirmPswEt.getId(), ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM, px2dip(h));// |
| | | //应用约束 |
| | | cs.applyTo(viewBinding.parentCl); |
| | | } |
| | | |
| | | }); |
| | | // KeyboardStateObserverUtils.getKeyboardStateObserver(_mActivity).setKeyboardVisibilityListener(new KeyboardStateObserverUtils.OnKeyboardVisibilityListener() { |
| | | // @Override |
| | | // public void onKeyboardShow(int h) { |
| | | // ConstraintSet cs = new ConstraintSet(); |
| | | // cs.clone(viewBinding.parentCl); |
| | | // cs.connect(viewBinding.registerConfirmPswEt.getId(), ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM, px2dip(h));// |
| | | // //应用约束 |
| | | // cs.applyTo(viewBinding.parentCl); |
| | | // } |
| | | // |
| | | // @Override |
| | | // |
| | | // public void onKeyboardHide(int h) { |
| | | // ConstraintSet cs = new ConstraintSet(); |
| | | // cs.clone(viewBinding.parentCl); |
| | | // cs.connect(viewBinding.registerConfirmPswEt.getId(), ConstraintSet.BOTTOM, ConstraintSet.PARENT_ID, ConstraintSet.BOTTOM, px2dip(h));// |
| | | // //应用约束 |
| | | // cs.applyTo(viewBinding.parentCl); |
| | | // } |
| | | // |
| | | // }); |
| | | } |
| | | |
| | | |