我正在寻找支持Android中的多个屏幕
假设我在项目中使用了以下结构
res/layout/my_layout.xml // layout for normal 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
normal screen
,large screen
,extra-large screen
这样
取适当的xml。res/layout-xlarge/my_layout.xml
结构问题::
extra-large screen
中运行我的应用程序
my_layout.xml
将取自我的项目结构normal
screen size
或large screen size
,因为extra-large screen
是
删除。答案 0 :(得分:0)
如果现在我在超大屏幕上运行我的应用程序my_layout.xml将从我的项目结构中获取?
The layout in res/layout-large/my_layout.xml will be taken to run your application.
Reason why this happens?
layout-large is selected to run your application because it is the layout that has the size closer to the layout-xlarge.