Why did you use complex item layout?
Use selector as TableLayout background.
On 20 Лис, 21:18, Francesco nolano...@gmail.com wrote:
Hi all.
i have a list View in my app (this is the xml layout):
?xml version=1.0 encoding=utf-8?
ListView
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 victor.scherb...@gmail.com wrote:
Why did you use complex item layout?
Use selector
sat, it is not correct, because Francesco wants use a focus.
On 23 Лис, 13:47, sat sathvikm...@gmail.com 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
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
@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 victor.scherb...@gmail.com wrote:
sat, it is not correct, because Francesco wants use a focus.
On 23 Лис, 13:47, sat sathvikm...@gmail.com wrote:
5 matches
Mail list logo