且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

对于7英寸的文件夹名称;华电国际平板电脑的Andr​​oid

更新时间:2022-06-11 06:43:28

请您的布局是这样的:

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英寸的文件夹名称;华电国际平板电脑的Andr​​oid

我的平板电脑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.