twenk11k / BSwitch

A customizable switch widget for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BSwitch

A customizable switch widget for Android


Usage

<com.twenk11k.bswitch.BSwitch
    android:id="@+id/bswitch"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:arc_padding="18"
    app:arc_stroke_width="2dp" />

Styles

<attr name="unchecked_color" format="reference|color" />
<attr name="checked_color" format="reference|color" />
<attr name="border_width" format="reference|dimension" />
<attr name="arc_stroke_width" format="reference|dimension" />
<attr name="arc_sweep_angle" format="reference|integer" />
<attr name="arc_padding" format="reference|integer" />
<attr name="draw_circle_enabled" format="reference|boolean" />
<attr name="duration" format="reference|integer" />
<attr name="is_checked" format="reference|boolean" />

License

Copyright (c) 2020 twenk11k.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

A customizable switch widget for Android

License:Apache License 2.0


Languages

Language:Kotlin 100.0%