Is it possible to set the screen size of the device as small, normal, large, and xlarge with the code? Not density, just screen size.
android android-screen-support screen
Configuration.Try screenLayout.
if ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE) {
// // on a large screen device ...
}
© 2024 OneMinuteCode. All rights reserved.