Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created December 11, 2017 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchtabian/24dc7175c1a1b5d37190d48e6b8673b7 to your computer and use it in GitHub Desktop.
Save mitchtabian/24dc7175c1a1b5d37190d48e6b8673b7 to your computer and use it in GitHub Desktop.
mOpenDialog.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.d(TAG, "onClick: opening dialog");
MyCustomDialog dialog = new MyCustomDialog();
dialog.setTargetFragment(MainFragment.this, 1);
dialog.show(getFragmentManager(), "MyCustomDialog");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment