Skip to content
Advertisement

Tag: android-theme

Change PreferenceFragmentCompat dialog background color in Android

I recently started working with PreferenceFragmentCompat and MaterialComponents and noticed that in Dark mode, Dialogs generated by preferences like ListPreference always have that weird grey android background no matter how many background attributes I change in the style. (source: pocketnow.com) This I’ve tried: I’ve also tried with android:background and worked but it brokes everything. So I investigated a bit in-depth

Advertisement