如何为Motorola Atrix和Motorola Droid定义单独的布局

时间:2011-05-03 10:22:11

标签: android motorola

您好
我需要为摩托罗拉Droid和摩托罗拉Atrix定义单独的布局。我尝试使用drawable-hdpi和layout-long,layout-large-long但两者似乎都在布局上继续。如何定义一个单独的布局支持device.Hence为Droid编写的Droid布局底部有更多的空白空间。在我的清单文件中我有android:largeScreens =“true”android:anyDensity =“true”。

2 个答案:

答案 0 :(得分:0)

你可以试试这个。

Droid有一个硬件键盘...... Atrix没有。

qwerty:设备有一个硬件qwerty键盘,无论用户是否可见

对于Droid来说:

  /drawable-qwerty/
  /layout-qwerty/

的Atrix:

  /drawable/
  /layout/

等。

Dev Res Link - Scroll down to Primary text input method

如果您不理解这些文件夹结构,请查看:

Best Match Resources

答案 1 :(得分:0)

查看以下帖子,这可能会对您有所帮助How does Android define a screen resolution as long?