Remove icon of DialogPreference appearing on PreferenceActivity screen
-
06-03-2021 - |
题
Does anyone know how to remove the icon of DialogPreference
appearing on PreferenceActivity
screen?
The icon having down arrow bounded inside a circle (▼), which appears on the preference list.
Similar question to this one: Android: How to remove arrow down icon next to EditTextPreference entry?
解决方案
Oh well, I've found the other way around is to create regular Preference
, and implement OnPreferenceClickListener
to display a dialog.
其他提示
Try setDialogIcon(null)
on your DialogPreference
.
不隶属于 StackOverflow