I'm creating preference screen programmatically and I'm putting a ColorPrefrence inside it in this way:
ColorPreference pref= new ColorPreference(getActivity(),null);
pref.setTitle("Color");
pref.setKey("pref_color");
pref.setDefaultValue("#000000"); // or Color.WHITE
The problem is that until I change the color the thumbail isn't shown, because in method onSetInitialValue() of ColorPreference defaultValue is loaded right but not used as argument into setColor(). Programmatically there'isnt a way to set the defaultColor. Isn't it?
I'm creating preference screen programmatically and I'm putting a ColorPrefrence inside it in this way:
The problem is that until I change the color the thumbail isn't shown, because in method onSetInitialValue() of ColorPreference defaultValue is loaded right but not used as argument into setColor(). Programmatically there'isnt a way to set the defaultColor. Isn't it?