IconableStatefulTextView
Android UI component library with stateful
How to use
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.BurhanCabiroglu:IconableStatefulTextView:-SNAPSHOT'
}
Demonstration
android:layout_width="match_parent"
android:layout_height="30dp"
app:defaultColor="@color/secondary_text"
app:successColor="@color/main_text"
app:defaultDrawable="@drawable/ic_check_false"
app:successDrawable="@drawable/ic_check_true"
app:fontFamily="@font/inter_medium"
app:text="@string/condition_two" />
// get component
val: mTextView: IconableStatefulTextView = binding.customIconableStatefulTextView
// set true state
mTextView.setState(true)
// or you can set false state
mTextView.setState(false)