why not set correct value in gridview after parsing xml?
<p>My need to show all user on gridview there are some people is in online and some is in offline mode.my parsing is right and value also come right for individual user(online/offline) but correct value is not show in grid view my code is this-</p>

<pre><code>  @Override
    public View getView(int position, View convertView, ViewGroup parent) 
    {
        View vi=convertView;
        ViewHolder holder;
        if(convertView==null)
        {
            Log.e("getview","1");
            vi = inflater.inflate(R.layout.loginstatus, null);
            holder=new ViewHolder();
            Log.e("","in adapter");
            holder.name=(TextView)vi.findViewById(R.id.mainname);
            holder.image=(ImageView)vi.findViewById(R.id.image);
            holder.statusimg =(ImageView)findViewById(R.id.statusgreen);
            vi.setLayoutParams(new GridView.LayoutParams(85, 85));
            vi.setPadding(8, 8, 8, 8);
            vi.setTag(holder);
        }
        else
            holder=(ViewHolder)vi.getTag();
        holder.name.setText(UserListSiteList.FirstName.get(position));
         String onlinevalue = UserListSiteList.Online.get(position);
         System.out.println("onlinevalues......."+onlinevalue+"list value"+UserListSiteList.Online+"position"+position);
        if(onlinevalue.equalsIgnoreCase("true"))
        {
        holder.image.setTag(data[position]);
        }
        else
        {
            if(holder.statusimg!=null)
            holder.statusimg.setVisibility(View.INVISIBLE);
            holder.image.setTag(data[position]);    
        }
        imageLoader.DisplayImage(data[position],MainScreen.this,holder.image);
        return vi;
    }
</code></pre>
