In order to better use the screen fit in multiple items of the individual
Base on 1280x720 screen.
Has stopped because of some problems, Not recommended for use.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.HaowenLee:ScreenFit:1280x720'
}
<View
android:layout_width="@dimen/x360"
android:layout_height="@dimen/x360"
android:background="@android:color/black"/>