SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

onClick() of button doesn't work with current card

Open manavpatadia opened this issue 9 years ago • 1 comments

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.

manavpatadia avatar Jul 03 '16 19:07 manavpatadia

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

vzaffalon avatar Jun 23 '17 03:06 vzaffalon