use of android.app.DialogFragment in project diary by billthefarmer.
the class Diary method showDatePickerDialog.
// showDatePickerDialog
public void showDatePickerDialog(Calendar date) {
DialogFragment fragment = DatePickerFragment.newInstance(date);
fragment.show(getFragmentManager(), DATEPICKER);
}
use of android.app.DialogFragment in project coursera-android by aporter.
the class TimePickerFragmentActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Capture UI elements
mTimeDisplay = (TextView) findViewById(R.id.timeDisplay);
mPickTime = (Button) findViewById(R.id.pickTime);
// Set an OnClickListener for the Change the Time Button
mPickTime.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Create a new DatePickerFragment
DialogFragment newFragment = new TimePickerFragment();
// Display DatePickerFragment
newFragment.show(getFragmentManager(), "TimePicker");
}
});
}
use of android.app.DialogFragment in project cardslib by gabrielemariotti.
the class MainNativeActivity method openDialogFragment.
private void openDialogFragment(DialogFragment dialogStandardFragment) {
if (dialogStandardFragment != null) {
FragmentManager fm = getFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
Fragment prev = fm.findFragmentByTag("carddemo_dialog");
if (prev != null) {
ft.remove(prev);
}
//ft.addToBackStack(null);
dialogStandardFragment.show(ft, "carddemo_dialog");
}
}
use of android.app.DialogFragment in project cardslib by gabrielemariotti.
the class MainActivity method openDialogFragment.
private void openDialogFragment(DialogFragment dialogStandardFragment) {
if (dialogStandardFragment != null) {
FragmentManager fm = getFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
Fragment prev = fm.findFragmentByTag("carddemo_dialog_extras");
if (prev != null) {
ft.remove(prev);
}
//ft.addToBackStack(null);
dialogStandardFragment.show(ft, "carddemo_dialog_extras");
}
}
use of android.app.DialogFragment in project Klyph by jonathangerbaud.
the class AlbumVideosActivity method onVideoSelected.
@Override
public void onVideoSelected(Fragment fragment, Video video) {
videoToDisplay = video;
DialogFragment dialog = new VideoQualityDialog();
dialog.show(getFragmentManager(), "VideoQualityDialog");
}
Aggregations