@Override
  public void initView(Bundle savedInstanceState) {

    RegisterActivity.this.setSupportActionBar(toolbar);
    toolbar.setNavigationIcon(R.drawable.ic_arrow_back_icon);

    LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) toolbarTitleTv.getLayoutParams();
    params.rightMargin = DensityUtil.getActionBarSize(RegisterActivity.this);
    toolbarTitleTv.setVisibility(View.VISIBLE);
    toolbarTitleTv.setText("注 册");

    RegisterActivity.this.combineLatestEvents();
  }
Ejemplo n.º 2
0
 @Override
 public void exit() {
   ViewCompat.animate(rootView)
       .translationY(DensityUtil.getScreenHeight(SearchActivity.this))
       .setDuration(Constants.MILLISECONDS_400)
       .setInterpolator(new LinearInterpolator())
       .withLayer()
       .setListener(
           new ViewPropertyAnimatorListenerAdapter() {
             @Override
             public void onAnimationEnd(View view) {
               SearchActivity.this.finish();
             }
           });
 }