]> iEval git - unical.git/blob - src/ro/ieval/unical/DatePickerFragment.java
3387644f55b0dcf964c44c88cb84280a4b518959
[unical.git] / src / ro / ieval / unical / DatePickerFragment.java
1 package ro.ieval.unical;
2
3 import java.util.Calendar;
4
5 import android.app.DatePickerDialog;
6 import android.app.DatePickerDialog.OnDateSetListener;
7 import android.app.Dialog;
8 import android.app.DialogFragment;
9 import android.os.Bundle;
10
11 public class DatePickerFragment extends DialogFragment {
12 public static final String ARGUMENT_YEAR = "year";
13 public static final String ARGUMENT_MONTH = "month";
14 public static final String ARGUMENT_DAY = "day";
15
16 @Override
17 public Dialog onCreateDialog(final Bundle savedInstanceState) {
18 final Bundle args = getArguments();
19 return new DatePickerDialog(getActivity(), (OnDateSetListener) getActivity(),
20 args.getInt(ARGUMENT_YEAR),
21 args.getInt(ARGUMENT_MONTH),
22 args.getInt(ARGUMENT_DAY));
23 }
24 }
This page took 0.051019 seconds and 5 git commands to generate.