System bar hides menu items

We have developed an Android app for version 2.1, but clients require it to work on version 3.0 too. Everything seems fine, but I have a problem with the system bar. It hides the menu buttons http://i.imgur.com/NEkkg.png

What can I do about it?

Thanks in advance. edit: here is the layout file:

    <?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>

      

+3


source to share


2 answers


The problem was that I was using too large images for the menu items. I used smaller images and the problem was resolved.



+1


source


This usually won't happen. The only way I can think of for this to happen is to do what the developers have repeatedly stated not to, is to try to determine the size based on the physical size of the screen (e.g. through DisplayMetrics

).



Correct your code to use traditional sizing approaches (for example android:layout_height="match_parent"

) and I suspect this problem will go away.

+1


source







All Articles