Skip to content

Instantly share code, notes, and snippets.

@ziginsider
Created November 16, 2017 18:08
Show Gist options
  • Select an option

  • Save ziginsider/01530f13258c4241bb569068cc50ea50 to your computer and use it in GitHub Desktop.

Select an option

Save ziginsider/01530f13258c4241bb569068cc50ea50 to your computer and use it in GitHub Desktop.
public class ButtonRowType implements RowType {
private Context context;
public ButtonRowType(Context context) {
this.context = context;
}
public View.OnClickListener getOnClickListener() {
return new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(context, "Click!", Toast.LENGTH_SHORT).show();
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment