Is there a way to change all warning dialogs that appear in an Android app? I also want to change the dialogs that are also generated by the system (for example, the "Edit Text" dialog box that opens when you click on any EditText for a long time). I want to change the font color of the title and the size of all the dialogs in my application.
Is there any way to do this?
I tried installing android:alertDialogTheme in my theme. But it doesn't seem to work. The following code is
<style name="Theme.DLight" parent="android:Theme.Light.NoTitleBar"> <item name="android:alertDialogTheme">@style/DialogStyle</item> </style>
and
<style name="DialogStyle" parent="android:Theme" > <item name="android:windowBackground">@drawable/background_holo_light</item> <item name="android:textColor">#014076</item> </style>
EDIT
I do not call a dialog from my code. This is only the default dialog box that appears when you long click on any EditText. Typically, this contains keyboard options such as the Select word, Select all, Input method, etc.
android android-alertdialog android-theme
jaibatrik
source share