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 <
k.kirankumar1...@gmail.com> wrote:

> Thanks
>
>
> KIRANKUMARKENDOLE
>
>
>
> On Wed, May 18, 2011 at 4:50 PM, TreKing <treking...@gmail.com> wrote:
>
>> On Wed, May 18, 2011 at 5:20 AM, Kiran Kumar Kendole <
>> k.kirankumar1...@gmail.com> 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 android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to