Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. public class MyListener extends Button implements View.OnClickListener
  2. {
  3.     public MyListener(Context context) {
  4.         super(context);
  5.         init();
  6.     }
  7.  
  8.     private void init(){
  9.         setOnClickListener(this);
  10.  
  11.         Log.d("TAG", "init: test");
  12.     }
  13.     @Override
  14.     public void onClick(View v) {
  15.  
  16.     }
  17.  
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement