Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 611
littleK Avatar asked Dec 28 '11 15:12

littleK


1 Answers

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

like image 135
Nick Avatar answered Nov 01 '22 13:11

Nick