문제

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

도움이 되었습니까?

해결책

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;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top