Is it possible to define one's own colours? I noticed there are a very
limited selection that are predefined.
I know if I was using xml to generate the view it's possible to define
the background as a hex value. Can I do something similar at runtime?

On Nov 19, 4:09 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Thanks very much :)
>
> On Nov 19, 3:46 pm, Dennis Wilmsmann <[EMAIL PROTECTED]>
> wrote:
>
> > Use the pre-defined colors from Java:
>
> > int i = Color.RED;
> > int j = Color.BLUE;
> > ...
>
> > Dennis
>
> > On 19 Nov., 16:34, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > So the android documentation helpfully tells me that:
>
> > > color:  the color of the background
>
> > > How do you express a colour as an int?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to