Hello,
I'm new with Android..today I followed the tutorial "Notepad Exercise
2" and all works fine;
I tried to build a list in which every row has a TextView and a
CheckBox;
to do this I modified the layout used for the rows (notes_row.xml in
the example);

After my changes I was not more able to catch the "click" event (using
onListItemClick)..I think the problem is that the modified row's
layout uses LinearLayout, but I'm not sure!!!!

The original notes_row.xml was simply:

<?xml version="1.0" encoding="utf-8"?>
<TextView android:id="@+id/text1" xmlns:android="http://
schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

while the new-one is

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
      android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:clickable="true">
<TextView android:id="@+id/text1" xmlns:android="http://
schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

<CheckBox android:id="@+id/CheckBox01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></CheckBox>
</LinearLayout>

Thanks for any help!!!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to