The first line is useless :)

On Tue, Nov 11, 2008 at 1:49 PM, Peli <[EMAIL PROTECTED]> wrote:
>
> Thanks for the pointer. The following worked in my case:
>
>        getListView().setAddStatesFromChildren(false);
>        getListView().setItemsCanFocus(true);
>
> It is tricky to find the right combination of settings that do what I
> want :-)
>
> Peli
>
> On Nov 11, 6:05 pm, Romain Guy <[EMAIL PROTECTED]> wrote:
>> AlarmClock does not select the whole row. It uses two different
>> widgets inside one list item. You can however give the highlight to
>> the entire row by using android:addStatesFromChildren (or something
>> similar, check the documentation of ViewGroup.)
>>
>>
>>
>> On Tue, Nov 11, 2008 at 8:46 AM, Peli <[EMAIL PROTECTED]> wrote:
>>
>> > I have a similar problem. I want to do something similar as the
>> > AlarmClock application does (with CheckBox to the right, and clickable
>> > area to the left). With the onClick listeners this works in touch
>> > mode. Still, using the trackball, the whole row is selected. How can I
>> > prevent that and have the clickable area and the checkbox be
>> > selectable by trackball?
>>
>> > Peli
>>
>> > On Nov 11, 3:02 am, Romain Guy <[EMAIL PROTECTED]> wrote:
>> >> Test trackball navigation then, it might not work.
>>
>> >> On Mon, Nov 10, 2008 at 5:24 PM, Nickname <[EMAIL PROTECTED]> wrote:
>>
>> >> > Hi, Romain and Sunit.
>>
>> >> > Thanks for replies from you both.
>>
>> >> > My app needs to get both callbacks from the Button as well as from
>> >> > "the other area" of a ListView item.
>>
>> >> > Right now, I use a onClick listener to the LinearLayout of every
>> >> > ListView item. It works so far :-)
>>
>> >> > On Nov 10, 8:34 am, Romain Guy <[EMAIL PROTECTED]> wrote:
>> >> >> If you put a focusable View inside a list item, then the list item
>> >> >> will not be clickable. You would have to set a click listener on the
>> >> >> button for instance.
>>
>> >> >> On Sun, Nov 9, 2008 at 10:18 PM, Nickname <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > One of my ListView's has a Button view on every item's LinearLayout.
>>
>> >> >> > I just found that clicking on any item of the ListView does not
>> >> >> > callback its onItemClick(), which is set thru
>> >> >> > ListView.setOnItemClickListener().
>>
>> >> >> > If I remove the Button view from item layout, callback is ok then.
>>
>> >> >> > Can anybody advise me how I get the callback on the ListView with
>> >> >> > Button?
>>
>> >> >> > Thanks.
>>
>> >> >> --
>> >> >> Romain Guywww.curious-creature.org
>>
>> >> --
>> >> Romain Guywww.curious-creature.org
>>
>> --
>> Romain Guywww.curious-creature.org
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to