Android Toast notification is too small in Ice Cream Sandwich [duplicate]

六月ゝ 毕业季﹏ 提交于 2019-11-30 13:24:11

问题


Has anyone had any problems with the Toast Notifications in Ice Cream Sandwich being too small? In my application, the notifications look fine on all other versions. In Ice Cream Sandwich, however, its incredibly tiny. At first I thought that it might be my custom theme but, after disabling it, I saw the same results. I am displaying a Toast just like everyone else with:

Toast.makeText(MyActivity.this, "Hello, World!", Toast.LENGTH_SHORT).show();

My theme:

<resources>
<style name="mytheme" parent="@android:style/Theme.Light.NoTitleBar" >
    <item name="android:editTextStyle">@style/blue_edittext</item>
    <item name="android:windowNoTitle">true</item>  
    <item name="android:windowBackground">@color/White</item>
</style>
</resources>

Any ideas? Thanks!


回答1:


As per this question/answer:

Adding

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

to my manifest, solved my problem...



来源:https://stackoverflow.com/questions/8658059/android-toast-notification-is-too-small-in-ice-cream-sandwich

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!