## 属性文档 - TouchEffectsManager.build(TouchEffectsWholeType touchEffectsWholeType) //创建全局属性 > NONE, //不自动为控件添加效果 > SCALE, //添加缩放效果 > RIPPLE, //添加水波纹效果 > STATE, //添加渐变响应效果 > > RIPPLE_1, //添加水波纹1效果 > > //SHAKE//添加抖动效果`无法全局设置,只支持在xml中设置才会生效` - TouchEffectsManager.addViewTypes(String... viewTypes) - TouchEffectsManager.addViewTypes(TouchEffectsWholeType wholeType, String... viewTypes) - TouchEffectsManager.addViewType(String viewTypes) - TouchEffectsManager.addViewTypeTouchEffectsWholeType wholeType,(String viewTypes) > //目前支持的View > > TouchEffectsViewType > > > ALL //为所有控件添加效果 > > > > TextView > > > > Button > > > > ImageView > > > > ImageButton > > > > FrameLayout > > > > LinearLayout > > > > RelativeLayout > > > > ConstraintLayout #### attrs - animation_duration //缩放动画的时长 - shake_view_scale //缩放的倍数 - touch_effects_forbid //当前View是否禁用全局设置 - touch_effects_type // 当前View类型 > none //不使用任何效果 > > scale //缩放效果 > > ripple //水波纹效果 > > state //渐变效果 > > shake //抖动效果`只支持在xml设置才会生效` - touch_effects_pressed_color //点击按下的颜色 - touch_effects_normal_color //点击松开的颜色 - touch_effects_radius //圆角大小