[android-developers] Re: How to change color of ListView child items on focus

2010-11-23 Thread sat
@Viktor -- Yeah , Whatever I told is for OnClick , since he said on selection , Click event can be one mode of selection. On Nov 23, 6:55 pm, viktor wrote: > sat, it is not correct, because Francesco wants use a focus. > > On 23 Лис, 13:47, sat wrote: > > > I dint go through ur xml , But I will

Re: [android-developers] Re: How to change color of ListView child items on focus

2010-11-23 Thread Kumar Bibek
Changing the background color is too much code, however, although it works. A better way to get this going is by using StateListDrawables. Create your own state list drawable, and set it as the background to each of your items, or the as the selector of the ListView. Kumar Bibek http://techdroid.

[android-developers] Re: How to change color of ListView child items on focus

2010-11-23 Thread viktor
sat, it is not correct, because Francesco wants use a focus. On 23 Лис, 13:47, sat wrote: > I dint go through ur xml , But I will give an idea. > implemet OnListItemClick handler of listview and we get access to the > child views , and u can change the background color using it. > > On Nov 23, 4:

[android-developers] Re: How to change color of ListView child items on focus

2010-11-23 Thread sat
I dint go through ur xml , But I will give an idea. implemet OnListItemClick handler of listview and we get access to the child views , and u can change the background color using it. On Nov 23, 4:23 pm, viktor wrote: > Why did you use complex item layout? > > Use selector as TableLayout backgrou

[android-developers] Re: How to change color of ListView child items on focus

2010-11-23 Thread viktor
Why did you use complex item layout? Use selector as TableLayout background. On 20 Лис, 21:18, Francesco wrote: > Hi all. > > i have a list View in my app (this is the xml layout): > > > http://schemas.android.com/apk/res/android"; >         android:id="@+id/arrayList" >         android:layou