[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Sarwar Erfan
Hi Pedro, Try android:descendantFocusability=blocksDescendants in the LinearLayout of the row xml. Info: http://developer.android.com/reference/android/view/ViewGroup.html#attr_android:descendantFocusability Regards Sarwar Erfan On Dec 1, 2:58 pm, pedr0 pulsarpie...@gmail.com wrote: Hi at

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Sarwar Erfan
Also, android:clickable=true for the row layout. You might also be interested to make the individual children or a row not clickable. Regards Sarwar Erfan On Dec 1, 3:12 pm, Sarwar Erfan erfanonl...@gmail.com wrote: Hi Pedro, Try android:descendantFocusability=blocksDescendants in the

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread pedr0
Each solution doesn't work... Is an absurd behavior I think, but if I set android:clickable=true for the row layout I cannot select any item (??!) On 1 Dic, 10:15, Sarwar Erfan erfanonl...@gmail.com wrote: Also, android:clickable=true for the row layout. You might also be interested to make

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread pedr0
I have partially solved the problem: simple change to fill_parent the listview android:layout_width paramter, but now I have all the item of the listView aligned in center position and not on the left.. On 1 Dic, 10:32, pedr0 pulsarpie...@gmail.com wrote: Each solution doesn't work... Is an

Re: [android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Kostya Vasilyev
Pedro, How do you register for click events in this list view? You shouldn't need to play any tricks with clickable, focusable, etc. Also, layout_height=fill_parent is a pretty weird setting for a list view item layout. For item alignment control, set layout_gravity=left on the child views.

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread pedr0
Thanks a lot guys, I solved, I have to change my rows layout using an RelativeLayout instead an LinearLayout! Kostya, I changed the ListView layout_width setting, not height, why is weird? On 1 Dic, 11:04, Kostya Vasilyev kmans...@gmail.com wrote: Pedro, How do you register for click events

Re: [android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Kostya Vasilyev
01.12.2010 15:57, pedr0 пишет: Thanks a lot guys, I solved, I have to change my rows layout using an RelativeLayout instead an LinearLayout! Cool! Kostya, I changed the ListView layout_width setting, not height, why is weird? Your original message had height=fill_parent for the list item