How to get OnItemClickListener for SimpleAdapter
<pre><code> final ListView lv= (ListView)findViewById(R.id.list);
 String[] from = new String[] {"a", "b","c"};
 int[] to = new int[] { R.id.textbutton , R.id.buttonlist, R.id.imgart};
</code></pre>

<p>that's my variable</p>

<p>n my code</p>

<pre><code>List&lt;HashMap&lt;String, String&gt;&gt; fillMaps = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
            String[]ArrayStr = Func.split(resultString, "|*|");
            for(int i = 0; i &lt; ArrayStr.length; i++){
                String[]AStr = Func.split(ArrayStr[i], "|**|");
                HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
                map.put("a", ArrayStr[i]);
                map.put("b", AStr[1]);
                fillMaps.add(map);
            }

            // fill in the grid_item layout
            SimpleAdapter adapter = new SimpleAdapter(this, fillMaps, R.layout.list, from, to);
            lv.setAdapter(adapter);


            lv.setTextFilterEnabled(true);

            lv.setOnItemClickListener(new OnItemClickListener() {
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                // When clicked, show a toast with the TextView text
                Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
                    Toast.LENGTH_SHORT).show();
              }
            });
</code></pre>

<p>why it's still can't click?
whats wrong with my code?</p>

<p>sorry i'm noob in android...</p>
