Button click issue inside the custom adapter
<p>Here is my code for button click inside my custom adapter,</p>

<pre><code>holder.highlightVal.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {

                        if (userVal.equals("1")) {


                            holder.highlightVal
                                    .setBackgroundResource(R.drawable.highlightVal_btn_clicked);
                            holder.highlightVal.setText("13 users");
                            holder.highlightVal.setTextColor(Color.WHITE);

                        } else {

                            holder.highlightVal
                                    .setBackgroundResource(R.drawable.highlightVal_btn_normal);
                            holder.highlightVal.setText("13 users");
                            holder.highlightVal.setTextColor(Color
                                    .parseColor("#A0A0A0"));

                        }
        }
    });
</code></pre>

<p>I set this adapter in my ListView, my problem is, when i click the <code>highlightVal</code> button i need to increment the values of user's and i must set this incremented value as the text of that button, here my problem is, assume in list having 10 elements, now i click the zeroth positioned button now the values i incremented but the same value is set for the alternative positions, <code>ie the zeroth button value is set for 2nd,4th,...</code> is there any solution to fix this issue. whee <code>userVal</code> is a static value to assign the button background.</p>
