Android的Toast通知太小冰淇淋三明治 [英] Android Toast notification is too small in Ice Cream Sandwich

查看:113
本文介绍了Android的Toast通知太小冰淇淋三明治的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人曾与吐司通知的冰淇淋三明治的任何问题太小?在我的应用程序,通知一下罚款所有其他版本。在冰淇淋三明治,但其令人难以置信的微小。起初我以为这可能是我的自定义主题,但禁用后,我看到了同样的结果。我显示吐司只是像其他人一样有:

  Toast.makeText(MyActivity.this!你好,世界,Toast.LENGTH_SHORT).show();
 

我的主题:

 <资源>
<样式名称=mytheme的父=@安卓风格/ Theme.Light.NoTitleBar>
    <项目名称=机器人:editTextStyle> @风格/ blue_edittext< /项目>
    <项目名称=机器人:windowNoTitle>真< /项目>
    <项目名称=机器人:windowBackground> @色/白< /项目>
< /风格>
< /资源>
 

任何想法?谢谢!

解决方案

根据这个提问/回答:

  

添加

 <支持屏安卓调整大小=真
                  机器人:smallScreens =真
                  机器人:normalScreens =真
                  机器人:largeScreens =真
                  机器人:anyDensity =真/>
 

  

我的表现,解决我的问题...

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!

解决方案

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

这篇关于Android的Toast通知太小冰淇淋三明治的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆