本文整理汇总了Java中com.sleepbot.datetimepicker.time.RadialPickerLayout类的典型用法代码示例。如果您正苦于以下问题:Java RadialPickerLayout类的具体用法?Java RadialPickerLayout怎么用?Java RadialPickerLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RadialPickerLayout类属于com.sleepbot.datetimepicker.time包,在下文中一共展示了RadialPickerLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
// TODO Auto-generated method stub
newRemindTimeString += (hourOfDay < 10 ? "0" + String.valueOf(hourOfDay) : String.valueOf(hourOfDay)) + ":";
newRemindTimeString += (minute < 10 ? "0" + String.valueOf(minute) : String.valueOf(minute)) + ":";
newRemindTimeString += "00";
if (newRemindTimeString.length() != GlobalSettings.FULL_DATE_FORMAT.length()) {
return;
}
setTimeRecord.setRemindTime(newRemindTimeString);
TimeFleetingData.saveRecord(setTimeRecord);
notifyDataSetChanged();
if (GlobalSettings.REMIND_ENABLE) {
MainActivity.intentService = new Intent(mContext, LongRunningService.class);
MainActivity.intentService.setAction("TimeFleeting Reminder");
MainActivity.initReminds();
LongRunningService.remindList = GlobalSettings.REMIND_LIST;
mContext.stopService(MainActivity.intentService);
mContext.startService(MainActivity.intentService);
}
}
开发者ID:Nightonke,项目名称:TimeFleeting,代码行数:25,代码来源:ListViewAdapter.java
示例2: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
GlobalSettings.REMIND_HOUR = hourOfDay;
GlobalSettings.REMIND_MINUTE = minute;
menuRemindTimeTextView.setText(
(GlobalSettings.REMIND_HOUR < 10 ?
"0" + String.valueOf(GlobalSettings.REMIND_HOUR) :
String.valueOf(GlobalSettings.REMIND_HOUR)) + ":" +
(GlobalSettings.REMIND_MINUTE < 10 ?
"0" + String.valueOf(GlobalSettings.REMIND_MINUTE) :
String.valueOf(GlobalSettings.REMIND_MINUTE)));
editor.putInt("REMIND_HOUR", GlobalSettings.REMIND_HOUR);
editor.putInt("REMIND_MINUTE", GlobalSettings.REMIND_MINUTE);
editor.commit();
initPastReminds();
LongRunningPastService.remindList = GlobalSettings.REMIND_PAST_LIST;
stopService(intentPastService);
startService(intentPastService);
}
开发者ID:Nightonke,项目名称:TimeFleeting,代码行数:20,代码来源:MainActivity.java
示例3: showTimePicker
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
private void showTimePicker(final int position, final AlarmCardRecyclerAdapter.AlarmCardViewHolder viewHolder)
{
String[] time = StringUtil.getTimeFormattedSystem(mContext, 13, 0).split(" ");
boolean is24h = time.length < 2;
AlarmPref alarmPref = mAlarmPrefs.get(position);
final TimePickerDialog timePickerDialog = TimePickerDialog.newInstance(
new TimePickerDialog.OnTimeSetListener()
{
@Override
public void onTimeSet(RadialPickerLayout radialPickerLayout, int h, int m)
{
setAlarmTime(position, h, m);
setAlarmTimeView(viewHolder.alarmTime, viewHolder.am_pm, h,
m);
activateAlarm(viewHolder, position);
}
},
alarmPref.getHour(),
alarmPref.getMinute(),
is24h,
false);
timePickerDialog.show(getActivity().getSupportFragmentManager(), null);
}
开发者ID:AlphaBetaPeter,项目名称:alarming,代码行数:24,代码来源:SetAlarmFragment.java
示例4: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
cHour = hourOfDay;
cMin = minute;
hourEdit.setText(hourOfDay+":"+minute);
}
开发者ID:fongwama,项目名称:Mosungi,代码行数:9,代码来源:AddAgendaActivity.java
示例5: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
remindTimeString += (hourOfDay < 10 ? "0" + String.valueOf(hourOfDay) : String.valueOf(hourOfDay)) + ":";
remindTimeString += (minute < 10 ? "0" + String.valueOf(minute) : String.valueOf(minute)) + ":";
remindTimeString += "00";
isRemind = true;
changeRemind = true;
}
开发者ID:Nightonke,项目名称:TimeFleeting,代码行数:10,代码来源:EditActivity.java
示例6: showDateTimeSelectors
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
/**
* Show date and time pickers
*/
protected void showDateTimeSelectors(long reminder) {
// Sets actual time or previously saved in note
final Calendar now = DateHelper.getCalendar(reminder);
DatePickerDialog mCalendarDatePickerDialog = DatePickerDialog.newInstance(
new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePickerDialog dialog, int year, int monthOfYear, int dayOfMonth) {
reminderYear = year;
reminderMonth = monthOfYear;
reminderDay = dayOfMonth;
TimePickerDialog mRadialTimePickerDialog = TimePickerDialog.newInstance(
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(RadialPickerLayout radialPickerLayout, int hour, int minute) {
hourOfDay = hour;
minutes = minute;
showRecurrencePickerDialog(recurrenceRule);
}
}, now.get(Calendar.HOUR_OF_DAY), now.get(Calendar.MINUTE),
DateHelper.is24HourMode(mActivity));
mRadialTimePickerDialog.show(mActivity.getSupportFragmentManager(), Constants.TAG);
}
}, now.get(Calendar.YEAR), now.get(Calendar.MONTH), now.get(Calendar.DAY_OF_MONTH));
mCalendarDatePickerDialog.show(mActivity.getSupportFragmentManager(), Constants.TAG);
}
开发者ID:ApplicationFactory,项目名称:PEP---Notes,代码行数:33,代码来源:ReminderPickers.java
示例7: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);
calendar.set(Calendar.MINUTE, minute);
config.setCountdownTimestamp(calendar.getTimeInMillis());
tvCountdown.setTime(config.getCountdownTimestamp());
}
开发者ID:androidertc,项目名称:iLocker,代码行数:8,代码来源:WidgetCountdownSettingsFragment.java
示例8: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);
calendar.set(Calendar.MINUTE, minute);
config.setTimingTimestamp(calendar.getTimeInMillis());
tvTiming.setTime(config.getTimingTimestamp());
}
开发者ID:androidertc,项目名称:iLocker,代码行数:8,代码来源:WidgetTimingSettingsFragment.java
示例9: initTimePickerDialog
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
private void initTimePickerDialog(Context context) {
final Calendar calendar = Calendar.getInstance();
// create the dialog to show later:
timePickerDialog = TimePickerDialog.newInstance(
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(RadialPickerLayout radialPickerLayout, int hour, int minute) {
setSelectedTime(hour, minute);
}
},
calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE),
is24HourFormat(getTimeFormat()), hasVibratePermission(context));
}
开发者ID:SimplicityApks,项目名称:ReminderDatePicker,代码行数:14,代码来源:TimeSpinner.java
示例10: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
Toast.makeText(MainActivity.this, "new time:" + hourOfDay + "-" + minute, Toast.LENGTH_LONG).show();
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:MainActivity.java
示例11: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int inthour, int intminute) {
hour = inthour;
minute = inthour;
sendensordata();
}
开发者ID:LadyViktoria,项目名称:wearDrip,代码行数:7,代码来源:MainActivity.java
示例12: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {}
开发者ID:Swati4star,项目名称:Travel-Mate,代码行数:3,代码来源:AddNewTrip.java
示例13: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
}
开发者ID:Swati4star,项目名称:Travel-Mate,代码行数:4,代码来源:BusList.java
示例14: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout radialPickerLayout, int hourOfDay, int minute) {
alarmTime.setText(hourOfDay+":"+minute);
}
开发者ID:Null-Ouwenjie,项目名称:Jide-Note,代码行数:5,代码来源:EditNoteActivity.java
示例15: onTimeSet
import com.sleepbot.datetimepicker.time.RadialPickerLayout; //导入依赖的package包/类
@Override
public void onTimeSet(RadialPickerLayout radialPickerLayout, int hourOfDay, int minute) {
mTextTime.setText(" " + hourOfDay + " : " + minute);
}
开发者ID:Phonbopit,项目名称:30-android-libraries-in-30-days,代码行数:5,代码来源:DateTimePickerActivity.java
注:本文中的com.sleepbot.datetimepicker.time.RadialPickerLayout类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论