ListView filled with CheckBoxes -- they go mad
<p>I need your help. I'm really new to Android, developing in Eclipse with the latest 2.1 SDK.</p>

<p>This is really simple. I make a ListView which is filled with Checkbox widgets.</p>

<p>My code:</p>

<pre><code>public class HelloAndroid extends Activity {

    static final String[] COUNTRIES = new String[] {
        "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra",
        "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina",
        "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan",
        "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium"}; 

    protected ListView myList;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        myList = (ListView)findViewById(R.id.myList);
        ArrayAdapter&lt;String&gt; myAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.row, R.id.myBox, COUNTRIES); 
        myList.setAdapter(myAdapter);
    }
}
</code></pre>

<p>And this is the Layout-XML-file (row.xml), consisting of a single checkbox:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;CheckBox
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/myBox"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
</code></pre>

<p>Now if there are enough strings in the <code>COUNTRIES</code>-Array and you can scroll the List, you will see, that if you check one CheckBox and scroll down, some another CheckBox gets checked automatically. And if you check some more boxes, more get checked automatically, or ones that were checked get unchecked.</p>

<p>I've also tried <code>android:focusable="false"</code> for the CheckBox (in the XML), as well as <code>android:focusableInTouchMode</code>, as described in some similar threads, but nothing seems to help...</p>

<p>Looks like its a bug??</p>
