Recolor
TransitionManager.beginDelayedTransition(linearLayout,new Recolor());
textView.setTextColor(Color.CYAN);
textView.setBackground(getDrawable(R.color.colorAccent));//用Recolor来设置颜色修改后的动画
Rotate
TransitionManager.beginDelayedTransition(linearLayout,new Rotate());
imageView.setRotation(90);//用Rotate来设置旋转的动画
ChangeText
TransitionManager.beginDelayedTransition(linearLayout,new ChangeText().setChangeBehavior(CHANGE_BEHAVIOR_IN));
textView.setText("我是修改后的");//用ChangeText来设置改变文本后的动画
Scale
TransitionManager.beginDelayedTransition(linearLayout,new Scale(0.1f));
imageView.setVisibility(View.GONE);//用Scale来设置视图的显示情况的动画
参考文章
https://www.jianshu.com/p/98f2ec280945
https://github.com/andkulikov/Transitions-Everywhere