Action bar menu shows off screen

2019-02-16 23:39发布

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.

1条回答
Animai°情兽
2楼-- · 2019-02-17 00:17

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".

查看更多
登录 后发表回答