Skip to content

Instantly share code, notes, and snippets.

@haxzie-xx
Created January 21, 2019 19:00
Show Gist options
  • Save haxzie-xx/fc32669bd352317c64837098d3acf680 to your computer and use it in GitHub Desktop.
Save haxzie-xx/fc32669bd352317c64837098d3acf680 to your computer and use it in GitHub Desktop.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
View view = inflater.inflate(R.layout.layout_full_screen_dialog, container, false);
Toolbar toolbar = view.findViewById(R.id.toolbar);
toolbar.setNavigationIcon(R.drawable.ic_close_white_24dp);
toolbar.setNavigationOnClickListener(view1 -> cancelUpload());
toolbar.setTitle("My Dialog");
return view;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment