HI ,
u can use ColorPic software to fetch the code of any color u want to use. :)




On Thu, May 19, 2011 at 3:12 PM, Kiran Kumar Kendole <
[email protected]> wrote:

> thanks Gaurav.
> I did same what you told.. worked fine.
>
> Thanks
> KIRANKUMARKENDOLE
>
>
>
> On Thu, May 19, 2011 at 5:25 AM, gaurav gupta 
> <[email protected]>wrote:
>
>> Hi kiran
>> u hav to simply add a file in values Folder of ur project.
>> there u can set ur colors as u want like
>>
>> <?
>>
>> xml version=*"1.0"* encoding=*"UTF-8"*?>
>>
>> <
>>
>> resources>
>>
>> <
>>
>> color name=*"Red"*>#FF0000</color>
>>
>> <
>>
>> color name=*"White"*>#FFFFFF</color>
>>
>> <
>>
>> color name=*"Black"*>#000000</color>
>>
>> <
>>
>> color name=*"Darkblue"*>#333366</color>
>> </resource>
>>
>> u can add any color u want here. Use these colors like
>>
>>
>>
>> tv.setBackgroundColor(R.color.*Black*); it will change the color in
>> runtime
>>
>>
>>
>>
>> android:textColor=*"@color/Black" use this line in ur xml file to change
>> the color of text*
>>
>>
>>
>>
>>
>> On Thu, May 19, 2011 at 1:28 PM, Kiran Kumar Kendole <
>> [email protected]> wrote:
>>
>>> Thanks
>>>
>>>
>>> KIRANKUMARKENDOLE
>>>
>>>
>>>
>>> On Wed, May 18, 2011 at 4:50 PM, TreKing <[email protected]> wrote:
>>>
>>>> On Wed, May 18, 2011 at 5:20 AM, Kiran Kumar Kendole <
>>>> [email protected]> wrote:
>>>>
>>>>> I am using Eclipse... and when I type R.(dot) i didnt see "color"
>>>>> option in suggestion box.. Do I need to import any class for this.
>>>>
>>>>
>>>>
>>>> http://developer.android.com/guide/topics/resources/color-list-resource.html
>>>>
>>>>
>>>> -------------------------------------------------------------------------------------------------
>>>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>>>> transit tracking app for Android-powered devices
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" 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-developers?hl=en
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" 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-developers?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" 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-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to