bitvale / Lightprogress
Android implementation of Light animation from Oleg Frolov
Stars: ✭ 165
Programming Languages
kotlin
9241 projects
LightProgress
Created this cool Light animation from Oleg Frolov as android library.
USAGE
Just add LightProgress view in your layout XML and LightProgress library in your project via Gradle:
dependencies {
implementation 'com.bitvale:lightprogress:1.0.1'
}
XML
<com.bitvale.lightprogress.LightProgress
android:id="@+id/light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size"
android:textColor="@color/text_color"
android:text="@string/light_text"
app:light_color="@color/light_color"/>
You must use the following properties in your XML to change your PacButton.
Properties:
-
android:text
(string) -> default "Loading" -
android:textSize
(dimension) -> default 56sp -
android:textColor
(color) -> default #484848 -
app:light_color
(color) -> default #FFFFFF
Kotlin
light.setOnClickListener {
if (!light.isOn()) light.on()
else light.off()
}
LICENCE
LightProgress by Alexander Kolpakov is licensed under an Apache License 2.0.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].