倒计时方法及装置Countdown method and device技术领域Technical field本发明涉及通信领域,具体而言,涉及一种倒计时方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for counting down.
背景技术Background technique近几年,基于android操作系统的智能终端已经普及全球,智能终端的闹钟应用软件也出现了众多版本,软件中都提供倒计时功能,图1是相关技术中倒计时装置的示意图,如图1所示,从显示角度来说,并没有存在什么问题,但是设置过程较为繁琐,图2是根据相关技术中的倒计时方法的流程图,如图2所示,包括以下步骤:In recent years, intelligent terminals based on the android operating system have been popularized all over the world. There are also many versions of the alarm application software for smart terminals. The software provides a countdown function. Figure 1 is a schematic diagram of the countdown device in the related art, as shown in Figure 1. From the display point of view, there is no problem, but the setting process is cumbersome. FIG. 2 is a flowchart according to the countdown method in the related art, as shown in FIG. 2, including the following steps:
步骤S202,打开闹钟软件进入主界面;Step S202, opening the alarm clock software to enter the main interface;
步骤S204,点击倒计时按钮进入倒计时设置界面;Step S204, click the countdown button to enter the countdown setting interface;
步骤S206,分别滑动或者输入时、分,点击确定按钮完成设置。In step S206, slide or input time and minute respectively, and click the OK button to complete the setting.
目前android智能终端上的倒计时设置软件普遍采用上述设置方式,存在操作繁琐,不够直观的问题。At present, the countdown setting software on the android smart terminal generally adopts the above setting mode, and the operation is cumbersome and not intuitive enough.
针对相关技术中对倒计时设置操作繁琐的问题,目前尚未提出有效的解决方案。In view of the cumbersome operation of the countdown setting operation in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种倒计时方法及装置,以至少解决相关技术中对倒计时设置操作繁琐的问题。The embodiment of the invention provides a method and a device for counting down to solve at least the problem of complicated operation of the countdown setting in the related art.
根据本发明实施例的一个方面,提供了一种倒计时方法,包括:创建用于标识倒计时的预定时间值的控件Widget;依据创建的所述Widget对所述预定时间值进行倒计时。According to an aspect of an embodiment of the present invention, a countdown method is provided, including: creating a widget Widget for identifying a predetermined time value of a countdown; counting down the predetermined time value according to the created Widget.
进一步地,创建用于标识倒计时的预定时间值的控件Widget包括:创建以游标卡尺形式显示的用于标识倒计时的预定时间值的控件Widget;或者,创建以时钟表盘形式显示的用于标识倒计时的预定时间值的控件Widget。Further, the control widget for creating a predetermined time value for identifying the countdown includes: creating a widget Widget for displaying a predetermined time value in the form of a vernier caliper for identifying the countdown; or creating a schedule for identifying the countdown displayed in the form of a clock dial The time value of the widget Widget.
进一步地,在依据创建的所述Widget对所述预定时间值进行倒计时之前,还包括:接收对所述预定时间值进行设置的设置信息;根据所述设置信息确定进行倒计时的所述预定时间值。Further, before counting the predetermined time value according to the created Widget, the method further includes: receiving setting information for setting the predetermined time value; determining, according to the setting information, the predetermined time value for performing a countdown .
进一步地,接收对所述预定时间值进行设置的设置信息包括:接收从默认初始位置沿预定轨迹移动到预定位置的触摸信号;或者,接收默认初始位置和预定位置的触摸信号;根据所述触摸信号确定所述预定时间值,其中,所述预定位置以刻度的形式对应所述预定时间值。Further, receiving the setting information for setting the predetermined time value comprises: receiving a touch signal moving from a default initial position along a predetermined trajectory to a predetermined position; or receiving a touch signal of a default initial position and a predetermined position; according to the touch The signal determines the predetermined time value, wherein the predetermined position corresponds to the predetermined time value in the form of a scale.
进一步地,在依据创建的所述Widget对所述预定时间值进行倒计时之后,还包括:接收对倒计时结束后提醒内容的设置信息;在倒计时结束后,根据设置的所述提醒内容提示倒计时结束。Further, after counting the predetermined time value according to the created Widget, the method further includes: receiving setting information of the reminder content after the countdown ends; after the countdown ends, prompting the countdown to end according to the set reminder content.
根据本发明实施例的另一方面,提供了一种倒计时装置,包括:创建模块,设置为创建用于标识倒计时的预定时间值的控件Widget;倒计时模块,设置为依据创建的所述Widget对所述预定时间值进行倒计时。According to another aspect of an embodiment of the present invention, there is provided a countdown device comprising: a creation module configured to create a widget Widget for identifying a predetermined time value for a countdown; a countdown module configured to be based on the created Widget pair The predetermined time value is counted down.
进一步地,所述创建模块包括:第一创建单元,设置为创建以游标卡尺形式显示的用于标识倒计时的预定时间值的控件Widget;或者,第二创建单元,设置为创建以时钟表盘形式显示的用于标识倒计时的预定时间值的控件Widget。Further, the creating module includes: a first creating unit, configured to create a widget Widget for displaying a predetermined time value in a vernier caliper for identifying a countdown; or a second creating unit configured to create a clock dial display A widget Widget that identifies a predetermined time value for the countdown.
进一步地,所述装置还包括:第一接收模块,设置为接收对所述预定时间值进行设置的设置信息;确定模块,设置为根据所述设置信息确定进行倒计时的所述预定时间值。Further, the apparatus further includes: a first receiving module configured to receive setting information for setting the predetermined time value; and a determining module configured to determine the predetermined time value to perform counting down according to the setting information.
进一步地,所述第一接收模块包括:第一接收单元,设置为接收从默认初始位置沿预定轨迹移动到预定位置的触摸信号;或者,第二接收单元,设置为接收默认初始位置和预定位置的触摸信号;确定单元,设置为根据所述触摸信号确定所述预定时间值,其中,所述预定位置以刻度的形式对应所述预定时间值。Further, the first receiving module includes: a first receiving unit configured to receive a touch signal that moves from a default initial position along a predetermined trajectory to a predetermined position; or a second receiving unit configured to receive a default initial position and a predetermined position a touch signal; a determining unit configured to determine the predetermined time value according to the touch signal, wherein the predetermined position corresponds to the predetermined time value in the form of a scale.
进一步地,所述装置还包括:第二接收模块,设置为接收对倒计时结束后提醒内容的设置信息;提示模块,设置为在倒计时结束后,根据设置的所述提醒内容提示倒计时结束。Further, the device further includes: a second receiving module configured to receive setting information of the reminding content after the countdown ends; the prompting module is configured to prompt the countdown to end according to the set reminding content after the countdown ends.
通过本发明实施例,采用创建用于标识倒计时的预定时间值的控件Widget;依据创建的所述Widget对所述预定时间值进行倒计时,通过控件的方式显示并设置,解决了相关技术中对倒计时设置操作繁琐的问题,进而达到了操作简单的效果。The embodiment of the present invention adopts a control widget for creating a predetermined time value for identifying a countdown; counting the predetermined time value according to the created Widget, displaying and setting by means of a control, and solving the countdown in the related art. The problem of cumbersome operation is set, and the operation is simple.
附图说明DRAWINGS此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是相关技术中倒计时装置的示意图;1 is a schematic view of a countdown device in the related art;
图2是根据相关技术中的倒计时方法的流程图;2 is a flow chart according to a countdown method in the related art;
图3是根据本发明实施例的倒计时方法的流程图;3 is a flow chart of a countdown method according to an embodiment of the present invention;
图4是根据本发明实施例的倒计时装置的框图;4 is a block diagram of a countdown device in accordance with an embodiment of the present invention;
图5是根据本发明优选实施例一的倒计时装置的框图;Figure 5 is a block diagram of a countdown device in accordance with a preferred embodiment of the present invention;
图6是根据本发明优选实施例二的倒计时装置的框图;Figure 6 is a block diagram of a countdown device in accordance with a preferred embodiment 2 of the present invention;
图7是根据本发明优选实施例三的倒计时装置的框图;Figure 7 is a block diagram of a countdown device in accordance with a preferred embodiment 3 of the present invention;
图8是根据本发明优选实施例四的倒计时装置的框图;Figure 8 is a block diagram of a countdown device in accordance with a preferred embodiment 4 of the present invention;
图9是根据本发明实施例的倒计时设置控件的示意图;9 is a schematic diagram of a countdown setting control according to an embodiment of the present invention;
图10是根据本发明实施例的基于倒计时设置过程流程图。10 is a flow chart of a process based on a countdown setting in accordance with an embodiment of the present invention.
具体实施方式detailed description下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种倒计时方法,图3是根据本发明实施例的倒计时方法的流程图,如图3所示,该流程包括如下步骤:In this embodiment, a countdown method is provided. FIG. 3 is a flowchart of a countdown method according to an embodiment of the present invention. As shown in FIG. 3, the flow includes the following steps:
步骤S302,创建用于标识倒计时的预定时间值的控件Widget;Step S302, creating a widget Widget for identifying a predetermined time value of the countdown;
步骤S304,依据创建的该Widget对该预定时间值进行倒计时。Step S304, counting the predetermined time value according to the created Widget.
通过上述步骤,创建用于标识倒计时的预定时间值的控件Widget;依据创建的该Widget对该预定时间值进行倒计时,通过控件的方式显示并设置,解决了相关技术中对倒计时设置操作繁琐的问题,进而达到了操作简单的效果。Through the above steps, a control Widget for identifying a predetermined time value of the countdown is created; the predetermined time value is counted according to the created Widget, and displayed and set by the control manner, which solves the problem that the countdown setting operation is complicated in the related art. In order to achieve a simple operation.
创建用于标识倒计时的预定时间值的控件Widget可以有很多种形式,在一个可选的实施例中,创建以游标卡尺形式显示的用于标识倒计时的预定时间值的控件Widget;在另一个可选的实施例中,创建以时钟表盘形式显示的用于标识倒计时的预定时间值的控件Widget。The widget Widget that creates a predetermined time value for identifying the countdown can take many forms. In an alternative embodiment, a widget Widget that is displayed in the form of a vernier caliper to identify a predetermined time value for the countdown is created; In an embodiment, a widget Widget is displayed in the form of a clock dial for identifying a predetermined time value for the countdown.
在依据创建的该Widget对该预定时间值进行倒计时之前,接收对该预定时间值进行设置的设置信息,根据该设置信息确定进行倒计时的该预定时间值。Before the predetermined time value is counted according to the created Widget, setting information for setting the predetermined time value is received, and the predetermined time value for performing the countdown is determined according to the setting information.
接收对该预定时间值进行设置的设置信息的方式可以有很多种,在一个可选的实施例中,接收从默认初始位置沿预定轨迹移动到预定位置的触摸信号;在另一个可选的实施例中,接收默认初始位置和预定位置的触摸信号;根据该触摸信号确定该预定时间值,其中,该预定位置以刻度的形式对应该预定时间值。There are many ways to receive the setting information for setting the predetermined time value, in an optionalIn an embodiment, receiving a touch signal that moves from a default initial position along a predetermined trajectory to a predetermined position; in another alternative embodiment, receiving a touch signal of a default initial position and a predetermined position; determining the predetermined time value based on the touch signal Wherein the predetermined position corresponds to a predetermined time value in the form of a scale.
在依据创建的该Widget对该预定时间值进行倒计时之后,接收对倒计时结束后提醒内容的设置信息;在倒计时结束后,根据设置的该提醒内容提示倒计时结束,当然也可以在开始倒计时的时候提示终端开始倒计时,可以根据用户的喜好进行设置,提高了用户的体验,After the predetermined time value is counted according to the created Widget, the setting information of the reminding content after the countdown ends is received; after the countdown ends, the countdown is ended according to the set reminder content, and of course, the prompt may be prompted when starting the countdown. The terminal starts counting down, and can be set according to the user's preference, which improves the user experience.
本发明实施例还提供了一种倒计时装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。The embodiment of the present invention further provides a countdown device, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图4是根据本发明实施例的倒计时装置的框图,如图4所示,包括:4 is a block diagram of a countdown device according to an embodiment of the present invention, as shown in FIG. 4, including:
创建模块42,设置为创建用于标识倒计时的预定时间值的控件Widget;a creation module 42 configured to create a widget Widget for identifying a predetermined time value for the countdown;
倒计时模块44,设置为依据创建的该Widget对该预定时间值进行倒计时。The countdown module 44 is configured to count down the predetermined time value according to the created Widget.
图5是根据本发明优选实施例一的倒计时装置的框图,如图5所示,该创建模块42包括:Figure 5 is a block diagram of a countdown device in accordance with a preferred embodiment of the present invention. As shown in Figure 5, the creation module 42 includes:
第一创建单元52,设置为创建以游标卡尺形式显示的用于标识倒计时的预定时间值的控件Widget;或者,a first creating unit 52, configured to create a widget Widget displayed in the form of a vernier caliper for identifying a predetermined time value of the countdown; or
第二创建单元54,设置为创建以时钟表盘形式显示的用于标识倒计时的预定时间值的控件Widget。The second creation unit 54, is arranged to create a widget Widget displayed in the form of a clock dial for identifying a predetermined time value of the countdown.
图6是根据本发明优选实施例二的倒计时装置的框图,如图6所示,该装置还包括:6 is a block diagram of a countdown device according to a preferred embodiment 2 of the present invention. As shown in FIG. 6, the device further includes:
第一接收模块62,设置为接收对该预定时间值进行设置的设置信息;The first receiving module 62 is configured to receive setting information that is set for the predetermined time value;
确定模块64,设置为根据该设置信息确定进行倒计时的该预定时间值。The determining module 64 is configured to determine the predetermined time value for counting down based on the setting information.
图7是根据本发明优选实施例三的倒计时装置的框图,如图7所示,该第一接收模块62包括:FIG. 7 is a block diagram of a countdown device according to a preferred embodiment 3 of the present invention. As shown in FIG. 7, the first receiving module 62 includes:
第一接收单元72,设置为接收从默认初始位置沿预定轨迹移动到预定位置的触摸信号;或者,The first receiving unit 72 is configured to receive a touch signal that moves from a default initial position along a predetermined trajectory to a predetermined position; or
第二接收单元74,设置为接收默认初始位置和预定位置的触摸信号;a second receiving unit 74, configured to receive a touch signal of a default initial position and a predetermined position;
确定单元76,设置为根据该触摸信号确定该预定时间值,其中,该预定位置以刻度的形式对应该预定时间值。The determining unit 76 is configured to determine the predetermined time value based on the touch signal, wherein the predetermined position corresponds to a predetermined time value in the form of a scale.
图8是根据本发明优选实施例四的倒计时装置的框图,如图6所示,该装置还包括:8 is a block diagram of a countdown device according to a preferred embodiment 4 of the present invention. As shown in FIG. 6, the device further includes:
第二接收模块82,设置为接收对倒计时结束后提醒内容的设置信息;The second receiving module 82 is configured to receive setting information of the reminder content after the countdown ends;
提示模块84,设置为在倒计时结束后,根据设置的该提醒内容提示倒计时结束。The prompting module 84 is configured to prompt the countdown to end according to the set reminder content after the countdown ends.
下面结合可选实施例对本发明实施例进行进一步说明。The embodiments of the present invention are further described below in conjunction with the optional embodiments.
本可选实施例旨在精简倒计时设置的操作步骤,在桌面上进行快速倒计时,图9是根据本发明实施例的倒计时设置控件的示意图,如图9所示,包括:The optional embodiment is intended to simplify the operation steps of the countdown setting, and perform a quick countdown on the desktop. FIG. 9 is a schematic diagram of a countdown setting control according to an embodiment of the present invention. As shown in FIG. 9, the method includes:
桌面上存在一个悬浮控件,悬浮控件上有时间刻度和拖动按钮,用户拖动按钮或点击刻度条到某个位置,即可完成倒计时的设置,点击小图标B,可以输入提示内容。There is a floating control on the desktop. There are time scale and drag buttons on the floating control. The user can drag the button or click the scale bar to a certain position to complete the countdown setting. Click the small icon B to enter the prompt content.
本可选实施例简化了用户倒计时设置的过程,操作极为简单。This alternative embodiment simplifies the process of user countdown setup and is extremely simple to operate.
下面以设置50分钟倒计时为例对本可选实施例进行说明。The following describes an alternative embodiment by setting a 50-minute countdown as an example.
图10是根据本发明实施例的基于倒计时设置过程流程图,如图10所示,包括以下步骤:FIG. 10 is a flowchart of a process based on a countdown setting according to an embodiment of the present invention. As shown in FIG. 10, the method includes the following steps:
步骤S1002,判断是否是第一次使用倒计时功能,在判断结果为是的情况下,执行步骤S1004,在判断结果为否的情况下,执行步骤S1006;In step S1002, it is determined whether the first use of the countdown function, if the determination result is yes, step S1004 is performed, and if the determination result is negative, step S1006 is performed;
步骤S1004,从widget管理页面将倒计时widget添加到桌面;Step S1004, adding a countdown widget to the desktop from the widget management page;
步骤S1006,拖动游标A到需要的刻度然后放手(或者点击);In step S1006, drag the cursor A to the required scale and then let go (or click);
步骤S1008,出现B控件,用户可以点击B输入提醒内容,也可以忽略。同时显示区显示倒计时的具体时长等信息;In step S1008, the B control appears, and the user can click B to input the reminder content, or can be ignored. At the same time, the display area displays information such as the specific duration of the countdown;
步骤S1010,软件完成倒计时设置,并以友好的方式提醒用户(toast或语音)。In step S1010, the software completes the countdown setting and reminds the user (toast or voice) in a friendly manner.
其中,操作widget的过程中,拖动游标A到50数字刻度位置,然后放手(或者直接点击刻度尺某个位置),自动设置一个离现在50分钟的闹钟。并在刻度线的上边显示小图标,提示用户设置成功,点击小图标可以编辑倒计时的提醒内容,重复上述过程可以设置多个有不同提醒内容的倒计时。In the process of operating the widget, drag the cursor A to 50 digital scale position, then let go (or directly click on a certain position of the scale), automatically set an alarm clock 50 minutes away. A small icon is displayed on the top of the tick mark to prompt the user to set the success. Click the small icon to edit the reminder content of the countdown. Repeat the above process to set multiple countdowns with different reminder content.
上述仅仅是在桌面上采用widget控件快捷设置闹钟的一种方式而已,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的专利要求的保护范围。The above is only a way to quickly set an alarm clock by using a widget control on the desktop, and those skilled in the art can make various corresponding according to the present invention without departing from the spirit and essence of the present invention.Changes and modifications, but such corresponding changes and modifications are intended to fall within the scope of the appended claims.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability上述的本发明实施例,可以应用于通信领域,解决了相关技术中对倒计时设置操作繁琐的问题,进而达到了操作简单的效果。The foregoing embodiments of the present invention can be applied to the field of communications, and solve the problem that the countdown setting operation is cumbersome in the related art, thereby achieving the effect of simple operation.