smdtGetScreenWidth
# smdtGetScreenWidth
>i**描述:获取显示屏分辨率宽X像素。**
函数:**public int smdtGetScreenWidth(Context context)**
>#### 代码示例
>//在1080p的屏获取分辨率
SmdtManager smdt = SmdtManager.create(this);
int X=smdt. smdtGetScreenWidth (this);
int Y= smdt. smdtGetScreenHeight (this);
>
> Log.e(TAG,"Width: Height=”+X+”:”+Y);
//将输出Width: Height= 1920:1080;
|参数名/返回值| 类型 |说明 |举例|
|-|-|-|-|
|context|Context|上下文|
|返回值| int |屏幕实际宽像素