AirFit / android-color-picker

Automatically exported from code.google.com/p/android-color-picker
0 stars 0 forks source link

the rusult looks different #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
my result looks lack of a textView  that  marked used red ink.could you tell me 
 why. in your first page ,your code is mistake ,you lack of "new"

 AmbilWarnaDialog dialog = new AmbilWarnaDialog(testColorPicter.this, 222, new OnAmbilWarnaListener() 
                    {

                        @Override
                        public void onCancel(AmbilWarnaDialog dialog) {
                            // TODO Auto-generated method stub
                            Log.i("","");
                        }

                        @Override
                        public void onOk(AmbilWarnaDialog dialog, int color) {
                            // TODO Auto-generated method stub

                        }

                    });
                    dialog.show();

            }
        });

Original issue reported on code.google.com by wp19831...@gmail.com on 6 Oct 2010 at 10:46

Attachments:

GoogleCodeExporter commented 9 years ago
What is "222" in your code?

If you want to have dark gray, it should be written as 0xff222222
Where ff is the alpha (ff is opaque), and then the next 6 digits are the RR GG 
BB (red, green, blue) values.

The first page's doc has been updated.

Original comment by yukuku on 7 Oct 2010 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by yukuku on 7 Oct 2010 at 3:47

GoogleCodeExporter commented 9 years ago
i am sorry,it is my mistake, i modify the int 222 to 0xff222222
@Override
                        public void onOk(AmbilWarnaDialog dialog, int color) {
                                                        Toast.makeText(testColorPicter.this, "color: "+color,Toast.LENGTH_LONG).show();
                        }
color value is -56768, i think you should to convert it.

Original comment by wp19831...@gmail.com on 7 Oct 2010 at 8:39