This is a fork of original Stevia Android project, which appears abandoned now It was updated to use new AndroidX components instead of Support library ones and packaged in Jitpack for easy adoption into your project
All the credit for Android port to the original author, as well as Stevia iOS author for the idea.
Here is small excerpt from the original documentation:
With Stevia.kt
, you build concise views in code using ConstraintLayout
.
detail.top(35).left(12)
nameLabel.centerInParent()
backgroundImage.fillParent()
I-20-firstname-20-latname-20-I
This is all native ConstraintLayout
under the hood ๐
Read the rest in the Original README.md
Gradle
In your top project .gradle
file add maven { url 'https://jitpack.io' }
like so
...
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
...
then in your app .gradle
file add implementation 'com.github.actiwerks:stevia-android:v1.0.7'
like so
dependencies {
...
implementation 'com.github.actiwerks:stevia-android:v1.0.7'
}