One minute to learn about Android screen ldpi mdpi hdpi xhdpi

Source: Internet
Author: User
<span id="Label3"></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><span style="font-family:‘Open Sans‘,Helvetica,Arial,sans-serif; line-height:23.7999992370605px"><strong>DPI: pixels per inch</strong></span><br></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><span style="font-family:‘Open Sans‘,Helvetica,Arial,sans-serif"><span style="line-height:23.7999992370605px">Simple method of screen resolution Calculation:</span></span></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><span style="font-family:‘Open Sans‘,Helvetica,Arial,sans-serif"><span style="line-height:23.7999992370605px"><span style="white-space:pre"></span>Displaymetrics metrics = new Displaymetrics ();<br><span style="white-space:pre"></span>Display display = This.getwindowmanager (). getdefaultdisplay ();<br><span style="white-space:pre"></span>Display.getmetrics (metrics);<br><span style="white-space:pre"></span>LOG.E ("display", "high:" +display.getheight () + "width:" +display.getwidth () + "screen density ratio:" +metrics.density);<br></span></span></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><span style="font-family:‘Open Sans‘,Helvetica,Arial,sans-serif"><span style="line-height:23.7999992370605px">DP and PX calculation diagram (mdpi 1dp=1px):</span></span></p></p><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"><span style="font-family:‘Open Sans‘,Helvetica,Arial,sans-serif"><span style="line-height:23.7999992370605px"><br></span></span></p></p><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)"><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)">Android <wbr> <wbr> <wbr> <wbr> <wbr> phone screen standard <wbr> corresponding icon <wbr> size standard screen <wbr> Screen density ratio</p></p><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)"><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; Color:rgb (70,70,70); font-family:simsun; Background-color:rgb (188,211,229) ">xhdpi 1280*720  <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>   <wbr> <wbr>   <wbr> <wbr>  96*96   <wbr> <wbr>    <wbr> <wbr>     <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>      <wbr> <wbr>  320           8 </p></p><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)"><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; Color:rgb (70,70,70); font-family:simsun; Background-color:rgb (188,211,229) ">hdpi  480*800   <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>  72*72   <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    240           6 </p></p><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)"><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; Color:rgb (70,70,70); font-family:simsun; Background-color:rgb (188,211,229) ">mdpi  480*320   <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>  48*48   <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    <wbr> <wbr>    160           4 </p></p><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)"><p style="margin-top:0px; margin-bottom:5px; padding-top:0px; padding-bottom:0px; font-size:14px; border:0px; list-style:none; word-wrap:normal; word-break:normal; line-height:21px; color:rgb(70,70,70); font-family:simsun; background-color:rgb(188,211,229)"><wbr> <wbr> <wbr> ldpi <wbr> 320*240 <wbr> <!-- <wbr--> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> c10> <wbr> <!-- <wbr--> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> c20> <wbr> <wbr> <wbr> 36*36 <wbr> <c< c26> <wbr> <wbr> <wbr> <wbr> 30> <wbr> 1 <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> 20 3 </c<></p></p><p><p>One minute to learn about Android screen ldpi mdpi hdpi xhdpi</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.