Created
January 31, 2022 09:31
-
-
Save micHar/035ad3f40ee15ebe3e543ce8e522fdc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface OnClickListener { | |
void onClick(View v); | |
} | |
button.setOnClickListener(new OnClickListener() { | |
public void onClick(View v) { | |
//handle click | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment