Commit 099ba4b7 by 洪洋

add more data

parent 89f950d6
...@@ -39,9 +39,11 @@ public class ScreenTestActivity extends AppCompatActivity { ...@@ -39,9 +39,11 @@ public class ScreenTestActivity extends AppCompatActivity {
height = size.y; height = size.y;
} }
float desity = getResources().getDisplayMetrics().density;
String tp = "Screen width : " + width + " px, " + ViewUtil.pxToDp(this,width) + " dp\n" + String tp = "Screen width : " + width + " px, " + ViewUtil.pxToDp(this,width) + " dp\n" +
"height: " + height + " px, " + ViewUtil.pxToDp(this,height) + " dp\n"; "Screen height: " + height + " px, " + ViewUtil.pxToDp(this,height) + " dp\n" +
tp = tp + "Brand: " + SystemUtil.getDeviceBrand() + " " + SystemUtil.getSystemModel() + " " + SystemUtil.getSystemVersion() ; "Screen Density: " + desity + "\n";
tp = tp + "Model: " + SystemUtil.getDeviceBrand() + " " + SystemUtil.getSystemModel() + " " + SystemUtil.getSystemVersion() ;
tvTip.setText(tp); tvTip.setText(tp);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment