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);
}
});