Toast size on Galaxy Nexus

前端 未结 4 1291
借酒劲吻你
借酒劲吻你 2021-01-19 00:18

When I use toasts in my app, the size is very very small. But when another app displays a toast, the size is normal (like Advanced Task Killer, or SMS).

What do I ha

相关标签:
4条回答
  • 2021-01-19 00:19

    you may need to use a Custom ToastView

    0 讨论(0)
  • 2021-01-19 00:21

    I finally fixed this by removing android:anyDensity="false" from my supports-screens element in my manifest. I'm not sure why I had it there in the first place, except that I started that app from one of my rather old apps instead of from scratch.

    That setting also caused my activity to be realllllly small (order the order of 25px by 20px) when I ran with targetSdkVersion 14 or 15 on my nexus. Seems like a bug.

    0 讨论(0)
  • 2021-01-19 00:26

    Thank you ! (x1000)

    Adding

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

    to my manifest, solved my problem...

    0 讨论(0)
  • 2021-01-19 00:36

    Maybe this is a theme problem... Can you try to implement Using Holo while supporting Android 2.x in this post ?

    0 讨论(0)
提交回复
热议问题