Hi, R.color.solid_blue is NOT a color, it is a *reference* to a color. Instead you need to use getResources().getColor(R.color.solid_blue).
On Thu, Jan 1, 2009 at 7:06 AM, manoj <[email protected]> wrote: > > 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. > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

