Code example for DialogFragment

Methods: onCreateView

0
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		// TODO 自動生成されたメソッド・スタブ 
		return super.onCreateView(inflater, container, savedInstanceState);
	} 
 
	@Override 
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
		builder.setTitle("タイトル");
		builder.setPositiveButton("OK", null);
		builder.setNegativeButton("Cancel", null);
		return builder.create();
	} 
 
} 
Experience pair programming with AI  Get Codota for Java