Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Action bar menu shows off screen

I have application with old - style menu. After changing theme to Holo and switching target SDK version to 14, soft menu button disappeared (it's OK) but using menu button on action bar shows text menu mostly off-screen as you can see at enclosed image. Have you any ideas how to fix that?

Action bar error

I have solved this. Problem was in manifest parameter:

   <supports-screens
        android:anyDensity="false"
        android:largeScreens="true"
        android:normalScreens="true"
        android:xlargeScreens="true"
        android:resizeable="true"
        android:smallScreens="true" />

After change anyDenisity to true this problem has gone.

like image 356
piotrpo Avatar asked Apr 21 '12 08:04

piotrpo


1 Answers

I had similar problem and fixed it by setting android:anyDensity="true". It also fixed other issues like tooltip size on high density screens. According to android developer guide: you should not set it "false".

like image 76
Paweł Nadolski Avatar answered Sep 25 '22 00:09

Paweł Nadolski