android - 系统栏隐藏菜单项

标签 android android-layout android-3.0-honeycomb

我们为 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/

相关文章:

android - SVG 路径转换为 ​​Android Drawable 失败

java - 如何正确使用getIntExtra?

java - Eclipse 突然在以前工作的代码上给出解析器异常错误 - Android、Java

android-layout - 如果字体大小设置为小,按钮标签会被剪掉。我该怎么办?

android - Android 3.0(Honeycomb)如何处理 "paste"事件?

android - AlertDialog 内的 DatePickerDialog(在特定的 EditText 上设置日期)

android - 官方 Android 滑动/选项卡示例包括已弃用的功能 : Is there an alternative sample?

Android SDK的layout_width和layout_height xml属性继承?

android - 蜂窝中的附加数据库

android - hive 上的 db4o Db4oException : File format incompatible