Total Android beginner here...
I have an Activity with an OnClick Listener as in this example: Multiple Buttons `OnClickListener()` android
And now I'm setting up a listener on Floating Action Button in a different activity. What I'm not sure about is whether it is possible to use that same listener, or does each class have to have it's own?
ACTIVITY #1 // a regular activity
public class Requests extends AppCompatActivity implements View.OnClickListener {...}
ACTIVITY #2 // A RecyclerView, CardView type activity
public static class MyViewHolder extends RecyclerView.ViewHolder {...}
I'd really like to have one Listener to handle the cardview click events, as well as the Floating Action Button.