Dialog Toast and Progress Dialog

I tested my application on different phones and native things, such as the progress dialog, and Toast messages looked fine, but when I started testing on Android 5.0 phones, the edges of the progress / Toast dialog were disabled.

Toast

Progress Dialog example

What am I doing wrong? On every phone with OS below Lollipop it works fine.

My style, upon request:

<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> <!-- <item name="android:actionBarStyle">@style/AppTheme.ActionBarStyle</item> </style> <style name="AppTheme.ActionBarStyle" parent="android:Theme.Holo.Light.NoActionBar"> <item name="android:background">#1d2128</item> <!--<item name="android:titleTextStyle">@style/AppTheme.ActionBar.TitleTextStyle</item>--> <item name="android:icon">@drawable/top_bar_logo</item> <!--<item name="android:indeterminateProgressStyle">@style/IndeterminateProgress</item>--> </style> <style name="AppTheme.MainActivity" parent="android:Theme.Holo.Light.NoActionBar"> <item name="android:clipToPadding">false</item> </style> 
+5
source share
1 answer

To fix this problem, remove the <item name="android:fitsSystemWindows">true</item> from the themes.xml theme. This will also eliminate strange biases and text wrapping behavior when displaying EditText.setError("error");

+2
source

All Articles