use of com.codetroopers.betterpickers.radialtimepicker.RadialTimePickerDialogFragment in project android-betterpickers by code-troopers.
the class SampleRadialTimeForced12hFormat method onResume.
@Override
public void onResume() {
// Example of reattaching to the fragment
super.onResume();
RadialTimePickerDialogFragment rtpd = (RadialTimePickerDialogFragment) getSupportFragmentManager().findFragmentByTag(FRAG_TAG_TIME_PICKER);
if (rtpd != null) {
rtpd.setOnTimeSetListener(this);
}
}
use of com.codetroopers.betterpickers.radialtimepicker.RadialTimePickerDialogFragment in project android-betterpickers by code-troopers.
the class SampleRadialTimeForced24hFormat method onResume.
@Override
public void onResume() {
// Example of reattaching to the fragment
super.onResume();
RadialTimePickerDialogFragment rtpd = (RadialTimePickerDialogFragment) getSupportFragmentManager().findFragmentByTag(FRAG_TAG_TIME_PICKER);
if (rtpd != null) {
rtpd.setOnTimeSetListener(this);
}
}
use of com.codetroopers.betterpickers.radialtimepicker.RadialTimePickerDialogFragment in project android-betterpickers by code-troopers.
the class SampleRadialTimeThemeCustom method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.text_and_button);
mResultTextView = (TextView) findViewById(R.id.text);
Button button = (Button) findViewById(R.id.button);
mResultTextView.setText(R.string.no_value);
button.setText(R.string.radial_time_picker);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
RadialTimePickerDialogFragment rtpd = new RadialTimePickerDialogFragment().setOnTimeSetListener(SampleRadialTimeThemeCustom.this).setCancelText(getString(R.string.button_label_custom_cancel)).setDoneText(getString(R.string.button_label_custom_ok)).setThemeCustom(R.style.MyCustomBetterPickersDialogs);
rtpd.show(getSupportFragmentManager(), FRAG_TAG_TIME_PICKER);
}
});
}
use of com.codetroopers.betterpickers.radialtimepicker.RadialTimePickerDialogFragment in project android-betterpickers by code-troopers.
the class SampleRadialTimeThemeCustom method onResume.
@Override
public void onResume() {
// Example of reattaching to the fragment
super.onResume();
RadialTimePickerDialogFragment rtpd = (RadialTimePickerDialogFragment) getSupportFragmentManager().findFragmentByTag(FRAG_TAG_TIME_PICKER);
if (rtpd != null) {
rtpd.setOnTimeSetListener(this);
}
}
use of com.codetroopers.betterpickers.radialtimepicker.RadialTimePickerDialogFragment in project android-betterpickers by code-troopers.
the class SampleRadialTimeThemeDark method onResume.
@Override
public void onResume() {
// Example of reattaching to the fragment
super.onResume();
RadialTimePickerDialogFragment rtpd = (RadialTimePickerDialogFragment) getSupportFragmentManager().findFragmentByTag(FRAG_TAG_TIME_PICKER);
if (rtpd != null) {
rtpd.setOnTimeSetListener(this);
}
}
Aggregations