Ah.

The "focusable=false" workaround is known to not work for ImageButtons. Works for other button types, but not for ImageButtons. Don't know what the fix for ImageButtons is, sorry.

-- Kostya

28.12.2010 21:52, Byron Penner ?????:
onItemClick still dosent fire for the listview :( heres the xml for an item (renders properly and button works).

        <?xml version="1.0" encoding="utf-8"?>

        <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android";

            android:orientation="vertical"

            android:layout_width="fill_parent"

            android:id="@+id/itemmainlayout"
        android:layout_height="wrap_content">

        <LinearLayout android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:id="@+id/titlelayout" android:minHeight="48dip">

        <TextView
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Default Item Text"
        android:gravity="center_vertical" android:paddingLeft="5dip"
        android:layout_width="fill_parent" android:layout_weight="1"
        android:id="@+id/transnametextview"
        android:paddingRight="5dip"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"></TextView>

        <ImageButton android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/info_down" android:id="@+id/infobutton"
        android:focusable="false" android:focusableInTouchMode="false"
        android:clickable="true"></ImageButton>

        </LinearLayout>


        <LinearLayout android:layout_width="fill_parent"
        android:layout_marginLeft="12dip"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_marginRight="12dip"
        android:id="@+id/infolayout" android:visibility="gone">

        <TextView android:layout_height="wrap_content"
        android:text="Description" android:layout_width="fill_parent"
        android:id="@+id/descriptiontextview"
        android:textAppearance="?android:attr/textAppearanceSmall"></TextView>

        <TextView android:layout_height="wrap_content"
        android:text="Published: 2011"
        android:layout_width="fill_parent"
        android:id="@+id/pubyeartextview"
        android:textAppearance="?android:attr/textAppearanceSmall"></TextView>

        <TextView android:layout_height="wrap_content"
        android:text="Copyright" android:layout_width="fill_parent"
        android:id="@+id/copyrighttextview"
        android:textAppearance="?android:attr/textAppearanceSmall"></TextView>

        <ImageView android:layout_width="fill_parent"
        android:id="@+id/ImageView01" android:layout_height="1dip"
        android:src="@drawable/line"
        android:background="@drawable/line"></ImageView>

        </LinearLayout>


        </LinearLayout>

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


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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