@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mBinding = DataBindingUtil.setContentView(this, R.layout.activity_animation); mBinding.addOnRebindCallback(new OnRebindCallback() { @Override public boolean onPreBind(ViewDataBinding binding) { ViewGroup view = (ViewGroup) binding.getRoot(); TransitionManager.beginDelayedTransition(view); return true; } }); mBinding.setPresenter(new Presenter()); }
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); mBinding = DataBindingUtil.setContentView(this, R.layout.activity_animation); mBinding.addOnRebindCallback(new OnRebindCallback() { @Override public boolean onPreBind(ViewDataBinding binding) { ViewGroup view = (ViewGroup) binding.getRoot(); TransitionManager.beginDelayedTransition(view); return true; } }); mBinding.setPresenter(new Presenter()); }