问题描述
我已经开发了一个应用程序,应该同时针对Galaxy Nexus的和银河S3。两者都具有720×1280的屏幕分辨率和我只用'DP'值在我的应用程序。在'布局xhdpi和可拉伸-xhdpi'文件夹存在的资源。布局看起来完全正常的Nexus的,但填充值(DP)稍微偏离的S3。我认为它的,因为S3的更大的屏幕尺寸和不同的密度。
I've developed an app that was supposed to target both the Galaxy Nexus and the Galaxy S3. Both have 720 x 1280 screen resolutions and I have only used 'dp' values in my app. The resources exist in the 'layout-xhdpi' and the 'drawable-xhdpi' folders. Layout looks perfectly fine on the Nexus, but the padding values (in dp) is slightly off on the S3. I assume its because of the bigger screen size on S3 and difference in density.
我怎样才能创造Nexus和S3的一个单独的文件夹,所以我可以考虑不同的屏幕尺寸?
How can I create a separate folder for Nexus and S3 so I can take into account the different screen sizes?
推荐答案
使用此方案:
有关相同的布局横向和纵向的布局sw360dp
For same layout landscape and portrait layout-sw360dp
仅适用于景观的布局sw360dp陆
仅适用于肖像的布局sw360dp端口
我试着说你之前clasification与创建这些名称的文件夹使用。位于成布局装载在银河S3 - WXGA720。这是一种使disting的布局为这种类型的设备。其necesary的Android 4.0 +。
I try to say you can use the before clasification creating folders with theses names. The layout located into are loaded in the Galaxy S3 - WXGA720. This is a way for disting the layout for this type of device. Its necesary Android 4.0+.
这篇关于Android的S3布局VS Galaxy Nexus的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!