android-toggle icon indicating copy to clipboard operation
android-toggle copied to clipboard

Need diffrent color for OFF State in switch

Open maven-y opened this issue 7 years ago • 2 comments

I need different color for switch off state but it shows same

ON

screen shot 2019-01-11 at 1 37 36 pm

OFF

screen shot 2019-01-11 at 1 37 41 pm

CODE

<com.github.angads25.toggle.widget.LabeledSwitch android:id="@+id/switch8" android:layout_width="60dp" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerInParent="true" android:layout_marginRight="5dp" android:textSize="8sp" app:colorBorder="@android:color/holo_red_dark" app:colorOn="@android:color/holo_green_dark" app:on="false" app:textOff="OFF" app:textOn="ON" />

I need RED for OFF and GREEN for ON.

Is that possible ?

maven-y avatar Jan 11 '19 08:01 maven-y

is it possible to change that background white color if possible can you provide the library code so we can make a custom library

neelayak avatar Jan 29 '19 00:01 neelayak

Hey, Library code is available in project repository. Sorry, I am not able to work on this issue at the moment. I will be open for any help you need from my side.

singhangadin avatar Jan 29 '19 10:01 singhangadin