Home » Android » Remove background of ProgressDialog

Remove background of ProgressDialog

Posted by: admin November 1, 2017 Leave a comment


I’m trying to customize my ProgressDialog with this code :

    <style name="MyDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
    <item name="android:background">#949292</item>
    <item name="android:windowTitleStyle">@style/question_dialog_title</item>
<style name="question_dialog_title" parent="android:Widget.TextView">
    <item name="android:background">@drawable/gradient</item>
    <item name="android:textSize">16sp</item>
    <item name="android:textColor">#ffffff</item>
    <item name="android:padding">10dp</item>

It works perfectly on android on API Level greater than 19, but when i tried it on android 4.3 looks like this

enter image description here

How i can remove the background and the spaces between the title