在Android的布局文件夹的问题
在我的应用程序有三个布局文件夹中。
In my app there are three layout folder.
1)layout(for 480x800 resolution with **hdpi**)
2)layout-large(for 1024x600 resolution with **mdpi**)
3)layout-xlarge(for 1280x800 resolution with **mdpi**)
但我对新的平板电脑的i-球的分辨率(1024×600 - > **华电国际**)
我不知道如何为这种平板电脑打造的设计。
i don't know how to create design for this tablet.
这我球设备是从拿布局布局布局文件(480×800是华电国际分辨率)文件夹中。但它不是看起来很不错的设计比较其他分辨率的设备。
this i-ball device is take layout file from layout layout(for 480x800 resolution with hdpi) folder. but its not looking good design compare with other resolution devices.
请给我设计问题的解决方案在此设备。
Please give me solution for design issue in this device .
先谢谢了。
三星Galaxy S3
有同样的问题。
下面是三星Galaxy S3设备
,你也可以尝试为您的设备。实现采样逻辑
Here is sample logic of achieve for Samsung Galaxy S3 device
, you can also try for your device.
例如找到三星Galaxy S3 DP的后缀来绘制-SW?
for example to find the Samsung Galaxy S3 dp to suffix to drawable-sw?
DP
随着 DP计算的参考,如果你想支持你的布局或绘制到S3则计算说:
dp With reference of DP Calculation, If you want to support your layout or drawable to S3 then the calculation says
PX =设备的宽度= 720
DPI =设备的密度= 320
px= Device's width = 720 dpi= Device's density= 320
公式给出
px = dp * (dpi / 160)
交换公式,因为我们有PX的值
interchanging formula because we have px's value
dp = px / (dpi / 160)
现在将值,
dp= 720 / (320/160);
dp=360.
所以绘制-sw360dp将做的工作。
so drawable-sw360dp will do the job
检查这个答案了解详细信息。