]> iEval git - unical.git/blame_incremental - src/ro/ieval/unical/DatePickerFragment.java
Adds title date and time to alarm layout
[unical.git] / src / ro / ieval / unical / DatePickerFragment.java
... / ...
CommitLineData
1package ro.ieval.unical;
2
3import java.util.Calendar;
4
5import android.app.DatePickerDialog;
6import android.app.DatePickerDialog.OnDateSetListener;
7import android.app.Dialog;
8import android.app.DialogFragment;
9import android.os.Bundle;
10
11public 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.016364 seconds and 5 git commands to generate.