对于7英寸的文件夹名称;华电国际平板电脑的Android [英] Folder name for 7" hdpi tablet Android
问题描述
我有平板采用7屏(600×1024)与华电国际(240 dpi的分类)。
I have Tablet with 7" screen (600×1024) with hdpi (240 dpi classification).
我已创建的文件夹布局sw600dp
。但它不工作在本决议的平板电脑。
I have created folder layout-sw600dp
. But it's not working in this resolution tablet.
其工作的罚款7屏(600×1024)与MDPI(160 dpi的分类)。
Its working fine with 7" screen (600×1024) with mdpi (160 dpi classification).
哪个文件夹我要创造7(600×1024)平板电脑拥有华电国际(240 dpi的分类)?
Which folder should I create for 7" (600×1024) tablet which has hdpi (240 dpi classification)?
推荐答案
请您的布局是这样的:
res/layout/main_activity.xml # For handsets (smaller than 600dp available width)
res/layout-sw600dp/main_activity.xml # For 7" tablets (600dp wide and bigger)
res/layout-sw720dp/main_activity.xml # For 10" tablets (720dp wide and bigger)
有关标签
例如,如果您的应用程序仅适用于具有600dp最小可用宽度的平板式设备:
For example, if your application is only for tablet-style devices with a 600dp smallest available width:
<supports-screens
android:requiresSmallestWidthDp="600" />
我的平板电脑7屏(600×1024)与华电国际(240 DPI类别)这是来自在普通屏幕看看我的屏幕截图。<强>其工作的罚款7屏(600×1024)与MDPI(160 DPI类别)这是来自在大屏幕下
I have Tablet with 7" screen (600×1024) with hdpi (240 dpi classification) which is comes under the Normal Screen see my screen shot.Its working fine with 7" screen (600×1024) with mdpi (160 dpi classification) which is comes under the large screen.
对于平板 。
多屏幕:
例如,以下是资源目录中,提供了不同的布局设计为不同的屏幕尺寸和不同的位图可绘为中,高,和额外的高密度的屏幕的应用程序的列表。
For example, the following is a list of resource directories in an application that provides different layout designs for different screen sizes and different bitmap drawables for medium, high, and extra high density screens.
res/layout/my_layout.xml // layout for normal screen size ("default")
res/layout-small/my_layout.xml // layout for small screen size
res/layout-large/my_layout.xml // layout for large screen size
res/layout-xlarge/my_layout.xml // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation
res/drawable-mdpi/my_icon.png // bitmap for medium density
res/drawable-hdpi/my_icon.png // bitmap for high density
res/drawable-xhdpi/my_icon.png // bitmap for extra high density
希望这会帮助你。
Hope this will help you.
这篇关于对于7英寸的文件夹名称;华电国际平板电脑的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!