代码参考如下:
if ((getResources().getConfiguration().screenLayout &
Configuration.SCREENLAYOUT_SIZE_MASK) ==
Configuration.SCREENLAYOUT_SIZE_LARGE) {
// 华为Matex展开大屏
Log.e(TAG, 'is matex large screen');
} else {
//华为Matex折叠态
Log.e(TAG, 'is matex small screen');
}





































苏公安网备 32011402010933号