title: multiple views are effecting, ListView android
body: <p>I have ListView with 8 (4 visible) List items on it. each view contains one TextView and one ImageView (initially set to transparent). now am trying to set img to imageView from onItemClick method. Its working fine for me, but when i scroll down some other view also effecting. for example if i select 0th position item, both 0th and 4th position views are setting to same img. how can i resolve this.</p>
  
  <p>java code:</p>
  
  <pre><code>list.setAdapter(new SimpleAdapter(this,
              application.distanceList, R.layout.drop_down_view, from, to));
  list.setOnItemClickListener(new OnItemClickListener() {
  
          public void onItemClick(AdapterView&lt;?&gt; arg0, View v, int arg2,
                  long arg3) {
              try {
                  ((ImageView) temp.findViewById(R.id.ddviv))
                          .setImageResource(android.R.color.transparent);
              } catch (NullPointerException e) {
  
              }
              ((ImageView) v.findViewById(R.id.ddviv))
                      .setImageResource(R.drawable.drop_sel);
              temp = v;}
      });
  </code></pre>