0

Made a list for this lesson - list

Now the question is how to switch to a new action using the addbutton button? to do so does not permit.

java filename - ProductAdapter:

viewHolder.addButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            Intent intent=new Intent(this, MainActivity2.class);
            startActivity(intent);
        }
    });
Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Max
  • 1
  • 1

0 Answers0