TouchEffects icon indicating copy to clipboard operation
TouchEffects copied to clipboard

Android View点击特效TouchEffects,几行代码为所有控件添加点击效果

Results 18 TouchEffects issues
Sort by recently updated
recently updated
newest added

android.view.InflateException: Binary XML file line #97: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to android.view.ViewGroup

使用 androidx.appcompat.widget.AppCompatRadioButton 会报类型转换异常 java.lang.ClassCastException: com.lky.toucheffectsmodule.effects_view.TouchEffectsButton cannot be cast to androidx.appcompat.widget.AppCompatRadioButton

java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar)

目前发现个问题,正常在layout布局里静态添加到xml的控件正常 ,但动态创建后 通过FrameLayout add 到 这样的view 不起作用

在普通的veiw或者RecyclerView中,如果执行滑动的手势,会触发点击效果。普通的view还好,但是RecyclerView触碰的item会闪烁一下,用户体验不是很好。这个有没有办法处理呢?我看了看微信,微信在滑动列表时item是没有反馈的,似乎是加了个延迟来判断的点击还是滑动。

recyclerView设置长按失效,另外有没有单独取消点击效果的api?