Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Need diffrent color for OFF State in switch #20

Description

@maven-y

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions