PixelPerfect Views, make your design of the app, same for different devices. To developed by the UpGames Android team.
Call PerfectDesignIniter from Application class and from first Activity for setup base screen params.
Root gradle.properties file.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}App gradle config
dependencies {
implementation 'com.github.Daniil-Pavenko:pp-views:Tag'
}override fun onCreate() {
...
PerfectDesignIniter.init(this)
} For Activity
override fun onStart() {
...
PerfectDesignIniter.onStart(this)
} And if you use a keyboard, for example into chat with adjustPan, need to save keyboard height
fun onOpenKeyboard(height: Int) {
PerfectDesignIniter.onOpenKeyboard(height)
}