AutoCompleteTextView OnItemClickListener not working with SimpleAdapter
<p>For my application, I am trying to find a way to implement custom view AutoCompleteTextView drop-down items. I have done so successfully except for the fact that the items which populate the drop-down list are not clickable.</p>

<p>Using the emulator, if I scroll the mouse wheel down after the list appears, it will select them one by one, but it will not let me click them with the mouse.</p>

<p>I am thinking it may be because the SimpleAdapter is not meant to be used with an AutoCompleteTextView's drop-down list...?</p>

<p>Here is my code:</p>

<pre><code>        final Dialog weaponDialog = new Dialog(BattleScreen.this);
        weaponDialog.setContentView(R.layout.weapon_selection_dialog);
        weaponDialog.setTitle("Add a Weapon");
        weaponDialog.setCancelable(true);

        weaponDialogAcTextView = (AutoCompleteTextView) weaponDialog.findViewById(R.id.weaponSelectionAutoCompleteTxt);
        weaponDialogAddButton = (Button) weaponDialog.findViewById(R.id.weaponSelectionAddButton);
        weaponDialogWeaponInfo = (TextView) weaponDialog.findViewById(R.id.weaponSelectionInformationTxt);

        ArrayList&lt;Map&lt;String, String&gt;&gt; weaponStringArrayList = ConstantEquipmentHelper.getCondensedWeaponString();

        SimpleAdapter simpleAdapter = new SimpleAdapter(this, weaponStringArrayList, R.layout.weapon_list_item ,new String[] {"name", "category"}, new int[] { R.id.weaponListItemName, R.id.weaponListItemCategory});

        weaponDialogAcTextView.setAdapter(simpleAdapter);

        weaponDialogAddButton.setEnabled(false);


        weaponDialogAcTextView.setOnItemClickListener(new OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {

                Toast.makeText(getApplicationContext(), "ITEM CLICK", Toast.LENGTH_SHORT).show();
            }
        });
</code></pre>

<p>My item layout code:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" android:focusable="false"&gt;

&lt;LinearLayout
    android:id="@+id/linearLayout1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" android:clickable="false"&gt;

    &lt;TextView
        android:id="@+id/weaponListItemName"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Medium Text"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:inputType="textImeMultiLine"
        android:textColor="@color/Black"
        android:paddingLeft="5dp"
        android:clickable="false"/&gt;

    &lt;TextView
        android:id="@+id/weaponListItemCategory"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Small Text"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:inputType="textImeMultiLine"
        android:textColor="@color/DarkGrey"
        android:paddingLeft="10dp"
        android:clickable="false"/&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p></p>

<p>Thanks,
Andrew</p>

<p>EDIT:</p>

<p>SOLVED:</p>

<p>In the layout, I had "android:inputType="textImeMultiLine".</p>

<p>That was causing the problem.</p>
