嗨,我正在尝试禁用芯片上的涟漪效果。我尝试添加app:rippleColor
,但没有运气。是否有可能在芯片上禁用此效果?
<com.google.android.material.chip.Chip
android:id="@+id/filter_chip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checkable="false"
android:text="@string/filter_menu"
app:chipEndPadding="7dp"
app:chipIcon="@drawable/ic_baseline_filter_list_24"
app:chipIconTint="@color/black"
app:chipStartPadding="12dp"
android:clickable="false"
android:focusable="false"
app:chipBackgroundColor="@android:color/transparent"
app:chipSurfaceColor="@android:color/transparent"
app:rippleColor="@android:color/transparent" />
字符串
1条答案
按热度按时间m2xkgtsf1#
试试这个应用:rippleColor="@null”