Answer the question
In order to leave comments, you need to log in
How to set ripple for Switch?
Hello!
I'm trying to make a ripple effect for switch:
<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#ccc">
<item android:drawable="@android:color/white"/>
</ripple>
<Switch
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_highlight"
android:text="bla bla bla"/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question