我们为 2.1 版开发了一个 Android 应用程序,但客户要求它也应该在 3.0 版上运行。一切似乎都很好,但我的系统栏有问题。它将菜单按钮隐藏为 http://i.imgur.com/NEkkg.png
我该怎么办?
提前致谢。 编辑:这里是布局文件:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/imageandsoundroot"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<View
android:id="@+id/imageandsoundcontextmenutrigger"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone" />
<ImageView
android:id="@+id/imageandsoundimage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitCenter" />
</FrameLayout>
最佳答案
通常情况下,不会发生这种情况。我能想到的实现它的唯一方法是做开发人员被反复告知 不要做 的事情,即尝试根据物理屏幕尺寸调整大小(例如,通过 DisplayMetrics
)。
修复您的代码以使用传统方法调整大小(例如,android:layout_height="match_parent"
),我怀疑这个问题会消失。
关于android - 系统栏隐藏菜单项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9589290/