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>
source to share
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.
source to share