Android Data Binding extensions for Resources
This module requires the Android project using it declaring the Kapt plugin.
This library is available on Maven Central. You can import Kaluga Resources Data Binding as follows:
repositories {
// ...
mavenCentral()
}
// ...
dependencies {
// ...
implementation("com.splendo.kaluga:resources-databinding:$kalugaVersion")
}
Use app:kalugaLabel
to bind a KalugaLabel
to a TextView
.
KalugaTextStyle
can be applied using app:textStyle
as well. To support autosize text, use
app:autoTextStyle=textStyle
app:autoTextMinScalingFactor=scalingFactor
Use app:backgroundStyle
to bind a KalugaBackgroundStyle
to a View
Use app:kalugaButton
to bind a KalugaButton
to a Button
Use app:image
to bind a KalugaImage
to an ImageView
Use app:tintedImage
to bind a TintedImage
to an ImageView