"basic" listView adapter question
<p>I have a listview where each row is composed of a textview and an imageview. I want to set the visibility of the imageview when the adapter is created. following is the relevant piece of code where i am trying to just SET the 3rd row's imageview to VISIBLE state (by default, all are set to INVISIBLE in my lis_item_icon_text.xml file that is inflated). Can you pls tell me how to achieve this? TIA.</p>

<pre><code>    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder;
        if (convertView == null) {
            convertView = mInflater.inflate(R.layout.list_item_icon_text,null);
            holder = new ViewHolder();
            holder.text = (TextView) convertView.findViewById(R.id.text);
            holder.icon = (ImageView) convertView.findViewById(R.id.icon);              
            convertView.setTag(holder);
        } else {
            holder = (ViewHolder) convertView.getTag();
        }
        holder.text.setText(data_text_array[position]);
        holder.icon.setImageBitmap(mIcon);
        if(position == 3) {
            holder.icon.setVisibility(View.VISIBLE);
        }
        return convertView;
    }

    static class ViewHolder {
        TextView text;
        ImageView icon;
    }
</code></pre>
