SwipeStack
SwipeStack copied to clipboard
onClick() of button doesn't work with current card
holder.op1 = (Button) convertView.findViewById(R.id.option1_card);
holder.op2 = (Button) convertView.findViewById(R.id.option2_card);
holder.op3 = (Button) convertView.findViewById(R.id.option3_card);
holder.op4 = (Button) convertView.findViewById(R.id.option4_card);
holder.op1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.e("op1","clicked");
holder.op1.setBackgroundColor(Color.WHITE);
holder.op1.setTextColor(Color.BLACK);
}
});
On clicking button of 1st card, properties of 3rd card gets changed.
have the same problem here with a list of cards, when i click a button in the first card it usually activates the action of another card that is not the first