问题标签 [shapeableimageview]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - SrcCompat 不适用于数据绑定android
我在我的布局中使用材质 ImageView 并尝试使用数据绑定设置矢量可绘制我收到此错误
这是我的布局 XML
android - 使用 setOnClickListener 从 ShapeableImageView 中移除波纹效果
我有这个ShapeableImageView
我想处理点击事件但没有看起来很糟糕的涟漪效应,因为容器和按钮一样小,并且没有空间让效果很好地扩展。所以,我想禁用它以获得不同的自定义效果。
我像这样处理点击
我的问题是,即使我设置了focusable
and clickable
as false
,似乎设置点击侦听器也会启用涟漪效应。我可以让点击监听器没有那种效果吗?
奇怪的是,设置android:background
成我自己的涟漪效果文件,它不起作用,效果仍然是默认的。