CN106325684B - Action-item selects state display method and device - Google Patents

Action-item selects state display method and device Download PDF

Info

Publication number
CN106325684B
CN106325684B CN201610812526.9A CN201610812526A CN106325684B CN 106325684 B CN106325684 B CN 106325684B CN 201610812526 A CN201610812526 A CN 201610812526A CN 106325684 B CN106325684 B CN 106325684B
Authority
CN
China
Prior art keywords
item
action
record
selection state
state
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.)
Active
Application number
CN201610812526.9A
Other languages
Chinese (zh)
Other versions
CN106325684A (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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610812526.9A priority Critical patent/CN106325684B/en
Publication of CN106325684A publication Critical patent/CN106325684A/en
Application granted granted Critical
Publication of CN106325684B publication Critical patent/CN106325684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of action-item selection state display method and devices, this method comprises: when the selection state for detecting action-item changes, selection state in preset storage table after record variation, when the selection interface of the action-item updates display, the record of the corresponding selection state of the action-item is inquired from the storage table, if not inquiring record, then select status display for default choice state the action-item, if inquiring record, which is selected into status display as the selection state that records in the record that inquires.When selection interface update display again can be achieved in the present invention, the selection state of action-item list and update display are consistent before, are not required to again reselect action-item, are increased the convenience of operation.

Description

Action-item selects state display method and device
Technical field
The invention belongs to technical field of mobile terminals more particularly to a kind of action-item selection state display methods and device.
Background technique
With popularizing for intelligent mobile terminal, especially smart phone, user is more next to the safety of smartphone data More pay close attention to.Backup and recovery module almost have in all smart phones, and user can be first with recovery module by backup The data on a smart phone are backed up beyond the clouds or in other storage equipment such as computer, then pass through backup and recovery module Restore on another smart phone, it can be easily and fast real after replacing smart phone or after to smart phone brush machine The function of data transfer between existing smart phone.
In the prior art, when Backup Data, starting backup is applied with recovery, is selected in the backed item (item) of the application In interface, the backed item chosen can be added in backed item list.But when user triggers multitask key or Home key The application is fallen back on into backstage, and after entering the application again by the icon or nearest task for clicking the application, it is last standby The selection state of part item list can not be restored to show therewith, but be shown as the state that default is selected entirely, and user needs to select again Backed item is selected, is made troubles to the operation of user.
Summary of the invention
The present invention provides a kind of action-item selection state display method and device, it is intended to solve the selection interface for working as action-item When needing to update display, the selection state and the selection state before update display of action-item are inconsistent, and make troubles to user The problem of.
First aspect present invention provides a kind of action-item selection state display method, comprising:
In the selection interface of application for detecting operation, when the selection state of action-item changes, deposited in preset Store up the selection state in table after record variation;
When the selection interface of the action-item updates display, the corresponding choosing of the action-item is inquired from the storage table Select the record of state;
If not inquiring record, select status display for default choice state the action-item;
If inquiring record, the action-item is selected into status display as the selection shape that records in the record that inquires State.
Second aspect of the present invention provides a kind of action-item selection state display device, comprising:
Logging modle, in the selection interface of application for detecting operation, the selection state of action-item to change When, the selection state in preset storage table after record variation;
Enquiry module, described in being inquired from the storage table when the selection interface of the action-item updates display The record of the corresponding selection state of action-item;
Display module, if selecting status display for default choice shape the action-item for not inquiring record State;
The action-item is selected status display if being also used to inquire record as the note that inquires by display module The selection state recorded in record.
From the embodiments of the present invention it is found that action-item provided by the invention selection state display method and device, pass through The changed selection state of action-item is recorded in storage table, when the selection interface of action-item needs to update display, from this In storage table inquire about action-item selection state record, if inquire less than, by the selection state of the action-item according to Default choice state is shown, if inquiry obtains, the selection state of the action-item is shown according to the state inquired Show, when realizing that the selection interface updates display again, be consistent before the selection state and update display of action-item list, It is not required to again reselect action-item, increases the convenience of operation.Also, if action-item is deleted or unloading, due to The action-item not being not present in display system in the selection interface, therefore do not execute and inquire the action-item from the storage table The record of corresponding selection state, then the selection interface update show when, will not show the deletion or unloading action-item and Its select state so that the selection state of action-item list and update display before be consistent, be not required to again to action-item into Row updates again, further increases the convenience of operation.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention.
Fig. 1 is the implementation process schematic diagram for the action-item selection state display method that first embodiment of the invention provides;
Fig. 2 shows the selection interfaces of one of mobile terminal action-item;
Fig. 3 is the implementation process schematic diagram for the action-item selection state display method that second embodiment of the invention provides;
Fig. 4 is the structural schematic diagram for the action-item selection state display device that third embodiment of the invention provides;
Fig. 5 is the structural schematic diagram for the action-item selection state display device that fourth embodiment of the invention provides.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Action-item provided in an embodiment of the present invention selects state display method, can be applied to smart phone, tablet computer etc. In mobile terminal device.
Referring to Fig. 1, Fig. 1 is the implementation process that the action-item that first embodiment of the invention provides selects state display method Schematic diagram mainly comprises the steps that
S101, in the selection interface of application for detecting operation, when the selection state of action-item changes, preset Storage table in record variation after selection state;
In the interface that running of mobile terminal is shown when applying, it is usually present the selection interface to action-item, such as various APP In the corresponding selection project of action-item.Fig. 2 shows the selection interfaces of one of mobile terminal action-item, i.e., " backup with Restore " backup interface of APP (application), the option list that can be backed up is shown to user, it can backup it is each A action-item, these action-items may include personal data class, system data class, application class, file according to Type division Class or file class (wherein file class, Fig. 2 in be not shown), wherein application class can also include: secure payment, Figure, Email and news etc..User can be by clicking the corresponding tick boxes of each action-item, to control to the action-item Selection state chooses the action-item to be backed up by clicking CheckBox control.When user chooses an action-item, choose Frame notifies user that the action-item has been selected by changing color, and current selection state is " choosing ".After choosing action-item, point " starting to back up " button is hit, back-up processing is carried out to the action-item chosen.
In the embodiment of the present invention, a storage table is preset in systems, for recording the selection state of action-item, when Selection state when detecting that the selection state of action-item changes, in preset storage table after record variation, that is, operation Item is currently selected state or unselected state.
S102, when the action-item selection interface update display when, the corresponding choosing of the action-item is inquired from the storage table Select the record of state;
The selection interface of the action-item updates display, refers to that user such as needs to carry out other operations, for example, user's click is more APP is fallen back on running background by task key or Home key, and entering again by click APP icon or " nearest task " should APP and make the selection interface action-item update display.The corresponding selection state of the action-item is inquired from the storage table Record.
It should be noted that if action-item is deleted or unloading, then the action-item is not shown in selection interface, not yet The record that the corresponding selection state of the action-item is inquired from the storage table can be executed.Therefore, it when updating display, will not show The action-item and its selection state of the deletion or unloading, display information is more acurrate, is further simplified the operation of user.
For example, retracting running background when backing up and restoring APP, the APP that unloading is located in action-item list at this time is answered With then action-item list does not show the APP just unloaded, and its when backing up and recovery APP turns again to front end operation Each action-item before the selection state of his action-item can correctly update unloading situation, and correctly display returns to running background Selection state.
If S103, not inquiring record, select status display for default choice state the action-item;
If not inquiring record relevant to the selection state of the action-item, indicate that the selection state of the action-item does not occur Change is crossed, therefore does not have relative recording in the storage table, then selects status display for default choice state the action-item.
Wherein, default choice state refers to the corresponding choosing of action-item in selection interface of default setting in systems State is selected, is all chosen for example, the default choice state can be, is also possible to all unselected.
If S104, inquiring record, which is selected into status display as the choosing that records in the record that inquires Select state.
Record relevant to the selection state of the action-item is inquired, the selection of the action-item is shown according to the content of record State, that is, show and select the corresponding selection state of state in the record.
In the embodiment of the present invention, by recording the changed selection state of action-item in storage table, when action-item Selection interface need update display when, from the storage table inquire about action-item selection state record, if inquire less than, Then the selection state of the action-item is shown according to default choice state, if inquiry obtains, by the selection of the action-item State is shown according to the state inquired, when realizing that the selection interface updates display again, the selection of action-item list It is consistent before state and update display, is not required to again reselect action-item, increases the convenience of operation.And And if action-item is deleted or unloading, due to the action-item not being not present in display system in the selection interface, no The record that the corresponding selection state of the action-item is inquired from the storage table is executed, then when the selection interface is updated and shown, no The action-item and its selection state of the deletion or unloading can be shown, so that before the selection state of action-item list and update display It is consistent, is not required to again update action-item again, further increases the convenience of operation.
Referring to Fig. 2, Fig. 2 is the implementation process that the action-item that second embodiment of the invention provides selects state display method Schematic diagram mainly comprises the steps that
In the present embodiment, the storage table of the corresponding selection state of action-item is recorded by taking Hash Map (HashMap) as an example, It is also possible to other any storage tables that can be saved action-item and select state corresponding relationship, is not especially limited herein.Tool Body, in the corresponding Adapter of selection interface, create a HashMap<String, Boolean>record variable.It should HashMap is sky, and any data are not present.
S201, when detect action-item selection state occur for the first time change when, in the Hash Map pre-established The middle corresponding record of selection state increased after action-item and action-item variation;
In the selection interface of application for detecting operation, when the selection state of action-item occurs to change for the first time, pre- The corresponding record of selection state after increasing action-item and action-item variation in the HashMap first established, that is, user's first time point When hitting the tick boxes of the action-item, action-item selection state corresponding with the action-item is increased newly in the HashMap Record.Wherein, action-item and action-item variation after selection state recorded in the form of key and key assignments respectively, key assignments with True indicates selected state, indicates unselected state with false.
It should be noted that the key assignments of the default choice state of system can be preset, for example, default is first switching on When action-item list, all action-item defaults are chosen, i.e., the key assignments of all action-items is true, when the user clicks once Tick boxes, when selected state is changed to unselected state, which is recorded as false.Alternatively, vice versa, default first When secondary opening operation item list, all action-items default be it is unchecked, i.e., the key assignments of all action-items is false.
Specifically, the mode of the selection state in preset storage table (HashMap) after record variation, may is that really Determine the type of action-item, and the selection state according to the type of action-item, in the HashMap pre-established after record variation. Wherein, the identity of the concrete form of record to be by key record the be action-item, and after the key assignments of the key is recorded as variation Selection state.
Wherein, the type of action-item can be divided into application program, file, preset type data (including personal data and/ Or system data) and file.Each generic operation item all has a kind of identity, which makes each generic operation Each action-item identity in is unique.Specifically, the identity of application program is the packet name of its installation kit;The body of file Part is identified as the storage catalogue and filename of this document;The identity of personal data and system data is respectively different integer Data type, for example, the identity of personal data is type | 1, the identity of system data is type | 2;File Identity is the folder name of this document folder.
If the action-item is application program, the selection state in the HashMap pre-established after record variation, In, the concrete form of record is by key record be the application program installation kit name, and after the key assignments of the key is recorded as variation Selection state.
For example, the entitled com.coloros.backuprestore of the installation kit of application program A, and after application program A variation It is preceding select state for selected state, then application program A selection state recording concrete form are as follows: { " com.coloros.backuprestore ", true }.
If the action-item is file, the selection state in the HashMap pre-established after record variation, wherein note The concrete form of record, which is by key record, is the storage catalogue and filename of file, and the key assignments of the key is recorded as the choosing after variation Select state.
For example, the storage catalogue of file B is the music and entitled name of file, and selects state for not after file B variation Selected state, the then concrete form of the selection state recording of file B are as follows: { " name | music ", false }.
If the action-item is the data of preset type, including one or both of personal data and system data, then exist Selection state in the HashMap pre-established after record variation, wherein it is the individual that the concrete form of record, which is by key record, The corresponding integer data type of data, system data, and the key assignments of the key is recorded as the selection state after variation.
For example, the integer data type of personal data is type | 1, and state is selected after personal data variation to choose State, the then concrete form of the selection state recording of personal data are as follows: { " type | 1 ", true }.
If crossing action-item is file, the selection state in the HashMap pre-established after record variation, wherein It is folder name that the concrete form of record, which is by key record, and the key assignments for crossing key is recorded as the selection state after variation.
For example, the folder name of file C is camera, and selects state for unselected state after file C variation, The then concrete form of the selection state recording of file C are as follows: { " camera ", false }.
It should be noted that the selection state that the action-item of file class is defaulted is not necessarily all true, so being file The action-item of type increases an attribute defaultChecked corresponding with the action-item in HashMap, DefaultChecked attribute can return to the default value of checked attribute.Default returns to true when action-item is selected, otherwise Return to false.DefaultChecked attribute is assigned when portfolio operations item initializes, different files DefaultChecked value is different.In inquiring HashMap when the corresponding record of file action-item, if inquiry is less than returning The defaultChecked value for returning this document folder action-item, without the true of other action-items of inevitable return system default.
S202, when the selection state for detecting the action-item changes again, by way of modifying the key assignments, repair Selection state after changing the action-item variation recorded in the Hash Map;
When the selection state for detecting action-item changes again, by way of modifying the key assignments, modification should Selection state after the action-item variation recorded in HashMap.That is, the tick boxes of user's clicking operation item ought be detected again When, need to only modify the corresponding key assignments of the action-item is inverse state, for example, the selection state of the action-item does not occur again Before variation, key assignments ture, then key assignments is revised as false after the selection state changes again.
S203, when the action-item selection interface update display when, the corresponding choosing of the action-item is inquired from the storage table Select the record of state;
The selection interface of the action-item updates display, refers to that user such as needs to carry out other operations, for example, user's click is more APP is fallen back on running background by task key or Home key, and entering again by click APP icon or " nearest task " should APP and make the selection interface action-item update display.The corresponding selection state of the action-item is inquired from the storage table Record.
Specifically, the keyword of different types of action-item, inquiry is different, and keyword is corresponding for different types of action-item Identity.The identity of inquiry operation item from HashMap, and inquire selection state corresponding with identity is crossed Record.Specifically, application program inquires the packet name of its installation kit, and the storage catalogue and filename of file polling this document are personal Corresponding integer data type is inquired in the identity of data and system data.
It should be noted that if action-item is deleted or unloading, then the action-item is not shown in selection interface, not yet The record that the corresponding selection state of the action-item is inquired from the storage table can be executed.Therefore, it when updating display, will not show The action-item and its selection state of the deletion or unloading.
For example, retracting running background when backing up and restoring APP, the APP that unloading is located in action-item list at this time is answered With then action-item list does not show the APP just unloaded, and its when backing up and recovery APP turns again to front end operation Each action-item before the selection state of his action-item can correctly update unloading situation, and correctly display returns to running background Selection state.
If S204, not inquiring record, select status display for default choice state the action-item;
If not inquiring record relevant to the selection state of the action-item, indicate that the selection state of the action-item does not occur Change is crossed, therefore does not have relative recording in the storage table, then selects status display for default choice state the action-item.
Wherein, default choice state refers to the corresponding choosing of action-item in selection interface of default setting in systems State is selected, is all chosen for example, the default choice state can be, is also possible to not select all.
It should be noted that when action-item is file, if not inquiring record, by the selection shape of this document folder State is shown according to the corresponding selection state of the default value of the defaultchecked of return.And when action-item is other classes When type, then select status display for the default choice state action-item.
If S205, inquiring record, which is selected into status display as the choosing that records in the record that inquires Select state.
Record relevant to the selection state of the action-item is inquired, the selection of the action-item is shown according to the content of record State, that is, show and select the corresponding selection state of state in the record.
Further, when detecting the operation for exiting the selection interface of the application, the record in the HashMap is emptied, That is, being emptied in the HashMap when the selection interface for detecting the action-item returns to main interface or page up display interface Record.Be in order to guarantee that the selection interface exits after, when being again introduced into the selection interface, each action-item in the selection interface Select state can full recovery be default value, user can be allowed to reselect each action-item in this way, without what is selected by last time It influences, increases the convenience of operation.
In the embodiment of the present invention, by recording the changed selection state of action-item in storage table, when action-item Selection interface need update display when, from the storage table inquire about action-item selection state record, if inquire less than, Then the selection state of the action-item is shown according to default choice state, if inquiry obtains, by the selection of the action-item State is shown according to the state inquired, when realizing that the selection interface updates display again, the selection of action-item list It is consistent before state and update display, is not required to again reselect action-item, increases the convenience of operation.And And if action-item is deleted or unloading, due to the action-item not being not present in display system in the selection interface, no The record that the corresponding selection state of the action-item is inquired from the storage table is executed, then when the selection interface is updated and shown, no The action-item and its selection state of the deletion or unloading can be shown, so that before the selection state of action-item list and update display It is consistent, is not required to again update action-item again, further increases the convenience of operation.
Referring to Fig. 4, Fig. 4 is the structural representation for the action-item selection state display device that third embodiment of the invention provides Figure, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary action-item of Fig. 4 selects status display Device can be the executing subject for the action-item selection state display method that earlier figures 1 and embodiment illustrated in fig. 3 provide.The device It can be a module of mobile terminal or mobile terminal.The exemplary action-item of Fig. 4 selects state display device, specifically includes that Logging modle 301, enquiry module 302 and display module 303.Detailed description are as follows for above each functional module:
Wherein, logging modle 301, for working as in the selection interface of application for detecting operation, the selection state of action-item Selection state when changing, in preset storage table after record variation.
Enquiry module 302, for inquiring the operation from the storage table when the selection interface of the action-item updates display The record of the corresponding selection state of item.
The selection interface of the action-item updates display, refers to that user such as needs to carry out other operations, for example, user's click is more APP is fallen back on running background by task key or Home key, and entering again by click APP icon or " nearest task " should APP and make the selection interface action-item update display.The corresponding selection state of the action-item is inquired from the storage table Record.
It should be noted that if action-item is deleted or unloading, then the action-item is not shown in selection interface, not yet The record that the corresponding selection state of the action-item is inquired from the storage table can be executed.Therefore, it when updating display, will not show The action-item and its selection state of the deletion or unloading, display information is more acurrate, is further simplified the operation of user.
Display module 303, if selecting status display for default choice shape the action-item for not inquiring record State.
If not inquiring record relevant to the selection state of the action-item, indicate that the selection state of the action-item does not occur Change is crossed, therefore does not have relative recording in the storage table, then selects status display for default choice state the action-item.
Wherein, default choice state refers to the corresponding choosing of action-item in selection interface of default setting in systems State is selected, is all chosen for example, the default choice state can be, is also possible to all unselected.
The action-item is selected status display if being also used to inquire record as the note that inquires by display module 303 The selection state recorded in record.
Record relevant to the selection state of the action-item is inquired, the selection of the action-item is shown according to the content of record State, that is, show and select the corresponding selection state of state in the record.
The details of the present embodiment not to the greatest extent, please refers to the description of earlier figures 1 to embodiment illustrated in fig. 3, details are not described herein again.
It should be noted that in the embodiment of the exemplary action-item selection state display device of figure 4 above, each function mould The division of block is merely illustrative of, and can according to need in practical application, such as the configuration requirement or software of corresponding hardware The convenient of realization considers, and above-mentioned function distribution is completed by different functional modules, i.e., by action-item selection status display dress The internal structure set is divided into different functional modules, to complete all or part of the functions described above.Moreover, actually answering In, the corresponding functional module in the present embodiment be can be by corresponding hardware realization, can also be executed by corresponding hardware Corresponding software is completed.Each embodiment that this specification provides can all apply foregoing description principle, repeat no more below.
In the embodiment of the present invention, by recording the changed selection state of action-item in storage table, when action-item Selection interface need update display when, from the storage table inquire about action-item selection state record, if inquire less than, Then the selection state of the action-item is shown according to default choice state, if inquiry obtains, by the selection of the action-item State is shown according to the state inquired, when realizing that the selection interface updates display again, the selection of action-item list It is consistent before state and update display, is not required to again reselect action-item, increases the convenience of operation.And And if action-item is deleted or unloading, due to the action-item not being not present in display system in the selection interface, no The record that the corresponding selection state of the action-item is inquired from the storage table is executed, then when the selection interface is updated and shown, no The action-item and its selection state of the deletion or unloading can be shown, so that before the selection state of action-item list and update display It is consistent, is not required to again update action-item again, further increases the convenience of operation.
Referring to Fig. 5, the structural schematic diagram for the action-item selection state display device that fourth embodiment of the invention provides, is Convenient for explanation, only parts related to embodiments of the present invention are shown.The exemplary action-item selection state display device of Fig. 5 can To be the executing subject for the action-item selection state display method that earlier figures 1 and embodiment illustrated in fig. 3 provide.The device can be One module of mobile terminal or mobile terminal.The exemplary action-item of Fig. 5 selects state display device, with embodiment illustrated in fig. 4 In the difference of device essentially consist in:
The storage table of the corresponding selection state of action-item is recorded by taking HashMap as an example, it is specifically, corresponding in selection interface In Adapter, a HashMap<String, Boolean>record variable are created.The HashMap is sky, and any number is not present According to.
Logging modle 301 is also used to build when the selection state for detecting the action-item occurs to change for the first time in advance The corresponding record of selection state after increasing the variation of the action-item and the action-item in vertical Hash Map, the action-item and should Selection state after action-item variation is recorded in the form of key and key assignments respectively.
When the selection state for detecting action-item occurs to change for the first time, increase behaviour in the HashMap pre-established The corresponding record of selection state after making item and action-item variation, that is, when user clicks the tick boxes of the action-item for the first time, Increase the record of action-item selection state corresponding with the action-item in the HashMap newly.Wherein, action-item and action-item Selection state after variation is recorded in the form of key and key assignments respectively, and key assignments indicates selected state with true, with false table Show unselected state.
Further, logging modle 301 are also used to when the selection state for detecting the action-item changes again, Selection state by way of modifying the key assignments, after modifying the action-item variation recorded in the Hash Map.
When the selection state for detecting action-item changes again, by way of modifying the key assignments, modification should Selection state after the action-item variation recorded in HashMap.That is, the tick boxes of user's clicking operation item ought be detected again When, need to only modify the corresponding key assignments of the action-item is inverse state, for example, the selection state of the action-item does not occur again Before variation, key assignments ture, then key assignments is revised as false after the selection state changes again.
Further, logging modle 301 are also used to determine the type of the action-item, and, according to the class of the action-item Type, the selection state in the Hash Map pre-established after record variation, wherein the concrete form of record is by key record For the identity of action-item, and the key assignments of the key is recorded as the selection state after variation.
Enquiry module 302 is also used to inquire the identity of the action-item from the Hash Map, and inquires and the body Part identifies the record of corresponding selection state.
The type of action-item can be divided into application program, file, preset type data (including personal data and/or be System data).Each generic operation item all has a kind of identity, which makes each operation in each generic operation item Item all identity are unique.Specifically, the identity of application program is the packet name of its installation kit, and the identity of file is this document Storage catalogue and filename, the identity of personal data and system data be respectively different integer data types, for example, The identity of personal data is type | 1, the identity of system data is type | and 2.
Further, logging modle 301 are reflected if being also used to the action-item is application program in the Hash pre-established Selection state in firing table after record variation, wherein the concrete form of record is the installation kit by key record for the application program Name, and the key assignments of the key is recorded as the selection state after variation;
If the action-item is file, the selection state in the Hash Map pre-established after record variation, wherein The concrete form of record is by key record be this document storage catalogue and filename, and after the key assignments of the key is recorded as variation Selection state;
If the action-item is the data of preset type, the selection in the Hash Map pre-established after record variation State, wherein the concrete form of record is the corresponding integer data type of data by key record for the preset type, and should The key assignments of key is recorded as the selection state after variation, and the data of the preset type include personal data and/or system data;
If the action-item is file, the selection state in the Hash Map pre-established after record variation, In, it is folder name that the concrete form of record, which is by key record, and the key assignments of the key is recorded as the selection state after variation.
In the embodiment of the present invention, which be can further include:
Increase module 401 increases and is somebody's turn to do in the Hash Map pre-established if being file for the action-item The corresponding defaultchecked attribute of action-item.
Display module 303, if being also used to not inquire record, the selection state that this document is pressed from both sides, according to being somebody's turn to do for return The corresponding selection state of the default value of defaultchecked is shown.
The selection state of file default is not necessarily all true, so being the action-item of folder type in HashMap Increasing attribute defaultChecked, defaultChecked an attribute can return to the default value of checked attribute.Default exists Action-item returns to true when selected, otherwise returns to false.In inquiring HashMap when the corresponding record of file action-item, If inquiry less than, return this document folder action-item defaultChecked value, without inevitable return system default other The true of action-item.
The device can further include:
Module 402 is emptied, for emptying the Hash Map when detecting the operation for exiting the selection interface of the application In record.
When detecting the operation for exiting the selection interface of the application, the record in the HashMap is emptied, that is, work as detection When returning to main interface or page up display interface to the selection interface of the action-item, that is, empty the record in the HashMap.It is After guaranteeing that the selection interface exits, when being again introduced into the selection interface, the selection state of each action-item in the selection interface Can full recovery be default value, user can be allowed to reselect each action-item in this way, without being selected to be influenced by last time, increase The convenience of operation.
The details of the present embodiment not to the greatest extent, please refers to the description of earlier figures 1 to embodiment illustrated in fig. 4, details are not described herein again.
In the embodiment of the present invention, by recording the changed selection state of action-item in storage table, when action-item Selection interface need update display when, from the storage table inquire about action-item selection state record, if inquire less than, Then the selection state of the action-item is shown according to default choice state, if inquiry obtains, by the selection of the action-item State is shown according to the state inquired, when realizing that the selection interface updates display again, the selection of action-item list It is consistent before state and update display, is not required to again reselect action-item, increases the convenience of operation.And And if action-item is deleted or unloading, due to the action-item not being not present in display system in the selection interface, no The record that the corresponding selection state of the action-item is inquired from the storage table is executed, then when the selection interface is updated and shown, no The action-item and its selection state of the deletion or unloading can be shown, so that before the selection state of action-item list and update display It is consistent, is not required to again update action-item again, further increases the convenience of operation.
In multiple embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication linkage can be through some interfaces, the INDIRECT COUPLING or logical of device or module Letter link can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are the descriptions for selecting action-item provided by the present invention state display method and device, for this field Those skilled in the art, thought according to an embodiment of the present invention, there will be changes in the specific implementation manner and application range, To sum up, the contents of this specification are not to be construed as limiting the invention.

Claims (14)

1. a kind of action-item selects state display method, which is characterized in that the described method includes:
In the selection interface of application for detecting operation, when the selection state of action-item changes, in preset storage table Selection state after middle record variation;
When the selection interface of the action-item updates display, the corresponding selection shape of the action-item is inquired from the storage table The record of state;
If not inquiring record, select status display for default choice state the action-item;
If inquiring record, the action-item is selected into status display as the selection state that records in the record that inquires;
Wherein, described to work as in the selection interface of application for detecting operation, when the selection state of action-item changes, preset Storage table in record variation after selection state include:
When the selection state for detecting the action-item occurs to change for the first time, increase in the Hash Map pre-established After the corresponding record of selection state after the action-item and action-item variation, the action-item and action-item variation Selection state recorded in the form of key and key assignments respectively.
2. the method according to claim 1, wherein described when the selection state for detecting the action-item occurs Selection shape when changing for the first time, after increasing the action-item and action-item variation in the Hash Map pre-established Include: after the corresponding record of state
When the selection state for detecting the action-item changes again, by way of modifying the key assignments, institute is modified Selection state after stating the action-item variation recorded in Hash Map.
3. the method according to claim 1, wherein the selection in preset storage table after record variation State includes:
It determines the type of the action-item, and according to the type of the action-item, is recorded in the Hash Map pre-established Selection state after variation, wherein the concrete form of record is the identity by key record for the action-item, and will be described The key assignments of key is recorded as the selection state after variation.
4. according to the method described in claim 3, it is characterized in that, described inquire the action-item correspondence from the storage table The record of selection state include:
The identity of the action-item is inquired from the Hash Map, and inquires selection corresponding with the identity The record of state.
5. according to the method described in claim 4, it is characterized in that, the type according to the action-item, is pre-establishing Hash Map in record variation after selection state, wherein the concrete form of record be by key record be the action-item Identity, and by the key assignments of the key be recorded as variation after selection state include:
If the action-item is application program, the selection state in the Hash Map pre-established after record variation, In, the concrete form of record, which is by key record, is the installation kit name of the application program, and the key assignments of the key is recorded as becoming Selection state after change;
If the action-item is file, the selection state in the Hash Map pre-established after record variation, wherein note The concrete form of record, which is by key record, is the storage catalogue and filename of the file, and the key assignments of the key is recorded as changing Selection state afterwards;
If the action-item is the data of preset type, the selection shape in the Hash Map pre-established after record variation State, wherein the concrete form of record is by key record be the preset type the corresponding integer data type of data, and by institute The key assignments for stating key is recorded as the selection state after variation, and the data of the preset type include personal data and/or system data;
If the action-item is file, the selection state in the Hash Map pre-established after record variation, wherein It is folder name that the concrete form of record, which is by key record, and the key assignments of the key is recorded as the selection state after variation.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
If the action-item is file, increase in the Hash Map pre-established corresponding with the action-item Defaultchecked attribute;
Then, if described do not inquire record, include: for default choice state by the status display that selects of the action-item
If not inquiring record, by the selection state of the file, according to return the defaultchecked it is silent Recognize the corresponding selection state of value to be shown.
7. method according to any one of claims 1 to 6, which is characterized in that the method also includes:
When detecting the operation for exiting the selection interface of the application, the record in the Hash Map is emptied.
8. a kind of action-item selects state display device, which is characterized in that described device includes:
Logging modle, for working as in the selection interface of application for detecting operation, when the selection state of action-item changes, Selection state in preset storage table after record variation;
Enquiry module, for inquiring the operation from the storage table when the selection interface of the action-item updates display The record of the corresponding selection state of item;
Display module, if selecting status display for default choice state the action-item for not inquiring record;
The action-item is selected status display if being also used to inquire record as the note that inquires by the display module The selection state recorded in record;
The logging modle is also used to build when the selection state for detecting the action-item occurs to change for the first time in advance The corresponding record of selection state after increasing the action-item and action-item variation in vertical Hash Map, the operation Selection state after item and action-item variation is recorded in the form of key and key assignments respectively.
9. device according to claim 8, which is characterized in that
The logging modle is also used to when the selection state for detecting the action-item changes again, by modifying institute The mode for stating key assignments, the selection state after modifying the action-item variation recorded in the Hash Map.
10. device according to claim 8, which is characterized in that
The logging modle is also used to determine the type of the action-item, and according to the type of the action-item, is pre-establishing Hash Map in record variation after selection state, wherein the concrete form of record be by key record be the action-item Identity, and by the key assignments of the key be recorded as variation after selection state.
11. device according to claim 10, which is characterized in that
The enquiry module is also used to inquire the identity of the action-item, and inquiry and institute from the Hash Map State the record of the corresponding selection state of identity.
12. device according to claim 11, which is characterized in that
The logging modle records in the Hash Map pre-established if being also used to the action-item is application program Selection state after variation, wherein the concrete form of record is by key record be the application program installation kit name, and by institute The key assignments for stating key is recorded as the selection state after variation;
If the action-item is file, the selection state in the Hash Map pre-established after record variation, wherein note The concrete form of record, which is by key record, is the storage catalogue and filename of the file, and the key assignments of the key is recorded as changing Selection state afterwards;
If the action-item is the data of preset type, the selection shape in the Hash Map pre-established after record variation State, wherein the concrete form of record is by key record be the preset type the corresponding integer data type of data, and by institute The key assignments for stating key is recorded as the selection state after variation, and the data of the preset type include personal data and/or system data;
If the action-item is file, the selection state in the Hash Map pre-established after record variation, wherein It is folder name that the concrete form of record, which is by key record, and the key assignments of the key is recorded as the selection state after variation.
13. device according to claim 12, which is characterized in that described device further include:
Increase module, if being file for the action-item, increases and the behaviour in the Hash Map pre-established Make the corresponding defaultchecked attribute of item;
The display module, if being also used to not inquire record, by the selection state of the file, according to described in return The corresponding selection state of the default value of defaultchecked is shown.
14. according to the described in any item devices of claim 8 to 13, which is characterized in that described device further include:
Module is emptied, for emptying in the Hash Map when detecting the operation for exiting the selection interface of the application Record.
CN201610812526.9A 2016-09-08 2016-09-08 Action-item selects state display method and device Active CN106325684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610812526.9A CN106325684B (en) 2016-09-08 2016-09-08 Action-item selects state display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610812526.9A CN106325684B (en) 2016-09-08 2016-09-08 Action-item selects state display method and device

Publications (2)

Publication Number Publication Date
CN106325684A CN106325684A (en) 2017-01-11
CN106325684B true CN106325684B (en) 2019-08-27

Family

ID=57786712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610812526.9A Active CN106325684B (en) 2016-09-08 2016-09-08 Action-item selects state display method and device

Country Status (1)

Country Link
CN (1) CN106325684B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391277B (en) * 2017-07-17 2021-06-29 北京京东尚科信息技术有限公司 Information processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904817A (en) * 2005-07-25 2007-01-31 乐金电子(中国)研究开发中心有限公司 Improved menu display method and its digital processing device
CN101278253A (en) * 2005-09-28 2008-10-01 株式会社爱可信 Terminal device and program
CN103226432A (en) * 2013-05-22 2013-07-31 青岛旲天下智能科技有限公司 Intelligent human-machine interaction operating system
CN104793836A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Information processing method and device based on user operations and terminal
CN105204844A (en) * 2015-08-20 2015-12-30 上海斐讯数据通信技术有限公司 Application interface storage and recovery method and system, and electronic equipment
CN105530550A (en) * 2015-12-15 2016-04-27 福建新大陆通信科技股份有限公司 Set-top box menu management system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0752456B2 (en) * 1986-05-20 1995-06-05 株式会社明電舍 Drawing display device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904817A (en) * 2005-07-25 2007-01-31 乐金电子(中国)研究开发中心有限公司 Improved menu display method and its digital processing device
CN101278253A (en) * 2005-09-28 2008-10-01 株式会社爱可信 Terminal device and program
CN103226432A (en) * 2013-05-22 2013-07-31 青岛旲天下智能科技有限公司 Intelligent human-machine interaction operating system
CN104793836A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Information processing method and device based on user operations and terminal
CN105204844A (en) * 2015-08-20 2015-12-30 上海斐讯数据通信技术有限公司 Application interface storage and recovery method and system, and electronic equipment
CN105530550A (en) * 2015-12-15 2016-04-27 福建新大陆通信科技股份有限公司 Set-top box menu management system and method

Also Published As

Publication number Publication date
CN106325684A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN108733713A (en) Data query method and device in data warehouse
US9280370B2 (en) System structure management device, system structure management method, and program
CN104484480A (en) Deduplication-based remote replication method and device
CN104820683A (en) Terminal
CN108595503A (en) Document handling method and server
CN105843903A (en) File management method and terminal
CN106254443A (en) Information push method and device
CN110427134A (en) Data processing method, device, equipment and the readable storage medium storing program for executing of instant messaging
CN103179153B (en) Mobile terminal and mobile terminal data backup method based on cloud server
CN104834687A (en) Picture display method
CN102693318B (en) Report query method and report query equipment
CN109375843A (en) Application search method, device, equipment and medium based on shortcut
CN106325684B (en) Action-item selects state display method and device
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
CN103139235B (en) Show method and the client of Web side navigation
CN104063377A (en) Information processing method and electronic equipment using same
CN110134867A (en) Corporation information query method and Related product
CN106375551A (en) Information interaction method and device, and terminal
CN106056329A (en) Verification method and system of merchandise inventory
CN105095021A (en) Method and device for system recovery
CN113268288B (en) Shared file configuration method and device
CN109710278A (en) Method and device for unloading application program and terminal equipment
CN108984341A (en) A kind of data reconstruction method and system based on distributed memory system
CN111722776B (en) File interaction method and device and computer readable storage medium
CN103870603A (en) Directory management method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant