How to highlight the background of a textView

by manoj » Fri, 02 Jan 2009 05:44:28 GMT


Sponsored Links
 Hi friends,

I am using LinearLayout. I am adding some texts to this layout (as a
list).

When I click the particular text, its background should be changed to
some colour.

I am using the code like:

View text = parent_layout1.findViewById(R.id.text);
text.setBackgroundColor(R.color.solid_blue);

But the background is not highlighted, showing only blank screen.

How do I achieve my goal.

Can any one please help me.

Thanks,
Manoj Kumar.M.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. how mdm is possible in android

i cannot find any info on mdm. can anybody give a hint? how does
airwatch do it?
thx

-- 

2. Flash di ptk

Wew,, parah juga yah.. itu stabil segt kah om?

Pake paket yg apa untuk flash nya?

~~~
@leonardusjeff
~~~~~~
sent from froyo-ed dX 2.3.15_deodexed



-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

Aturan Jual/Kloteran ID-Android  http://goo.gl/azW7

3. 2.1 vs 2.2 ZipInputStream

4. Running an app within another app

5. Spica Terendam Air

6. ActivityNotFoundException for Media Gallery android.intent.action.PICK on Samsung Fascinate

7. beli handphone android