hi this is venkat, How to add the image (or changing the color also ok) on on list view on click of the list Item
Please do the favour., I am strugling from 2 days On Oct 24, 9:04 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Sure! On ListView, set android:listSelector="@android:color/transparent". > > On Oct 24, 2008 2:45 AM, "James" <[EMAIL PROTECTED]> > wrote: > > Hi, > > I have a set of items in a ListView . I'm changing the background of > items when user select or click on the them. The background image > changes correctly, but there always has an colored(Orange/Yellow) > rectangle covers on the background image when I press up/down arrow or > click on items. This looks very terrible especially when click -- the > colored(Yellow, in this case) rectangle will show and disapear again > quickly, but I definately could see it flashes. Is there a way to > remove the highlight mark(colored(Orange/Yellow) rectangle)? I'm using > 1.0 rc1. > > The items in ListView is TextView, as below: > > <?xml version="1.0" encoding="utf-8"?> > <TextView android:id="@+id/phone_numbers_row_text_tv" > xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_centerHorizontal="true" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:background="@drawable/list_view_selector" > android:gravity="center" > /> > > The "list_view_selector" is as below: > <?xml version="1.0" encoding="utf-8"?> > <selector xmlns:android="http://schemas.android.com/apk/res/android"> > <item > android:state_selected="true" > android:drawable="@drawable/number_select_bg"/> > <item > android:state_pressed="true" > android:drawable="@drawable/number_select_bg"/> > <item > android:state_focused="true" > android:drawable="@drawable/number_select_bg"/> > <item > android:drawable="@drawable/number_bg"/> > </selector> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

