Movatterモバイル変換


[0]ホーム

URL:


CN106325684A - Operation item selection state display method and device - Google Patents

Operation item selection state display method and device
Download PDF

Info

Publication number
CN106325684A
CN106325684ACN201610812526.9ACN201610812526ACN106325684ACN 106325684 ACN106325684 ACN 106325684ACN 201610812526 ACN201610812526 ACN 201610812526ACN 106325684 ACN106325684 ACN 106325684A
Authority
CN
China
Prior art keywords
record
item
selection state
selection
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610812526.9A
Other languages
Chinese (zh)
Other versions
CN106325684B (en
Inventor
郑学成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610812526.9ApriorityCriticalpatent/CN106325684B/en
Publication of CN106325684ApublicationCriticalpatent/CN106325684A/en
Application grantedgrantedCritical
Publication of CN106325684BpublicationCriticalpatent/CN106325684B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种操作项选择状态显示方法及装置,该方法包括:当检测到操作项的选择状态发生变化时,在预置的存储表中记录变化后的选择状态,当该操作项的选择界面更新显示时,从该存储表中查询该操作项对应的选择状态的记录,若未查询到记录,则将该操作项的选择状态显示为默认选择状态,若查询到记录,则将该操作项的选择状态显示为查询到的记录中记录的选择状态。本发明可实现再次该选择界面更新显示时,操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新选择,增加操作的便捷性。

The present invention discloses a method and device for displaying the selection status of an operation item. The method comprises: when it is detected that the selection status of an operation item has changed, recording the changed selection status in a preset storage table, and when the selection interface of the operation item is updated and displayed, querying the storage table for the record of the selection status corresponding to the operation item, and if no record is found, displaying the selection status of the operation item as the default selection status, and if a record is found, displaying the selection status of the operation item as the selection status recorded in the found record. The present invention can achieve that when the selection interface is updated and displayed again, the selection status of the operation item list remains consistent with that before the update display, and there is no need to reselect the operation item again, thereby increasing the convenience of operation.

Description

Translated fromChinese
操作项选择状态显示方法及装置Operation item selection status display method and device

技术领域technical field

本发明属于移动终端技术领域,尤其涉及一种操作项选择状态显示方法及装置。The invention belongs to the technical field of mobile terminals, and in particular relates to a method and device for displaying an operation item selection state.

背景技术Background technique

随着智能移动终端,特别是智能手机的普及,用户对智能手机数据的安全性越来越关注。备份与恢复模块几乎在所有的智能手机中都有,用户可以通过备份与恢复模块先在云端或在电脑等其他存储设备上备份一个智能手机上的数据,然后通过备份与恢复模块在另一个智能手机上恢复,可以在更换智能手机后或者对智能手机刷机后,便捷快速地实现智能手机之间数据转移的功能。With the popularity of smart mobile terminals, especially smart phones, users are paying more and more attention to the security of smart phone data. The backup and recovery module is available in almost all smart phones. Users can first back up the data on a smart phone in the cloud or on other storage devices such as computers through the backup and recovery module, and then use the backup and recovery module to save data on another smart phone. Restoring on the mobile phone can conveniently and quickly realize the function of data transfer between smart phones after changing the smart phone or flashing the smart phone.

在现有技术中,备份数据时,启动备份与恢复应用,在该应用的备份项(item)选择界面中,选中的备份项可以加入到备份项列表中。但是当用户触发多任务按键或者Home键将该应用退到后台,而再次通过点击该应用的图标或者最近任务进入该应用后,上一次备份项列表的选择状态并不能随之恢复显示,而是显示成默认全选的状态,用户需要再次选择备份项,给用户的操作带来不便。In the prior art, when backing up data, a backup and recovery application is started, and in a backup item (item) selection interface of the application, the selected backup item can be added to the backup item list. However, when the user triggers the multitasking button or the Home button to return the application to the background, and clicks the application icon or the recent task to enter the application again, the selection status of the last backup item list cannot be restored and displayed, but It is displayed in the state of selecting all by default, and the user needs to select the backup item again, which brings inconvenience to the user's operation.

发明内容Contents of the invention

本发明提供一种操作项选择状态显示方法及装置,旨在解决当操作项的选择界面需要更新显示时,操作项的选择状态与更新显示前的选择状态不一致,而给用户带来不便的问题。The present invention provides a method and device for displaying the selection state of an operation item, aiming at solving the problem that when the selection interface of the operation item needs to be updated and displayed, the selection state of the operation item is inconsistent with the selection state before the update display, which brings inconvenience to the user .

本发明第一方面提供了一种操作项选择状态显示方法,包括:The first aspect of the present invention provides a method for displaying an operation item selection state, including:

当检测到运行的应用的选择界面中,操作项的选择状态发生变化时,在预置的存储表中记录变化后的选择状态;When it is detected that the selection state of the operation item changes in the selection interface of the running application, record the changed selection state in the preset storage table;

当所述操作项的选择界面更新显示时,从所述存储表中查询所述操作项对应的选择状态的记录;When the selection interface of the operation item is updated and displayed, query the record of the selection state corresponding to the operation item from the storage table;

若未查询到记录,则将所述操作项的选择状态显示为默认选择状态;If no record is found, display the selection state of the operation item as the default selection state;

若查询到记录,则将所述操作项的选择状态显示为查询到的记录中记录的选择状态。If the records are queried, the selection status of the operation item is displayed as the selection status of the records in the queried records.

本发明第二方面提供了一种操作项选择状态显示装置,包括:The second aspect of the present invention provides an operation item selection state display device, including:

记录模块,用于当检测到运行的应用的选择界面中,操作项的选择状态发生变化时,在预置的存储表中记录变化后的选择状态;A recording module, configured to record the changed selection state in a preset storage table when it is detected that the selection state of the operation item changes in the selection interface of the running application;

查询模块,用于当所述操作项的选择界面更新显示时,从所述存储表中查询所述操作项对应的选择状态的记录;A query module, configured to query the record of the selection state corresponding to the operation item from the storage table when the selection interface of the operation item is updated and displayed;

显示模块,用于若未查询到记录,则将所述操作项的选择状态显示为默认选择状态;A display module, configured to display the selection state of the operation item as a default selection state if no record is queried;

显示模块,还用于若查询到记录,则将所述操作项的选择状态显示为查询到的记录中记录的选择状态。The display module is further configured to display the selection state of the operation item as the selection state of the records in the queried records if the records are queried.

从上述本发明实施例可知,本发明提供的操作项选择状态显示方法及装置,通过在存储表中记录操作项发生变化的选择状态,当操作项的选择界面需要更新显示时,从该存储表中查询关于操作项的选择状态的记录,若查询不到,则将该操作项的选择状态按照默认选择状态进行显示,若查询得到,则将该操作项的选择状态按照查询到的状态进行显示,以实现再次该选择界面更新显示时,操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新选择,增加操作的便捷性。并且,若操作项被删除或卸载,由于在该选择界面中并不显示系统中不存在的操作项,因此不执行从该存储表中查询该操作项对应的选择状态的记录,则在该选择界面更新显示时,不会显示该删除或卸载的操作项及其选择状态,使得操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新更新,进一步增加操作的便捷性。It can be seen from the above-mentioned embodiments of the present invention that the method and device for displaying the selection state of the operation item provided by the present invention record the selection state of the operation item in the storage table. Query the record about the selection state of the operation item. If the query cannot be found, the selection state of the operation item will be displayed according to the default selection state. If the query is obtained, the selection state of the operation item will be displayed according to the queried state. , so that when the selection interface is updated and displayed again, the selection state of the operation item list is consistent with that before the update display, and there is no need to re-select the operation item again, which increases the convenience of operation. And, if the operation item is deleted or uninstalled, since the operation item that does not exist in the system is not displayed in the selection interface, it is not executed to query the record of the selection state corresponding to the operation item from the storage table, then in the selection interface When the interface is updated and displayed, the deleted or uninstalled operation item and its selection status will not be displayed, so that the selection status of the operation item list is consistent with that before the update display, and there is no need to re-update the operation item again, further increasing the convenience of operation .

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only are some embodiments of the present invention.

图1是本发明第一实施例提供的操作项选择状态显示方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of the method for displaying the selection state of an operation item provided by the first embodiment of the present invention;

图2示出了其中一种移动终端操作项的选择界面;Fig. 2 shows the selection interface of one of the mobile terminal operation items;

图3是本发明第二实施例提供的操作项选择状态显示方法的实现流程示意图;Fig. 3 is a schematic diagram of the implementation flow of the method for displaying the selection state of the operation item provided by the second embodiment of the present invention;

图4是本发明第三实施例提供的操作项选择状态显示装置的结构示意图;4 is a schematic structural diagram of an operation item selection state display device provided by a third embodiment of the present invention;

图5是本发明第四实施例提供的操作项选择状态显示装置的结构示意图。Fig. 5 is a schematic structural diagram of an operation item selection state display device provided by a fourth embodiment of the present invention.

具体实施方式detailed description

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供的操作项选择状态显示方法,可应用于智能手机、平板电脑等移动终端设备中。The method for displaying the selection state of an operation item provided by the embodiment of the present invention can be applied to mobile terminal devices such as smart phones and tablet computers.

请参阅图1,图1为本发明第一实施例提供的操作项选择状态显示方法的实现流程示意图,主要包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic diagram of the implementation flow of the method for displaying the selection state of the operation item provided by the first embodiment of the present invention, which mainly includes the following steps:

S101、当检测到运行的应用的选择界面中,操作项的选择状态发生变化时,在预置的存储表中记录变化后的选择状态;S101. When it is detected that the selection state of the operation item changes in the selection interface of the running application, record the changed selection state in a preset storage table;

移动终端运行应用时显示的界面中,常常存在对操作项的选择界面,例如各种APP中的操作项对应的选择项目。图2示出了其中一种移动终端操作项的选择界面,即“备份与恢复”APP(application)的备份界面,向用户显示了可以备份的选项列表,即可以备份的各个操作项,这些操作项按照类型划分,可以包括个人数据类、系统数据类、应用程序类、文件类或文件夹类(其中文件夹类,图2中未示出),其中,应用程序类还可以包括:安全支付、地图、电子邮件和新闻等。用户可以通过点选每个操作项对应的勾选框,来控制对该操作项的选择状态,即通过点击CheckBox控件选中要备份的操作项。当用户选中一个操作项时,勾选框通过改变颜色通知用户该操作项已被选中,当前的选择状态是“选中”。选中操作项后,点击“开始备份”按钮,对选中的操作项进行备份处理。In the interface displayed when the mobile terminal runs an application, there often exists an interface for selecting an operation item, for example, a selection item corresponding to an operation item in various APPs. Fig. 2 shows the selection interface of one of the mobile terminal operation items, that is, the backup interface of the "backup and recovery" APP (application), which shows the user a list of options that can be backed up, that is, each operation item that can be backed up, and these operations Items are classified according to type, which may include personal data, system data, application programs, files or folders (where folders are not shown in Figure 2), wherein the application program may also include: secure payment , maps, email, news, and more. The user can control the selection state of the operation item by clicking the check box corresponding to each operation item, that is, select the operation item to be backed up by clicking the CheckBox control. When the user selects an operation item, the checkbox notifies the user that the operation item has been selected by changing the color, and the current selection state is "selected". After selecting the operation item, click the "Start Backup" button to back up the selected operation item.

本发明实施例中,在系统中预先设置一个存储表,用于记录操作项的选择状态,当检测到操作项的选择状态发生变化时,在预置的存储表中记录变化后的选择状态,即,操作项当前为选中状态,还是未选中状态。In the embodiment of the present invention, a storage table is preset in the system for recording the selection state of the operation item, and when a change in the selection state of the operation item is detected, the changed selection state is recorded in the preset storage table, That is, whether the action item is currently selected or unselected.

S102、当该操作项的选择界面更新显示时,从该存储表中查询该操作项对应的选择状态的记录;S102. When the selection interface of the operation item is updated and displayed, query the record of the selection state corresponding to the operation item from the storage table;

该操作项的选择界面更新显示,是指如用户需要进行其他操作,例如,用户点击多任务按键或者Home键,将APP退到后台运行,再次通过点击APP图标或者“最近任务”进入该APP而使得该选择界面的操作项更新显示。从该存储表中查询该操作项对应的选择状态的记录。The update display of the selection interface of this operation item means that if the user needs to perform other operations, for example, the user clicks the multitasking button or the Home button, returns the APP to the background, and clicks the APP icon or "recent tasks" to enter the APP again. The operation items of the selection interface are updated and displayed. Query the record of the selection state corresponding to the operation item from the storage table.

需要说明的是,若操作项被删除或卸载,则在选择界面中并不显示该操作项,也不会执行从该存储表中查询该操作项对应的选择状态的记录。因此,在更新显示时,不会显示该删除或卸载的操作项及其选择状态,显示信息更准确,进一步简化用户的操作。It should be noted that if the operation item is deleted or uninstalled, the operation item will not be displayed in the selection interface, and the record of the selection status corresponding to the operation item will not be queried from the storage table. Therefore, when the display is updated, the deleted or uninstalled operation item and its selection status are not displayed, and the displayed information is more accurate, further simplifying the user's operation.

例如,当备份和恢复APP退回后台运行,此时卸载位于操作项列表中的一个APP应用,那么当备份和恢复APP再次回到前端运行时,操作项列表不显示刚刚卸载的该APP,且其他操作项的选择状态会正确更新卸载情况,并正确显示退回到后台运行之前的各操作项的选择状态。For example, when the backup and recovery APP returns to the background, and an APP in the operation item list is uninstalled at this time, then when the backup and recovery APP returns to the front-end operation again, the operation item list does not display the APP just uninstalled, and other The selection state of the action item will correctly update the uninstall situation, and correctly display the selection state of each action item before returning to the background.

S103、若未查询到记录,则将该操作项的选择状态显示为默认选择状态;S103. If no record is found, display the selection state of the operation item as a default selection state;

若未查询到与该操作项的选择状态相关的记录,表示该操作项的选择状态未发生过改变,因此在该存储表中没有相关记录,则将该操作项的选择状态显示为默认选择状态。If no record related to the selection state of the operation item is found, it means that the selection state of the operation item has not changed, so there is no related record in the storage table, and the selection state of the operation item is displayed as the default selection state .

其中,默认选择状态,是指在系统中默认设置的该选择界面中的操作项对应的选择状态,例如,该默认选择状态可以是全部选中,也可以是全部未选。Wherein, the default selection state refers to the selection state corresponding to the operation items in the selection interface set by default in the system, for example, the default selection state may be all selected or all unselected.

S104、若查询到记录,则将该操作项的选择状态显示为查询到的记录中记录的选择状态。S104. If a record is queried, display the selection state of the operation item as the selection state of the record in the queried record.

查询到与该操作项的选择状态相关的记录,按照记录的内容显示该操作项的选择状态,即,显示该记录中选择状态对应的选择状态。The record related to the selection state of the operation item is queried, and the selection state of the operation item is displayed according to the content of the record, that is, the selection state corresponding to the selection state in the record is displayed.

本发明实施例中,通过在存储表中记录操作项发生变化的选择状态,当操作项的选择界面需要更新显示时,从该存储表中查询关于操作项的选择状态的记录,若查询不到,则将该操作项的选择状态按照默认选择状态进行显示,若查询得到,则将该操作项的选择状态按照查询到的状态进行显示,以实现再次该选择界面更新显示时,操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新选择,增加操作的便捷性。并且,若操作项被删除或卸载,由于在该选择界面中并不显示系统中不存在的操作项,因此不执行从该存储表中查询该操作项对应的选择状态的记录,则在该选择界面更新显示时,不会显示该删除或卸载的操作项及其选择状态,使得操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新更新,进一步增加操作的便捷性。In the embodiment of the present invention, by recording the selection state of the operation item in the storage table, when the selection interface of the operation item needs to be updated and displayed, query the record about the selection state of the operation item from the storage table. , the selection state of the operation item will be displayed according to the default selection state. If the query is obtained, the selection state of the operation item will be displayed according to the queried state, so as to realize that when the selection interface is updated and displayed again, the operation item list The selection state is consistent with the update display, and there is no need to re-select the operation item again, which increases the convenience of operation. And, if the operation item is deleted or uninstalled, since the operation item that does not exist in the system is not displayed in the selection interface, it is not executed to query the record of the selection state corresponding to the operation item from the storage table, then in the selection interface When the interface is updated and displayed, the deleted or uninstalled operation item and its selection status will not be displayed, so that the selection status of the operation item list is consistent with that before the update display, and there is no need to re-update the operation item again, further increasing the convenience of operation .

请参阅图2,图2为本发明第二实施例提供的操作项选择状态显示方法的实现流程示意图,主要包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic diagram of the implementation flow of the operation item selection state display method provided by the second embodiment of the present invention, which mainly includes the following steps:

本实施例中,记录操作项对应的选择状态的存储表以哈希映射表(HashMap)为例,也可以是其他任何可以保存操作项与选择状态对应关系的存储表,此处不作具体限定。具体地,在选择界面对应的Adapter中,新建一个HashMap<String,Boolean>记录变量。该HashMap为空,不存在任何数据。In this embodiment, the storage table that records the selection state corresponding to the operation item is an example of a Hash Map (HashMap), and may also be any other storage table that can store the corresponding relationship between the operation item and the selection state, which is not specifically limited here. Specifically, create a HashMap<String, Boolean> record variable in the Adapter corresponding to the selection interface. The HashMap is empty without any data.

S201、当检测到操作项的选择状态发生第一次变化时,在预先建立的哈希映射表中增加操作项和操作项变化后的选择状态对应的记录;S201. When it is detected that the selection state of the operation item changes for the first time, add a record corresponding to the operation item and the selection state after the change of the operation item in the pre-established hash mapping table;

当检测到运行的应用的选择界面中,操作项的选择状态发生第一次变化时,在预先建立的HashMap中增加操作项和操作项变化后的选择状态对应的记录,即,用户第一次点击该操作项的勾选框时,在该HashMap中新增一条该操作项与该操作项对应的选择状态的记录。其中,操作项和操作项变化后的选择状态分别以键和键值的形式进行记录,键值以true表示选中状态,以false表示未选中状态。When it is detected that the selection state of the operation item changes for the first time in the selection interface of the running application, the record corresponding to the operation item and the selection state after the change of the operation item is added to the pre-established HashMap, that is, the user's first time When the checkbox of the operation item is clicked, a new record of the operation item and the selection state corresponding to the operation item is added in the HashMap. Wherein, the operation item and the selection state after the change of the operation item are recorded in the form of a key and a key value respectively, and the key value is true for a selected state, and false for an unselected state.

需要说明的是,可预先设置系统的默认选择状态的键值,例如,默认在第一次打开操作项列表时,所有操作项默认是选中的,即所有操作项的键值均为true,当用户点击一次勾选框,将选中状态改为未选中状态时,该键值记录为false。或者,反之亦然,默认在第一次打开操作项列表时,所有操作项默认是未选中的,即所有操作项的键值均为false。It should be noted that the key value of the default selection state of the system can be preset. For example, when the operation item list is opened for the first time, all operation items are selected by default, that is, the key values of all operation items are true. When When the user clicks the checkbox once to change the selected state to the unselected state, the key-value record is false. Or, vice versa, by default, when the operation item list is opened for the first time, all operation items are unselected by default, that is, the key values of all operation items are false.

具体地,在预置的存储表(HashMap)中记录变化后的选择状态的方式,可以是:确定操作项的类型,并按照操作项的类型,在预先建立的HashMap中记录变化后的选择状态。其中,记录的具体形式是将键记录为该操作项的身份标识,并将该键的键值记录为变化后的选择状态。Specifically, the method of recording the changed selection state in the preset storage table (HashMap) may be: determine the type of the operation item, and record the changed selection state in the pre-established HashMap according to the type of the operation item . Wherein, the specific form of recording is to record the key as the identity of the operation item, and record the key value of the key as the changed selection state.

其中,操作项的类型可以分为应用程序、文件、预置类型的数据(包括个人数据和/或系统数据)以及文件夹。每一类操作项都具备一类身份标识,该身份标识使得每一类操作项中的每个操作项都身份唯一。具体地,应用程序的身份标识为其安装包的包名;文件的身份标识为该文件的存储目录和文件名;个人数据及系统数据的身份标识分别为不同的整数数据类型,例如,个人数据的身份标识为type|1,系统数据的身份标识为type|2;文件夹的身份标识为该文件夹的文件夹名。Wherein, types of operation items can be classified into application programs, files, preset types of data (including personal data and/or system data) and folders. Each type of operation item has a type of identity, and the identity makes each operation item in each type of operation item have a unique identity. Specifically, the identity of the application is the package name of the installation package; the identity of the file is the storage directory and file name of the file; the identity of personal data and system data are different integer data types, for example, personal data The identity of the system data is type|1, the identity of the system data is type|2; the identity of the folder is the folder name of the folder.

若该操作项为应用程序,则在预先建立的HashMap中记录变化后的选择状态,其中,记录的具体形式是将键记录为该应用程序的安装包名,并将该键的键值记录为变化后的选择状态。If the operation item is an application program, record the changed selection state in the pre-established HashMap, wherein the specific form of the record is to record the key as the installation package name of the application program, and record the key value of the key as The changed selection state.

例如,应用程序A的安装包名为com.coloros.backuprestore,且应用程序A变化后的前选择状态为选中状态,则应用程序A的选择状态记录的具体形式为:{“com.coloros.backuprestore”,true}。For example, the name of the installation package of application A is com.coloros.backuprestore, and the pre-selection state of application A is selected after the change, then the specific form of the selection state record of application A is: {"com.coloros.backuprestore ", true}.

若该操作项为文件,则在预先建立的HashMap中记录变化后的选择状态,其中,记录的具体形式是将键记录为文件的存储目录和文件名,并将该键的键值记录为变化后的选择状态。If the operation item is a file, record the changed selection state in the pre-established HashMap, where the specific form of the record is to record the key as the storage directory and file name of the file, and record the key value of the key as the change After the selected state.

例如,文件B的存储目录为music和文件名为name,且文件B变化后的选择状态为未选中状态,则文件B的选择状态记录的具体形式为:{“name|music”,false}。For example, if the storage directory of file B is music and the file name is name, and the selection state of file B after changing is unselected, then the specific form of the selection state record of file B is: {"name|music", false}.

若该操作项为预置类型的数据,包括个人数据和系统数据中的一种或两种,则在预先建立的HashMap中记录变化后的选择状态,其中,记录的具体形式是将键记录为该个人数据、系统数据分别对应的整数数据类型,并将该键的键值记录为变化后的选择状态。If the operation item is data of a preset type, including one or both of personal data and system data, record the changed selection state in the pre-established HashMap, wherein the specific form of the record is to record the key as The personal data and system data respectively correspond to integer data types, and the key value of the key is recorded as the changed selection state.

例如,个人数据的整数数据类型为type|1,且个人数据变化后的选择状态为选中状态,则个人数据的选择状态记录的具体形式为:{“type|1”,true}。For example, if the integer data type of the personal data is type|1, and the selection status after the personal data changes is selected, then the specific form of the selection status record of the personal data is: {"type|1", true}.

若过操作项为文件夹,则在预先建立的HashMap中记录变化后的选择状态,其中,记录的具体形式是将键记录为文件夹名,并将过键的键值记录为变化后的选择状态。If the operation item is a folder, record the changed selection state in the pre-established HashMap, where the specific form of the record is to record the key as the folder name, and record the key value as the changed selection state.

例如,文件夹C的文件夹名为camera,且文件夹C变化后的选择状态为未选中状态,则文件夹C的选择状态记录的具体形式为:{“camera”,false}。For example, if the folder name of folder C is camera, and the selected state of folder C is unselected after the change, the specific form of the selected state record of folder C is: {"camera", false}.

需要说明的是,文件夹类的操作项默认的选择状态并不都是true,所以为文件夹类型的操作项在HashMap中增加一个与该操作项对应的属性defaultChecked,defaultChecked属性可返回checked属性的默认值。默认在操作项被选中时返回true,否则返回false。defaultChecked属性在文件夹操作项初始化时被赋值,不同文件夹的defaultChecked值不同。在查询HashMap中文件夹操作项对应的记录时,若查询不到,则返回该文件夹操作项的defaultChecked值,而不必然返回系统默认的其他操作项的true。It should be noted that the default selection status of folder-type operation items is not all true, so for folder-type operation items, add an attribute defaultChecked corresponding to the operation item in the HashMap, and the defaultChecked attribute can return the value of the checked attribute. Defaults. By default it returns true if the action item is selected, otherwise it returns false. The defaultChecked attribute is assigned when the folder operation item is initialized, and the defaultChecked value is different for different folders. When querying the record corresponding to the folder operation item in the HashMap, if the query cannot be found, the defaultChecked value of the folder operation item will be returned instead of true for other operation items defaulted by the system.

S202、当检测到该操作项的选择状态再次发生变化时,通过修改该键值的方式,修改该哈希映射表中记录的该操作项变化后的选择状态;S202. When it is detected that the selection state of the operation item changes again, modify the selection state of the operation item recorded in the hash mapping table by modifying the key value;

当检测到操作项的选择状态再次发生变化时,通过修改该键值的方式,修改该HashMap中记录的操作项变化后的选择状态。即,当再次检测到用户点击操作项的勾选框时,只需修改该操作项对应的键值为相反状态即可,例如,该操作项的选择状态未再次发生变化之前,键值为ture,那么当该选择状态再次发生变化后,将键值修改为false。When it is detected that the selection state of the operation item changes again, the selection state of the operation item recorded in the HashMap is modified by modifying the key value. That is, when it is detected that the user clicks the check box of the operation item again, it is only necessary to modify the key value corresponding to the operation item to be in the opposite state. For example, before the selection state of the operation item changes again, the key value is true , then when the selection state changes again, change the key value to false.

S203、当该操作项的选择界面更新显示时,从该存储表中查询该操作项对应的选择状态的记录;S203. When the selection interface of the operation item is updated and displayed, query the record of the selection state corresponding to the operation item from the storage table;

该操作项的选择界面更新显示,是指如用户需要进行其他操作,例如,用户点击多任务按键或者Home键,将APP退到后台运行,再次通过点击APP图标或者“最近任务”进入该APP而使得该选择界面的操作项更新显示。从该存储表中查询该操作项对应的选择状态的记录。The update display of the selection interface of this operation item means that if the user needs to perform other operations, for example, the user clicks the multitasking button or the Home button, returns the APP to the background, and clicks the APP icon or "recent tasks" to enter the APP again. The operation items of the selection interface are updated and displayed. Query the record of the selection state corresponding to the operation item from the storage table.

具体地,不同类型的操作项,查询的关键字不同,关键字为不同类型的操作项对应的身份标识。从HashMap中查询操作项的身份标识,并查询与过身份标识对应的选择状态的记录。具体地,应用程序查询其安装包的包名,文件查询该文件的存储目录和文件名,个人数据及系统数据的身份标识查询对应的整数数据类型。Specifically, different types of operation items require different query keywords, and the keywords are identifiers corresponding to different types of operation items. Query the identity of the operation item from the HashMap, and query the record of the selection state corresponding to the identity. Specifically, the application program queries the package name of its installation package, the file queries the storage directory and file name of the file, and the identity of personal data and system data queries the corresponding integer data type.

需要说明的是,若操作项被删除或卸载,则在选择界面中并不显示该操作项,也不会执行从该存储表中查询该操作项对应的选择状态的记录。因此,在更新显示时,不会显示该删除或卸载的操作项及其选择状态。It should be noted that if the operation item is deleted or uninstalled, the operation item will not be displayed in the selection interface, and the record of the selection status corresponding to the operation item will not be queried from the storage table. Therefore, the delete or uninstall action item and its selection state are not displayed when the display is updated.

例如,当备份和恢复APP退回后台运行,此时卸载位于操作项列表中的一个APP应用,那么当备份和恢复APP再次回到前端运行时,操作项列表不显示刚刚卸载的该APP,且其他操作项的选择状态会正确更新卸载情况,并正确显示退回到后台运行之前的各操作项的选择状态。For example, when the backup and recovery APP returns to the background, and an APP in the operation item list is uninstalled at this time, then when the backup and recovery APP returns to the front-end operation again, the operation item list does not display the APP just uninstalled, and other The selection state of the action item will correctly update the uninstall situation, and correctly display the selection state of each action item before returning to the background.

S204、若未查询到记录,则将该操作项的选择状态显示为默认选择状态;S204. If no record is found, display the selection state of the operation item as a default selection state;

若未查询到与该操作项的选择状态相关的记录,表示该操作项的选择状态未发生过改变,因此在该存储表中没有相关记录,则将该操作项的选择状态显示为默认选择状态。If no record related to the selection state of the operation item is found, it means that the selection state of the operation item has not changed, so there is no related record in the storage table, and the selection state of the operation item is displayed as the default selection state .

其中,默认选择状态,是指在系统中默认设置的该选择界面中的操作项对应的选择状态,例如,该默认选择状态可以是全部选中,也可以是全部不选。Wherein, the default selection state refers to the selection state corresponding to the operation items in the selection interface set by default in the system, for example, the default selection state may be all selected or not selected.

需要说明的是,当操作项为文件夹时,若未查询到记录,则将该文件夹的选择状态,按照返回的defaultchecked的默认值对应的选择状态进行显示。而当操作项为其他类型时,则将该操作项的选择状态显示为该默认选择状态。It should be noted that, when the operation item is a folder, if no record is found, the selection status of the folder will be displayed according to the selection status corresponding to the returned default value of defaultchecked. And when the operation item is of other types, the selection state of the operation item is displayed as the default selection state.

S205、若查询到记录,则将该操作项的选择状态显示为查询到的记录中记录的选择状态。S205. If a record is queried, display the selection state of the operation item as the selection state of the record in the queried record.

查询到与该操作项的选择状态相关的记录,按照记录的内容显示该操作项的选择状态,即,显示该记录中选择状态对应的选择状态。The record related to the selection state of the operation item is queried, and the selection state of the operation item is displayed according to the content of the record, that is, the selection state corresponding to the selection state in the record is displayed.

进一步地,当检测到退出该应用的选择界面的操作时,清空该HashMap中的记录,即,当检测到该操作项的选择界面退回到主界面或上一页显示界面时,即清空该HashMap中的记录。是为了保证该选择界面退出后,再次进入该选择界面时,该选择界面中各操作项的选择状态能够全部恢复为默认值,这样可以让用户重新选择各操作项,而不受上次选择的影响,增加操作的便捷性。Further, when the operation of exiting the selection interface of the application is detected, the records in the HashMap are cleared, that is, when it is detected that the selection interface of the operation item returns to the main interface or the previous page display interface, the HashMap is cleared records in . It is to ensure that after the selection interface is exited, when the selection interface is entered again, the selection status of each operation item in the selection interface can be restored to the default value, so that the user can re-select each operation item without being affected by the previous selection. Influence, increase the convenience of operation.

本发明实施例中,通过在存储表中记录操作项发生变化的选择状态,当操作项的选择界面需要更新显示时,从该存储表中查询关于操作项的选择状态的记录,若查询不到,则将该操作项的选择状态按照默认选择状态进行显示,若查询得到,则将该操作项的选择状态按照查询到的状态进行显示,以实现再次该选择界面更新显示时,操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新选择,增加操作的便捷性。并且,若操作项被删除或卸载,由于在该选择界面中并不显示系统中不存在的操作项,因此不执行从该存储表中查询该操作项对应的选择状态的记录,则在该选择界面更新显示时,不会显示该删除或卸载的操作项及其选择状态,使得操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新更新,进一步增加操作的便捷性。In the embodiment of the present invention, by recording the selection state of the operation item in the storage table, when the selection interface of the operation item needs to be updated and displayed, query the record about the selection state of the operation item from the storage table. , the selection state of the operation item will be displayed according to the default selection state. If the query is obtained, the selection state of the operation item will be displayed according to the queried state, so as to realize that when the selection interface is updated and displayed again, the operation item list The selection state is consistent with the update display, and there is no need to re-select the operation item again, which increases the convenience of operation. And, if the operation item is deleted or uninstalled, since the operation item that does not exist in the system is not displayed in the selection interface, it is not executed to query the record of the selection state corresponding to the operation item from the storage table, then in the selection interface When the interface is updated and displayed, the deleted or uninstalled operation item and its selection status will not be displayed, so that the selection status of the operation item list is consistent with that before the update display, and there is no need to re-update the operation item again, further increasing the convenience of operation .

请参阅图4,图4是本发明第三实施例提供的操作项选择状态显示装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图4示例的操作项选择状态显示装置可以是前述图1和图3所示实施例提供的操作项选择状态显示方法的执行主体。该装置可以为移动终端或移动终端的一个模块。图4示例的操作项选择状态显示装置,主要包括:记录模块301、查询模块302以及显示模块303。以上各功能模块详细说明如下:Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of an operation item selection state display device according to a third embodiment of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. The device for displaying the selection state of the operation item illustrated in FIG. 4 may be the subject of execution of the method for displaying the selection state of the operation item provided in the embodiments shown in FIGS. 1 and 3 . The device may be a mobile terminal or a module of the mobile terminal. The device for displaying the selection state of the operation item shown in FIG. 4 mainly includes: a recording module 301 , a query module 302 and a display module 303 . The above functional modules are described in detail as follows:

其中,记录模块301,用于当检测到运行的应用的选择界面中,操作项的选择状态发生变化时,在预置的存储表中记录变化后的选择状态。Wherein, the recording module 301 is configured to record the changed selection state in a preset storage table when it is detected that the selection state of the operation item changes in the selection interface of the running application.

查询模块302,用于当该操作项的选择界面更新显示时,从该存储表中查询该操作项对应的选择状态的记录。The query module 302 is configured to query the record of the selection status corresponding to the operation item from the storage table when the selection interface of the operation item is updated and displayed.

该操作项的选择界面更新显示,是指如用户需要进行其他操作,例如,用户点击多任务按键或者Home键,将APP退到后台运行,再次通过点击APP图标或者“最近任务”进入该APP而使得该选择界面的操作项更新显示。从该存储表中查询该操作项对应的选择状态的记录。The update display of the selection interface of this operation item means that if the user needs to perform other operations, for example, the user clicks the multitasking button or the Home button, returns the APP to the background, and clicks the APP icon or "recent tasks" to enter the APP again. The operation items of the selection interface are updated and displayed. Query the record of the selection state corresponding to the operation item from the storage table.

需要说明的是,若操作项被删除或卸载,则在选择界面中并不显示该操作项,也不会执行从该存储表中查询该操作项对应的选择状态的记录。因此,在更新显示时,不会显示该删除或卸载的操作项及其选择状态,显示信息更准确,进一步简化用户的操作。It should be noted that if the operation item is deleted or uninstalled, the operation item will not be displayed in the selection interface, and the record of the selection status corresponding to the operation item will not be queried from the storage table. Therefore, when the display is updated, the deleted or uninstalled operation item and its selection status are not displayed, and the displayed information is more accurate, further simplifying the user's operation.

显示模块303,用于若未查询到记录,则将该操作项的选择状态显示为默认选择状态。The display module 303 is configured to display the selection state of the operation item as a default selection state if no record is queried.

若未查询到与该操作项的选择状态相关的记录,表示该操作项的选择状态未发生过改变,因此在该存储表中没有相关记录,则将该操作项的选择状态显示为默认选择状态。If no record related to the selection state of the operation item is found, it means that the selection state of the operation item has not changed, so there is no related record in the storage table, and the selection state of the operation item is displayed as the default selection state .

其中,默认选择状态,是指在系统中默认设置的该选择界面中的操作项对应的选择状态,例如,该默认选择状态可以是全部选中,也可以是全部未选。Wherein, the default selection state refers to the selection state corresponding to the operation items in the selection interface set by default in the system, for example, the default selection state may be all selected or all unselected.

显示模块303,还用于若查询到记录,则将该操作项的选择状态显示为查询到的记录中记录的选择状态。The display module 303 is further configured to display the selection state of the operation item as the selection state of the records in the queried records if a record is queried.

查询到与该操作项的选择状态相关的记录,按照记录的内容显示该操作项的选择状态,即,显示该记录中选择状态对应的选择状态。The record related to the selection state of the operation item is queried, and the selection state of the operation item is displayed according to the content of the record, that is, the selection state corresponding to the selection state in the record is displayed.

本实施例未尽之细节,请参阅前述图1至图3所示实施例的描述,此处不再赘述。For details not covered in this embodiment, please refer to the description of the embodiment shown in FIGS. 1 to 3 above, and details will not be repeated here.

需要说明的是,以上图4示例的操作项选择状态显示装置的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,例如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将操作项选择状态显示装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且,实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成。本说明书提供的各个实施例都可应用上述描述原则,以下不再赘述。It should be noted that, in the implementation of the operation item selection state display device illustrated in FIG. 4 above, the division of each functional module is only an example, and in actual applications, it can be adjusted according to the needs, such as the configuration requirements of the corresponding hardware or the convenience of software implementation. Considering that the above function allocation is completed by different functional modules, that is, the internal structure of the operation item selection state display device is divided into different functional modules to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be completed by corresponding hardware executing corresponding software. Each of the embodiments provided in this specification can apply the above-mentioned description principle, which will not be described in detail below.

本发明实施例中,通过在存储表中记录操作项发生变化的选择状态,当操作项的选择界面需要更新显示时,从该存储表中查询关于操作项的选择状态的记录,若查询不到,则将该操作项的选择状态按照默认选择状态进行显示,若查询得到,则将该操作项的选择状态按照查询到的状态进行显示,以实现再次该选择界面更新显示时,操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新选择,增加操作的便捷性。并且,若操作项被删除或卸载,由于在该选择界面中并不显示系统中不存在的操作项,因此不执行从该存储表中查询该操作项对应的选择状态的记录,则在该选择界面更新显示时,不会显示该删除或卸载的操作项及其选择状态,使得操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新更新,进一步增加操作的便捷性。In the embodiment of the present invention, by recording the selection state of the operation item in the storage table, when the selection interface of the operation item needs to be updated and displayed, query the record about the selection state of the operation item from the storage table. , the selection state of the operation item will be displayed according to the default selection state. If the query is obtained, the selection state of the operation item will be displayed according to the queried state, so as to realize that when the selection interface is updated and displayed again, the operation item list The selection state is consistent with the update display, and there is no need to re-select the operation item again, which increases the convenience of operation. And, if the operation item is deleted or uninstalled, since the operation item that does not exist in the system is not displayed in the selection interface, it is not executed to query the record of the selection state corresponding to the operation item from the storage table, then in the selection interface When the interface is updated and displayed, the deleted or uninstalled operation item and its selection status will not be displayed, so that the selection status of the operation item list is consistent with that before the update display, and there is no need to re-update the operation item again, further increasing the convenience of operation .

请参阅图5,本发明第四实施例提供的操作项选择状态显示装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图5示例的操作项选择状态显示装置可以是前述图1和图3所示实施例提供的操作项选择状态显示方法的执行主体。该装置可以为移动终端或移动终端的一个模块。图5示例的操作项选择状态显示装置,与图4所示实施例中的装置的不同之处主要在于:Please refer to FIG. 5 , which is a schematic structural diagram of an operation item selection state display device provided by a fourth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The apparatus for displaying the selection state of the operation item illustrated in FIG. 5 may be the subject of execution of the method for displaying the selection state of the operation item provided in the embodiment shown in FIG. 1 and FIG. 3 . The device may be a mobile terminal or a module of the mobile terminal. The operation item selection status display device shown in Fig. 5 is mainly different from the device in the embodiment shown in Fig. 4 in that:

记录操作项对应的选择状态的存储表以HashMap为例,具体地,在选择界面对应的Adapter中,新建一个HashMap<String,Boolean>记录变量。该HashMap为空,不存在任何数据。The storage table for recording the selection state corresponding to the operation item takes HashMap as an example. Specifically, in the Adapter corresponding to the selection interface, create a new HashMap<String, Boolean> record variable. The HashMap is empty without any data.

记录模块301,还用于当检测到该操作项的选择状态发生第一次变化时,在预先建立的哈希映射表中增加该操作项和该操作项变化后的选择状态对应的记录,该操作项和该操作项变化后的选择状态分别以键和键值的形式进行记录。The recording module 301 is also configured to add a record corresponding to the operation item and the selection state after the operation item changes in the pre-established hash mapping table when it is detected that the selection state of the operation item changes for the first time. The operation item and the selected state after the operation item changes are recorded in the form of key and key value respectively.

当检测到操作项的选择状态发生第一次变化时,在预先建立的HashMap中增加操作项和操作项变化后的选择状态对应的记录,即,用户第一次点击该操作项的勾选框时,在该HashMap中新增一条该操作项与该操作项对应的选择状态的记录。其中,操作项和操作项变化后的选择状态分别以键和键值的形式进行记录,键值以true表示选中状态,以false表示未选中状态。When it is detected that the selection state of the operation item changes for the first time, the record corresponding to the operation item and the selection state after the operation item changes is added to the pre-established HashMap, that is, the user clicks the check box of the operation item for the first time , a new record of the operation item and the selection status corresponding to the operation item is added in the HashMap. Wherein, the operation item and the selection state after the change of the operation item are recorded in the form of a key and a key value respectively, and the key value is true for a selected state, and false for an unselected state.

进一步地,记录模块301,还用于当检测到该操作项的选择状态再次发生变化时,通过修改该键值的方式,修改该哈希映射表中记录的该操作项变化后的选择状态。Further, the recording module 301 is further configured to modify the changed selection state of the operation item recorded in the hash map by modifying the key value when detecting that the selection state of the operation item changes again.

当检测到操作项的选择状态再次发生变化时,通过修改该键值的方式,修改该HashMap中记录的操作项变化后的选择状态。即,当再次检测到用户点击操作项的勾选框时,只需修改该操作项对应的键值为相反状态即可,例如,该操作项的选择状态未再次发生变化之前,键值为ture,那么当该选择状态再次发生变化后,将键值修改为false。When it is detected that the selection state of the operation item changes again, the selection state of the operation item recorded in the HashMap is modified by modifying the key value. That is, when it is detected that the user clicks the check box of the operation item again, it is only necessary to modify the key value corresponding to the operation item to be in the opposite state. For example, before the selection state of the operation item changes again, the key value is true , then when the selection state changes again, change the key value to false.

进一步地,记录模块301,还用于确定该操作项的类型,以及,按照该操作项的类型,在预先建立的哈希映射表中记录变化后的选择状态,其中,记录的具体形式是将键记录为操作项的身份标识,并将该键的键值记录为变化后的选择状态。Further, the record module 301 is also used to determine the type of the operation item, and record the changed selection state in the pre-established hash map according to the type of the operation item, wherein the specific form of the record is to The key is recorded as the identity of the operation item, and the key value of the key is recorded as the changed selection state.

查询模块302,还用于从该哈希映射表中查询该操作项的身份标识,并查询与该身份标识对应的选择状态的记录。The query module 302 is further configured to query the identity of the operation item from the hash mapping table, and query the record of the selection state corresponding to the identity.

操作项的类型可以分为应用程序、文件、预置类型的数据(包括个人数据和/或系统数据)。每一类操作项都具备一类身份标识,该身份标识使得每一类操作项中的每个操作项都身份唯一。具体地,应用程序的身份标识为其安装包的包名,文件的身份标识为该文件的存储目录和文件名,个人数据及系统数据的身份标识分别为不同的整数数据类型,例如,个人数据的身份标识为type|1,系统数据的身份标识为type|2。Types of operation items can be classified into applications, files, and preset types of data (including personal data and/or system data). Each type of operation item has a type of identity, and the identity makes each operation item in each type of operation item have a unique identity. Specifically, the identity of the application is the package name of the installation package, the identity of the file is the storage directory and file name of the file, and the identity of personal data and system data are different integer data types, for example, personal data The identity of the system data is type|1, and the identity of the system data is type|2.

进一步地,记录模块301,还用于若该操作项为应用程序,则在预先建立的哈希映射表中记录变化后的选择状态,其中,记录的具体形式是将键记录为该应用程序的安装包名,并将该键的键值记录为变化后的选择状态;Further, the recording module 301 is also configured to record the changed selection state in the pre-established hash map if the operation item is an application program, wherein the specific form of recording is to record the key as the application program Install the package name, and record the key value of the key as the changed selection state;

若该操作项为文件,则在预先建立的哈希映射表中记录变化后的选择状态,其中,记录的具体形式是将键记录为该文件的存储目录和文件名,并将该键的键值记录为变化后的选择状态;If the operation item is a file, record the changed selection state in the pre-established hash map, wherein the specific form of the record is to record the key as the storage directory and file name of the file, and set the key of the key The value is recorded as the changed selection state;

若该操作项为预置类型的数据,则在预先建立的哈希映射表中记录变化后的选择状态,其中,记录的具体形式是将键记录为该预置类型的数据对应的整数数据类型,并将该键的键值记录为变化后的选择状态,该预置类型的数据包括个人数据和/或系统数据;If the operation item is a preset type of data, record the changed selection state in the pre-established hash map, where the specific form of the record is to record the key as the integer data type corresponding to the preset type of data , and record the key value of the key as the selected state after the change, and the preset type of data includes personal data and/or system data;

若该操作项为文件夹,则在预先建立的哈希映射表中记录变化后的选择状态,其中,记录的具体形式是将键记录为文件夹名,并将该键的键值记录为变化后的选择状态。If the operation item is a folder, record the changed selection state in the pre-established hash map, where the specific form of the record is to record the key as the folder name, and record the key value of the key as the change After the selected state.

本发明实施例中,该装置还可以进一步包括:In the embodiment of the present invention, the device may further include:

增加模块401,用于若该操作项为文件夹,则在预先建立的哈希映射表中增加与该操作项对应的defaultchecked属性。The adding module 401 is configured to add a defaultchecked attribute corresponding to the operation item in the pre-established hash mapping table if the operation item is a folder.

显示模块303,还用于若未查询到记录,则将该文件夹的选择状态,按照返回的该defaultchecked的默认值对应的选择状态进行显示。The display module 303 is further configured to display the selection state of the folder according to the selection state corresponding to the returned default value of defaultchecked if no record is queried.

文件夹默认的选择状态并不都是true,所以为文件夹类型的操作项在HashMap中增加一个属性defaultChecked,defaultChecked属性可返回checked属性的默认值。默认在操作项被选中时返回true,否则返回false。在查询HashMap中文件夹操作项对应的记录时,若查询不到,则返回该文件夹操作项的defaultChecked值,而不必然返回系统默认的其他操作项的true。The default selection status of a folder is not always true, so add an attribute defaultChecked to the HashMap for folder-type operation items, and the defaultChecked attribute can return the default value of the checked attribute. By default it returns true if the action item is selected, otherwise it returns false. When querying the record corresponding to the folder operation item in the HashMap, if the query cannot be found, the defaultChecked value of the folder operation item will be returned instead of true for other operation items defaulted by the system.

该装置还可以进一步包括:The device may further include:

清空模块402,用于当检测到退出该应用的选择界面的操作时,清空该哈希映射表中的记录。The clearing module 402 is configured to clear the records in the hash mapping table when an operation of exiting the selection interface of the application is detected.

当检测到退出该应用的选择界面的操作时,清空该HashMap中的记录,即,当检测到该操作项的选择界面退回到主界面或上一页显示界面时,即清空该HashMap中的记录。是为了保证该选择界面退出后,再次进入该选择界面时,该选择界面中各操作项的选择状态能够全部恢复为默认值,这样可以让用户重新选择各操作项,而不受上次选择的影响,增加操作的便捷性。When the operation of exiting the selection interface of the application is detected, the records in the HashMap are cleared, that is, when the selection interface of the operation item is detected to return to the main interface or the previous page display interface, the records in the HashMap are cleared . It is to ensure that after the selection interface is exited, when the selection interface is entered again, the selection status of each operation item in the selection interface can be restored to the default value, so that the user can re-select each operation item without being affected by the previous selection. Influence, increase the convenience of operation.

本实施例未尽之细节,请参阅前述图1至图4所示实施例的描述,此处不再赘述。For the details not covered in this embodiment, please refer to the description of the embodiment shown in FIG. 1 to FIG.

本发明实施例中,通过在存储表中记录操作项发生变化的选择状态,当操作项的选择界面需要更新显示时,从该存储表中查询关于操作项的选择状态的记录,若查询不到,则将该操作项的选择状态按照默认选择状态进行显示,若查询得到,则将该操作项的选择状态按照查询到的状态进行显示,以实现再次该选择界面更新显示时,操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新选择,增加操作的便捷性。并且,若操作项被删除或卸载,由于在该选择界面中并不显示系统中不存在的操作项,因此不执行从该存储表中查询该操作项对应的选择状态的记录,则在该选择界面更新显示时,不会显示该删除或卸载的操作项及其选择状态,使得操作项列表的选择状态和更新显示之前保持一致,不需再次对操作项进行重新更新,进一步增加操作的便捷性。In the embodiment of the present invention, by recording the selection state of the operation item in the storage table, when the selection interface of the operation item needs to be updated and displayed, query the record about the selection state of the operation item from the storage table. , the selection state of the operation item will be displayed according to the default selection state. If the query is obtained, the selection state of the operation item will be displayed according to the queried state, so as to realize that when the selection interface is updated and displayed again, the operation item list The selection state is consistent with the update display, and there is no need to re-select the operation item again, which increases the convenience of operation. And, if the operation item is deleted or uninstalled, since the operation item that does not exist in the system is not displayed in the selection interface, it is not executed to query the record of the selection state corresponding to the operation item from the storage table, then in the selection interface When the interface is updated and displayed, the deleted or uninstalled operation item and its selection status will not be displayed, so that the selection status of the operation item list is consistent with that before the update display, and there is no need to re-update the operation item again, further increasing the convenience of operation .

在本申请所提供的多个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信链接可以是通过一些接口,装置或模块的间接耦合或通信链接,可以是电性,机械或其它的形式。In the multiple embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication link shown or discussed may be through some interfaces, and the indirect coupling or communication link of devices or modules may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

以上为对本发明所提供的操作项选择状态显示方法及装置的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is the description of the operation item selection state display method and device provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. Above all, the contents of this specification should not be construed as limiting the present invention.

Claims (16)

CN201610812526.9A2016-09-082016-09-08Operation item selection state display method and deviceExpired - Fee RelatedCN106325684B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610812526.9ACN106325684B (en)2016-09-082016-09-08Operation item selection state display method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610812526.9ACN106325684B (en)2016-09-082016-09-08Operation item selection state display method and device

Publications (2)

Publication NumberPublication Date
CN106325684Atrue CN106325684A (en)2017-01-11
CN106325684B CN106325684B (en)2019-08-27

Family

ID=57786712

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610812526.9AExpired - Fee RelatedCN106325684B (en)2016-09-082016-09-08Operation item selection state display method and device

Country Status (1)

CountryLink
CN (1)CN106325684B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107391277A (en)*2017-07-172017-11-24北京京东尚科信息技术有限公司Information processing method and device
CN114546566A (en)*2022-02-242022-05-27奇安信科技集团股份有限公司Data selection method and device
CN115510076A (en)*2022-09-162022-12-23上海达家迎信息科技有限公司Virtual article state management method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPS62271181A (en)*1986-05-201987-11-25Meidensha Electric Mfg Co LtdDrawing display device
CN1904817A (en)*2005-07-252007-01-31乐金电子(中国)研究开发中心有限公司Improved menu display method and its digital processing device
CN101278253A (en)*2005-09-282008-10-01株式会社爱可信 End Devices and Programs
CN103226432A (en)*2013-05-222013-07-31青岛旲天下智能科技有限公司Intelligent human-machine interaction operating system
CN104793836A (en)*2014-01-162015-07-22中兴通讯股份有限公司Information processing method and device based on user operations and terminal
CN105204844A (en)*2015-08-202015-12-30上海斐讯数据通信技术有限公司Application interface storage and recovery method and system, and electronic equipment
CN105530550A (en)*2015-12-152016-04-27福建新大陆通信科技股份有限公司Set-top box menu management system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPS62271181A (en)*1986-05-201987-11-25Meidensha Electric Mfg Co LtdDrawing display device
CN1904817A (en)*2005-07-252007-01-31乐金电子(中国)研究开发中心有限公司Improved menu display method and its digital processing device
CN101278253A (en)*2005-09-282008-10-01株式会社爱可信 End Devices and Programs
CN103226432A (en)*2013-05-222013-07-31青岛旲天下智能科技有限公司Intelligent human-machine interaction operating system
CN104793836A (en)*2014-01-162015-07-22中兴通讯股份有限公司Information processing method and device based on user operations and terminal
CN105204844A (en)*2015-08-202015-12-30上海斐讯数据通信技术有限公司Application interface storage and recovery method and system, and electronic equipment
CN105530550A (en)*2015-12-152016-04-27福建新大陆通信科技股份有限公司Set-top box menu management system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107391277A (en)*2017-07-172017-11-24北京京东尚科信息技术有限公司Information processing method and device
CN107391277B (en)*2017-07-172021-06-29北京京东尚科信息技术有限公司Information processing method and device
CN114546566A (en)*2022-02-242022-05-27奇安信科技集团股份有限公司Data selection method and device
CN115510076A (en)*2022-09-162022-12-23上海达家迎信息科技有限公司Virtual article state management method and device, storage medium and electronic equipment

Also Published As

Publication numberPublication date
CN106325684B (en)2019-08-27

Similar Documents

PublicationPublication DateTitle
CN108038114B (en)Path query method, terminal and computer readable storage medium
US9098363B2 (en)Search extensibility to third party applications
CN103023875B (en)A kind of account management system and method
US10534753B2 (en)Caseless file lookup in a distributed file system
US9996549B2 (en)Method to construct a file system based on aggregated metadata from disparate sources
US20190140902A1 (en)Centralized configuration data in a distributed file system
CN110989937A (en)Data storage method, device and equipment and computer readable storage medium
US11768883B2 (en)System and method for in-place record content management
EP2779582A2 (en)Automatic mobile application discovery and integration in a mobile telecommunication device
CN105808094B (en) Application calling method and terminal
CN103942205A (en)Method, device and system for storing and reading catalogue index
CN103699597A (en)Method for downloading file through browser and browser
CN107632872B (en)Desktop layout processing method, user data processing method and device and computer storage medium
CN104573093A (en) A method and device for managing file directories
US20220083426A1 (en)Method and system for hybrid incremental file-based backups
US20210271491A1 (en)Application processing method, device, electronic device and storage medium
CN109753379B (en)Snapshot data backup and deletion method, device and system
CN107765945A (en)A kind of file management method, device, terminal and computer-readable recording medium
CN109491962A (en)A kind of file directory tree management method and relevant apparatus
CN106155566A (en)For storing method, the Apparatus and system of data
CN106325684A (en)Operation item selection state display method and device
CN110532231A (en)File polling method, file polling device and terminal device
CN107766488B (en) Information query method, terminal, and computer-readable storage medium
CN106415499B (en)Application-implemented context switching
US8959248B2 (en)Personal computing environment with virtual computing device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20190827

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp