프로젝트
GitHub에서 보기
bitvale/Switcher
소개
Oleg Frolov의 스위치 애니메이션 Android 구현
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -3
- in 1 month
- -5
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSwitcher
Created this cool switch animation from Oleg Frolov as an android library.
APK
Install the latest release
USAGE
Just add Switcher view in your layout XML and Switcher library in your project via Gradle:
dependencies {
implementation 'io.github.bitvale:switcher:1.1.2'
}
XML
<com.bitvale.switcher.SwitcherX // or SwitcherC
android:id="@+id/switcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:switcher_on_color="@color/on_color"
app:switcher_off_color="@color/off_color"
app:switcher_icon_color="@color/icon_color" />
You must use the following properties in your XML to change your Switcher.
Properties:
android:checked(boolean) -> default trueapp:switcher_on_color(color) -> default #48ea8bapp:switcher_off_color(color) -> default #ff4651app:switcher_icon_color(color) -> default whiteapp:elevation(dimension) -> default 4dp
Kotlin
switcher.setOnCheckedChangeListener { checked ->
if (checked) action()
}
LICENCE
Switcher by Alexander Kolpakov is licensed under an Apache License 2.0.
관련 프로젝트 살펴보기
불러오는 중…