I am getting error while creating a Toast
Toast
Toast toast = Toast.makeText(this, text, duration);
I am getting cannot resolve ma
ma
in the onClick method try this
Toast.makeText(view.getContext(), "sorry", Toast.LENGTH_LONG).show();
it did work form me.