Frage

I'm using the ColorPicker Dialog the which is contained in the API Demos (SDK Android)... When I use it on my app, the size is changed, also the background color... How can I get the same Dialog as in the API demo, here are both pictures:

This is what I like to get enter image description here

And this is what I'm getting enter image description here

War es hilfreich?

Lösung

It's easy, just change the constructor of the ColorPickerDialog:

public ColorPickerDialog(Context context,
                         OnColorChangedListener listener,
                         int initialColor) {
     super(context,android.R.style.Theme_Holo_Light_Dialog_NoActionBar);//set you favorite theme
     //super(context); //This is the normal constructor


    mListener = listener;
    mInitialColor = initialColor;
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top