Hello,

I have an AutoCompleteTextView with suggest the name of the people in
the contact list. I display a custom view with the photo and the name
of the contact in the suggestion. It works perfectly, except nothing
happen when I click on one of the suggested item ...

The view that I use :

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
                    android:layout_height="wrap_content"
                    android:minHeight="58dip"
                    android:layout_width="fill_parent"
                    android:orientation="horizontal"
                    android:gravity="center_vertical"
                    android:focusable="true"
                    
android:background="@android:drawable/list_selector_background"
                    android:clickable="true">

    <ImageView android:layout_height="54dip"
                android:layout_marginLeft="2dip"
                android:layout_marginRight="14dip"
                android:layout_width="54dip"
                android:id="@+id/playerPhoto"
                android:src="@drawable/contact_picture"></ImageView>

    <TextView android:layout_width="fill_parent"
                    android:textAppearance="?android:attr/textAppearanceMedium"
                    android:maxLines="1"
                    android:ellipsize="end"
                    android:layout_weight="1"
                    android:layout_height="fill_parent"
                    android:id="@+id/playerName"
                    android:text="name"
                    android:layout_gravity="center_vertical"
                    android:gravity="center_vertical"
                    android:textColor="#000000"
                    android:clickable="true"/>

</LinearLayout>

ideas ?

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