PhoneU:屏幕像素获取手机大小
object PhoneU {
/**
* 获取手机大小(分辨率)
*
* @param context
* @return
*/
@NonNull
fun getScreenPix(@NonNull context: Context): DisplayMetrics? {
val windowManager =
context.
标签:NonNull,Kotlin,像素,获取,context,手机,PhoneU
来源: https://blog.csdn.net/qq_35091074/article/details/119382138