Create a simple custom class and extends the dialog fragment as below. You can create your own layout and handle the view clicks.
public static class CustomDialogFragment extends DialogFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.custom_dialog_fragment, container, false);
return view
}
}