contruct dynamically a viewholder
<p>I am managing my view with a viewholder and i am trying to get different textview and image view result according <strong>if condition is verify (see snipset bellow )</strong>
The problem is that when I scroll and then returning to the top the result display become different from the origin . Bellow my snipset code I've been trying .I can't found where the problem come from . Can someone help me on it ?</p>

<pre><code>            ViewHolder holder = (ViewHolder) view.getTag();
</code></pre>

<p>compteur=0;
    if ("FRA".equalsIgnoreCase(source.trim())) {holder.flag = (ImageView) view.findViewById(R.id.flag);
                holder.description = (TextView) view
                        .findViewById(R.id.description);</p>

<pre><code>            holder.flag.setImageResource(R.drawable.flag_bnf);
            holder.description
                    .setText("ReSeller");

            holder.flag.setPadding(5, 5, 5, 5);
            holder.description.setPadding(60, 5, 5, 5);

            compteur = compteur + 25;
            LayoutParams lp = (LayoutParams) holder.flag.getLayoutParams();
            lp.setMargins(0, compteur, 0, 0);
            holder.flag.setLayoutParams(lp);
            LayoutParams lpdescription = (LayoutParams) holder.description
                    .getLayoutParams();
            lpdescription.setMargins(0, compteur, 0, 0);
            holder.description.setLayoutParams(lpdescription);
            compteur += compteur;

            holder.flag.setVisibility(View.VISIBLE);
            holder.description.setVisibility(View.VISIBLE);
</code></pre>
