多屏支持这样做,我们需要不同的布局,每个屏幕
问题描述:
有关多屏支持这样做,我们需要不同的布局,每个进去华电国际,LDPI和MDPI文件夹屏幕上,我读到这对Android的网站,但不知道如何实现这一点。
For Multiple screen support do we need different layouts for each screen which goes in hdpi, ldpi and mdpi folders, I read this on android site, but not sure how to implement this one.
谢谢 马克斯
答
以下是资源目录中,提供了不同的布局设计适用于不同的屏幕尺寸,不同的位图可绘于中,高,超高密度的应用程序列表屏幕。
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
http://developer.android: 此信息是在Android开发者网站已经给出。 COM /引导/做法/ screens_support.html
替代可绘制=>屏幕密度:
Alternative drawables => Screen densities: