CN106354379A - Method for hiding multiple objects on basis of gestures and method and device for restoring display - Google Patents
Method for hiding multiple objects on basis of gestures and method and device for restoring display Download PDFInfo
- Publication number
- CN106354379A CN106354379A CN201510415412.6A CN201510415412A CN106354379A CN 106354379 A CN106354379 A CN 106354379A CN 201510415412 A CN201510415412 A CN 201510415412A CN 106354379 A CN106354379 A CN 106354379A
- Authority
- CN
- China
- Prior art keywords
- hidden
- gesture
- objects
- object group
- display area
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本发明的实施例提供了一种基于手势隐藏多个对象的方法、恢复显示的方法及装置,其中基于手势隐藏多个对象的方法包括:根据触发时间和滑动轨迹,从第一对象组中确定多个待隐藏的对象;创建显示区域和第二对象组,将确定的多个待隐藏的对象复制到第二对象组中,并在显示区域中显示第二对象组中每个对象的第一图形标识;根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。本发明的实施例能方便、快捷高效的对最小单元的文件进行隐藏。
Embodiments of the present invention provide a method for hiding multiple objects based on gestures, and a method and device for restoring display, wherein the method for hiding multiple objects based on gestures includes: determining from the first object group according to the trigger time and the sliding track multiple objects to be hidden; create a display area and a second object group, copy the determined multiple objects to be hidden to the second object group, and display the first object of each object in the second object group in the display area Graphic identification; according to the first gesture and the second gesture, or according to the second gesture, hide the display area, and delete multiple objects to be hidden in the first object group. The embodiment of the present invention can hide the file of the smallest unit conveniently, quickly and efficiently.
Description
技术领域technical field
本发明涉及信息安全技术领域,特别涉及一种基于手势隐藏多个对象的方法、恢复显示的方法及装置。The present invention relates to the technical field of information security, in particular to a method for hiding multiple objects based on gestures, and a method and device for restoring display.
背景技术Background technique
随着智能手机的普及,大家使用手机拍照、和他人沟通、收发邮件甚至是手机支付等行为的频率大大增加,个人的隐私也越来越受到关注。例如当自己购买了新款手机时,亲朋好友都想看个究竟,拿去把玩一番,但是自己已经用了一段时间了,非常担心里面的隐私照片和隐私信息被亲朋好友不小心看到。With the popularization of smart phones, the frequency of people using mobile phones to take pictures, communicate with others, send and receive emails, and even mobile payment has greatly increased, and personal privacy has attracted more and more attention. For example, when I bought a new mobile phone, my relatives and friends wanted to check it out and play with it, but I had used it for a while, and I was very worried that the private photos and information in it would be accidentally seen by relatives and friends.
目前对手机文件或程序保护的方式主要有两种,第一种是通过加密的方式进行,对特定的文件进行加密;第二种是采用隐藏的方式进行。At present, there are mainly two ways to protect mobile phone files or programs. The first method is to encrypt specific files; the second method is to use a hidden method.
其中通过加密方式进行文件保护的主要原理为:事前设定一系列规则(如字符密码或手势密码或者位置信息等),然后对特定文件进行保护,例如对照片程序进行加密,如此一来所有的照片将被保护,若需要查看被保护的照片,需要将解密方式与原有设定的规则进行匹配;例如我们常见的九宫格屏幕解锁,通过事先设定好的手势连接若干点来对手机加密;例如通过获取终端的当前位置数据,获取拍照物体的实时数据,并根据当前位置数据对拍照物体的实时数据进行编码处理,生成加密照片。The main principle of file protection through encryption is: set a series of rules in advance (such as character passwords or gesture passwords or location information, etc.), and then protect specific files, such as encrypting photo programs, so that all Photos will be protected. If you need to view protected photos, you need to match the decryption method with the original set rules; for example, our common Jiugongge screen unlock, connect several points with preset gestures to encrypt the phone; For example, by acquiring the current location data of the terminal, the real-time data of the photographed object is obtained, and the real-time data of the photographed object is encoded according to the current location data to generate an encrypted photo.
通过隐藏方式进行的文件保护,实际上并不是加密,而是通过视图上对文件进行隐藏,使其不可见。如Excel中将不相邻的两行/列之间数行/列进行压缩,让原来不相邻的两行/列相邻,使得这两行/列之间的行/列在视野内不可见,达到隐藏效果;或者window系统上的文件隐藏操作,需要通过对文件属性进行修改,然后再设定显示方式,达到文件隐藏的目的;还有一些手机上采用的隐藏方法,如中国移动自主品牌的M812手机,需要先把需要隐藏的应用程序快捷方式拖动到同一屏幕,然后通过隐藏该屏幕来达到隐藏应用程序的目的。File protection through hiding is not actually encryption, but hiding files from view to make them invisible. For example, in Excel, the number of rows/columns between two non-adjacent rows/columns is compressed, so that the original non-adjacent rows/columns are adjacent to each other, so that the rows/columns between these two rows/columns are out of view. It can be seen that the hiding effect is achieved; or the file hiding operation on the window system needs to modify the file attributes, and then set the display mode to achieve the purpose of file hiding; there are also some hiding methods used on mobile phones, such as China Mobile's own For the M812 mobile phone of the brand, you need to drag the shortcut of the application to be hidden to the same screen, and then hide the screen to achieve the purpose of hiding the application.
但是上述两种方式存在以下缺点,其中采用加密的方式对文件进行保护的缺点在于:需要复杂的技术和复杂的操作,这带来了非常高的技术成本和时间成本,并且无法对文件内的文件进行加密。采用的隐藏方式对文件进行保护的缺点在于:隐藏方式操作繁琐(如window的隐藏文件方式,或M812的隐藏方式)或者隐藏后展开方式简单(如excel的行/列隐藏),无法对更小单元的文件进行隐藏(excel只能对行、列进行隐藏,无法对单元格隐藏,例如需要隐藏A1、B4和D9这三个单元格)。However, the above two methods have the following disadvantages. Among them, the disadvantages of using encryption to protect files are: complex technology and complex operations are required, which brings very high technical and time costs, and cannot be encrypted. The file is encrypted. The disadvantage of using the hidden method to protect files is that the operation of the hidden method is cumbersome (such as the hidden file method of window, or the hidden method of M812) or the simple unfolding method after hiding (such as the row/column hiding of excel), which cannot protect smaller files. The file of the unit is hidden (excel can only hide the row and column, but cannot hide the cell, for example, the three cells A1, B4 and D9 need to be hidden).
发明内容Contents of the invention
本发明实施例的目的在于提供一种基于手势隐藏多个对象的方法、恢复显示的方法及装置,能方便、快捷高效的对最小单元的文件进行隐藏。The purpose of the embodiments of the present invention is to provide a method for hiding multiple objects based on gestures, a method and device for restoring display, which can hide the smallest unit of files conveniently, quickly and efficiently.
为了达到上述目的,本发明的实施例提供了一种基于手势隐藏多个对象的方法,应用于电子设备,该方法包括:In order to achieve the above purpose, an embodiment of the present invention provides a method for hiding multiple objects based on gestures, which is applied to electronic devices, and the method includes:
根据触发时间和滑动轨迹,从第一对象组中确定多个待隐藏的对象;Determining a plurality of objects to be hidden from the first object group according to the trigger time and the sliding track;
创建显示区域和第二对象组,将确定的多个待隐藏的对象复制到第二对象组中,并在显示区域中显示第二对象组中每个对象的第一图形标识;Create a display area and a second object group, copy the determined multiple objects to be hidden into the second object group, and display the first graphic identification of each object in the second object group in the display area;
根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。According to the first gesture and the second gesture, or according to the second gesture, the display area is hidden, and multiple objects to be hidden in the first object group are deleted.
其中,从第一对象组中确定多个待隐藏的对象,具体包括:Wherein, determining a plurality of objects to be hidden from the first object group specifically includes:
获取第一手势对第一对象组中至少部分对象的触发时间;Acquiring the triggering time of the first gesture to at least some objects in the first object group;
若至少部分对象中的多个对象的触发时间大于预先设置的单击时间,以及至少部分对象中的多个对象的触发时间大于第一手势滑过其他对象的时间,则根据第一手势的滑动轨迹确定至少部分对象中的多个对象的位置,并将至少部分对象中的多个对象确定为多个待隐藏的对象。If the triggering time of multiple objects in at least some of the objects is greater than the preset click time, and the triggering time of multiple objects in at least some of the objects is greater than the time when the first gesture slides over other objects, then according to the sliding of the first gesture The trajectory determines the positions of at least some of the objects, and determines the at least some of the objects as objects to be hidden.
其中,获取第一手势对第一对象组中至少部分对象的触发时间,具体包括:Wherein, acquiring the triggering time of the first gesture to at least some objects in the first object group specifically includes:
获取第一手势对第一对象组中位于当前页面的至少部分对象的触发时间;Acquiring the triggering time of the first gesture on at least some of the objects in the first object group on the current page;
根据用户选中当前页面的最后一个对象的第三手势,将第一对象组的首行的Y轴坐标赋值给在当前页面中被选中的最后一个对象的Y轴坐标,以将最后一个对象所在的行移动至第一对象组的首行,并显示当前页面的下一页面;According to the third gesture of the user selecting the last object on the current page, the Y-axis coordinates of the first row of the first object group are assigned to the Y-axis coordinates of the last object selected in the current page, so that the last object is located The row moves to the first row of the first object group and displays the next page of the current page;
获取第一手势对第一对象组中位于下一页面的至少部分对象的触发时间。The trigger time of the first gesture on at least some of the objects located on the next page in the first object group is acquired.
其中,根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除,具体包括:Wherein, according to the second gesture, the display area is hidden, and multiple objects to be hidden in the first object group are deleted, specifically including:
若没有检测到第一手势对应的第一触屏点,则获取用户输入的第二手势;If the first touch screen point corresponding to the first gesture is not detected, then acquire the second gesture input by the user;
根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。According to the second gesture, the display area is hidden, and multiple objects to be hidden in the first object group are deleted.
其中,根据第一手势和第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除,具体包括:Wherein, according to the first gesture and the second gesture, the display area is hidden, and multiple objects to be hidden in the first object group are deleted, specifically including:
若检测到第一手势对应的第一触屏点,且检测到第二手势对应的第二触屏点,则根据第一手势和第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。If the first touch screen point corresponding to the first gesture is detected, and the second touch screen point corresponding to the second gesture is detected, the display area is hidden according to the first gesture and the second gesture, and the first touch screen point is hidden. Multiple objects to be hidden in the object group are deleted.
其中,在对第一对象组中的多个待隐藏的对象进行删除之前,方法还包括:Wherein, before deleting the multiple objects to be hidden in the first object group, the method further includes:
记录第一对象组中各对象的顺序;recording the order of the objects in the first object group;
相应地,在对第一对象组中的多个待隐藏的对象进行删除之后,方法还包括:Correspondingly, after deleting the multiple objects to be hidden in the first object group, the method further includes:
根据删除多个待隐藏的对象之前的顺序,对第一对象组中剩下的对象进行重新排序。Reordering the remaining objects in the first object group according to the order before deleting the plurality of objects to be hidden.
其中,方法还包括:Among them, the method also includes:
将第一对象组中确定的多个待隐藏的对象中每一个对象上标记第二图形标识。Each of the plurality of objects to be hidden determined in the first object group is marked with a second graphic identifier.
其中,方法还包括:Among them, the method also includes:
检测确定的待隐藏的对象的第二图形标识是否超出该待隐藏的对象所在的第一区域、且位于其他对象所在的第二区域内;Detecting whether the determined second graphic identification of the object to be hidden exceeds the first area where the object to be hidden is located and is located in a second area where other objects are located;
若确定的待隐藏的对象的第二图形标识超出第一区域、且位于第二区域内,则将第一区域对应的待隐藏的对象从第二对象组中删除,并确定第二区域所对应的对象为待隐藏的对象,并将第二区域所对应的对象复制至第二对象组中。If the determined second graphic identification of the object to be hidden exceeds the first area and is located in the second area, delete the object to be hidden corresponding to the first area from the second object group, and determine the corresponding The object in is the object to be hidden, and the object corresponding to the second area is copied to the second object group.
其中,方法还包括:Among them, the method also includes:
检测确定的待隐藏的对象的第二图形标识是否超出待隐藏的对象所在的第一区域;Detecting whether the determined second graphic identification of the object to be hidden exceeds the first area where the object to be hidden is located;
若确定的待隐藏的对象的第二图形标识超出待隐藏的对象所在的第一区域,则将第一区域对应的待隐藏的对象从第二对象组中删除;或者If the determined second graphic identification of the object to be hidden exceeds the first area where the object to be hidden is located, the object to be hidden corresponding to the first area is deleted from the second object group; or
根据在显示区域中输入的第四手势,显示第二对象组中的待隐藏的对象的第一图形标识;According to the fourth gesture input in the display area, display the first graphic identification of the object to be hidden in the second object group;
根据对第二对象组中的待隐藏的对象输入的第五手势,从待隐藏的对象中确定出需要恢复的对象,并将需要恢复的对象从第二对象组中删除。According to the fifth gesture input to the object to be hidden in the second object group, the object to be restored is determined from the objects to be hidden, and the object to be restored is deleted from the second object group.
本发明的实施例还提供了一基于种手势隐藏多个对象的装置,应用于电子设备,该装置包括:Embodiments of the present invention also provide a device for hiding multiple objects based on a gesture, which is applied to electronic equipment, and the device includes:
确定模块,用于根据触发时间和滑动轨迹,从第一对象组中确定多个待隐藏的对象;A determining module, configured to determine a plurality of objects to be hidden from the first object group according to the trigger time and the sliding track;
创建模块,用于创建显示区域和第二对象组,将确定的多个待隐藏的对象复制到第二对象组中,并在显示区域中显示第二对象组中每个对象的第一图形标识;A creating module, configured to create a display area and a second object group, copy the determined multiple objects to be hidden to the second object group, and display the first graphic identification of each object in the second object group in the display area ;
第一隐藏模块,用于根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。The first hiding module is configured to hide the display area according to the first gesture and the second gesture, or according to the second gesture, and delete a plurality of objects to be hidden in the first object group.
其中,确定模块包括:Among them, the determination module includes:
第一获取单元,用于获取第一手势对第一对象组中至少部分对象的触发时间;A first acquisition unit, configured to acquire the trigger time of the first gesture on at least some objects in the first object group;
确定单元,用于若至少部分对象中的多个对象的触发时间大于预先设置的单击时间,以及至少部分对象中的多个对象的触发时间大于第一手势滑过其他对象的时间,则根据第一手势的滑动轨迹确定至少部分对象中的多个对象的位置,并将至少部分对象中的多个对象确定为多个待隐藏的对象。The determining unit is configured to: if the triggering time of at least some of the objects in a plurality of objects is greater than the preset click time, and the triggering time of at least a plurality of objects in the part of the objects is greater than the time when the first gesture slides over other objects, then according to The sliding track of the first gesture determines the positions of at least some of the objects in the objects, and determines the multiple objects in the at least some of the objects as the objects to be hidden.
其中,第一获取单元包括:Wherein, the first acquisition unit includes:
第一获取子单元,用于获取第一手势对第一对象组中位于当前页面的至少部分对象的触发时间;The first acquiring subunit is configured to acquire the triggering time of the first gesture on at least some of the objects in the first object group on the current page;
赋值子单元,用于根据用户选中当前页面的最后一个对象的第三手势,将第一对象组的首行的Y轴坐标赋值给在当前页面中被选中的最后一个对象的Y轴坐标,以将最后一个对象所在的行移动至第一对象组的首行,并显示当前页面的下一页面;The assignment subunit is used to assign the Y-axis coordinates of the first row of the first object group to the Y-axis coordinates of the last object selected in the current page according to the third gesture of the user selecting the last object on the current page, so as to Move the row where the last object is located to the first row of the first object group, and display the next page of the current page;
第二获取子单元,用于获取第一手势对第一对象组中位于下一页面的至少部分对象的触发时间。The second obtaining subunit is configured to obtain the triggering time of the first gesture on at least some of the objects located on the next page in the first object group.
其中,第一隐藏模块包括:Wherein, the first hidden module includes:
第二获取单元,用于若没有检测到第一手势对应的第一触屏点,则获取用户输入的第二手势;The second acquisition unit is configured to acquire a second gesture input by the user if the first touch screen point corresponding to the first gesture is not detected;
第一隐藏单元,用于根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。The first hiding unit is configured to hide the display area according to the second gesture, and delete a plurality of objects to be hidden in the first object group.
其中,第一隐藏模块包括:Wherein, the first hidden module includes:
第二隐藏单元,用于若检测到第一手势对应的第一触屏点,且检测到第二手势对应的第二触屏点,则根据第一手势和第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。The second hidden unit is configured to, if the first touch screen point corresponding to the first gesture is detected, and the second touch screen point corresponding to the second gesture is detected, according to the first gesture and the second gesture, the display area Hiding is performed, and multiple objects to be hidden in the first object group are deleted.
其中,装置还包括:Among them, the device also includes:
记录模块,用于记录第一对象组中各对象的顺序;A recording module, configured to record the order of the objects in the first object group;
排序模块,用于根据删除多个待隐藏的对象之前的顺序,对第一对象组中剩下的对象进行重新排序。A sorting module, configured to reorder the remaining objects in the first object group according to the sequence before deleting the multiple objects to be hidden.
其中,装置还包括:Among them, the device also includes:
标记模块,用于将第一对象组中确定的多个待隐藏的对象中每一个对象上标记第二图形标识。A marking module, configured to mark a second graphic mark on each of the plurality of objects to be hidden determined in the first object group.
其中,装置还包括:Among them, the device also includes:
第一检测模块,用于检测确定的待隐藏的对象的第二图形标识是否超出该待隐藏的对象所在的第一区域、且位于其他对象所在的第二区域内,并若确定的待隐藏的对象的第二图形标识超出第一区域、且位于第二区域内,则触发第一删除模块;The first detection module is used to detect whether the second graphic identification of the determined object to be hidden exceeds the first area where the object to be hidden is located and is located in the second area where other objects are located, and if the determined to be hidden object The second graphic identification of the object exceeds the first area and is located in the second area, triggering the first deletion module;
第一删除模块,用于根据第一检测模块的触发,将第一区域对应的待隐藏的对象从第二对象组中删除,并确定第二区域所对应的对象为待隐藏的对象,并将第二区域所对应的对象复制至第二对象组中。The first deletion module is configured to delete the object to be hidden corresponding to the first area from the second object group according to the trigger of the first detection module, and determine that the object corresponding to the second area is the object to be hidden, and The objects corresponding to the second area are copied to the second object group.
其中,装置还包括:Among them, the device also includes:
第二检测模块,用于检测确定的待隐藏的对象的第二图形标识是否超出待隐藏的对象所在的第一区域,并若确定的待隐藏的对象的第二图形标识超出待隐藏的对象所在的第一区域,则触发第二删除模块;The second detection module is used to detect whether the determined second graphic identification of the object to be hidden exceeds the first area where the object to be hidden is located, and if the determined second graphic identification of the object to be hidden exceeds the location of the object to be hidden triggers the second deletion module;
第二删除模块,用于根据第二检测模块的触发,将第一区域对应的待隐藏的对象从第二对象组中删除;或者The second deletion module is configured to delete the object to be hidden corresponding to the first area from the second object group according to the trigger of the second detection module; or
第一显示模块,用于根据在显示区域中输入的第四手势,显示第二对象组中的待隐藏的对象的第一图形标识;The first display module is configured to display the first graphic identification of the object to be hidden in the second object group according to the fourth gesture input in the display area;
恢复模块,用于根据对第二对象组中的待隐藏的对象输入的第五手势,从待隐藏的对象中确定出需要恢复的对象,并将需要恢复的对象从第二对象组中删除。The restoration module is configured to determine the object to be restored from the objects to be hidden according to the fifth gesture input to the object to be hidden in the second object group, and delete the object to be restored from the second object group.
本发明的实施例还提供了一种恢复显示的方法,应用于电子设备,该方法包括:An embodiment of the present invention also provides a method for restoring display, which is applied to an electronic device, and the method includes:
根据第六手势,显示显示区域,显示区域中设置有第二对象组需要隐藏的对象的第一图形标识;According to the sixth gesture, the display area is displayed, and the first graphic identification of the object to be hidden in the second object group is set in the display area;
根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并删除第二对象组。According to the seventh gesture, a plurality of objects corresponding to the first graphic identifier set in the display area are copied from the second object group to the first object group, and the second object group is deleted.
其中,在根据第六手势,显示显示区域之前,方法还包括:Wherein, before displaying the display area according to the sixth gesture, the method further includes:
根据第八手势,隐藏电子设备的显示屏的标题栏;According to the eighth gesture, hiding the title bar of the display screen of the electronic device;
若第九手势与预先设置的启动手势匹配,则获取第六手势,并进入根据第六手势,显示显示区域的步骤。If the ninth gesture matches the preset starting gesture, the sixth gesture is obtained, and the step of displaying the display area according to the sixth gesture is entered.
其中,根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,具体为:Wherein, according to the seventh gesture, a plurality of objects corresponding to the first graphic identification set in the display area are copied from the second object group to the first object group, specifically:
根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并按照隐藏之前的顺序插入到第一对象组。According to the seventh gesture, multiple objects corresponding to the first graphic identifier set in the display area are copied from the second object group to the first object group, and inserted into the first object group in the order before hiding.
本发明的实施例还提供了一种恢复显示的装置,应用于电子设备,该装置包括:Embodiments of the present invention also provide a device for restoring display, which is applied to electronic equipment, and the device includes:
第二显示模块,用于根据第六手势,显示显示区域,显示区域中设置有第二对象组需要隐藏的对象的第一图形标识;The second display module is configured to display a display area according to the sixth gesture, where the first graphic identification of the object to be hidden in the second object group is set in the display area;
复制模块,用于根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并删除第二对象组。The copy module is configured to copy a plurality of objects corresponding to the first graphic identifier set in the display area from the second object group to the first object group according to the seventh gesture, and delete the second object group.
其中,装置还包括:Among them, the device also includes:
第二隐藏模块,用于根据第八手势,隐藏电子设备的显示屏的标题栏;The second hiding module is used to hide the title bar of the display screen of the electronic device according to the eighth gesture;
匹配模块,用于若第九手势与预先设置的启动手势匹配,则获取第六手势,并触发第二显示模块根据第六手势,显示显示区域。The matching module is configured to acquire the sixth gesture if the ninth gesture matches the preset starting gesture, and trigger the second display module to display the display area according to the sixth gesture.
其中,复制模块包括:Among them, the replication module includes:
复制单元,用于根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并按照隐藏之前的顺序插入到第一对象组。The copying unit is configured to copy a plurality of objects corresponding to the first graphic identification set in the display area from the second object group to the first object group according to the seventh gesture, and insert them into the first object group in the order before hiding object group.
本发明的上述方案至少包括以下有益效果:Above-mentioned scheme of the present invention comprises following beneficial effect at least:
在本发明的实施例中,通过触发时间和滑动轨迹,从第一对象组中确定出多个待隐藏的对象,并将确定出的多个待隐藏的对象复制到创建的第二对象组中,同时在创建的显示区域中显示第二对象组中每个对象的第一图形标识,最后根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并删除第一对象组中的多个待隐藏的对象,解决了不能对最小单元的文件进行隐藏的问题,达到了方便、快捷高效的对最小单元的文件进行隐藏的效果。In the embodiment of the present invention, a plurality of objects to be hidden are determined from the first object group by triggering time and sliding track, and the determined plurality of objects to be hidden are copied to the created second object group , and at the same time display the first graphic identifier of each object in the second object group in the created display area, and finally hide the display area according to the first gesture and the second gesture, or according to the second gesture, and delete the second gesture Multiple objects to be hidden in an object group solves the problem that the file of the smallest unit cannot be hidden, and achieves the effect of hiding the file of the smallest unit conveniently, quickly and efficiently.
附图说明Description of drawings
图1为本发明第一实施例中基于手势隐藏多个对象的方法的流程图;1 is a flowchart of a method for hiding multiple objects based on gestures in the first embodiment of the present invention;
图2为本发明第一实施例中用户选择待隐藏的对象、且对选择的对象进行隐藏时的示意图;Fig. 2 is a schematic diagram when a user selects an object to be hidden and hides the selected object in the first embodiment of the present invention;
图3为本发明第一实施例中用户选择待隐藏的对象时的示意图;Fig. 3 is a schematic diagram when a user selects an object to be hidden in the first embodiment of the present invention;
图4为本发明第一实施例中用户修改待隐藏的对象时的示意图;FIG. 4 is a schematic diagram of when a user modifies an object to be hidden in the first embodiment of the present invention;
图5为本发明第一实施例中取消待隐藏的对象时的示意图;FIG. 5 is a schematic diagram of canceling an object to be hidden in the first embodiment of the present invention;
图6为本发明第一实施例中恢复待隐藏的对象时的示意图;FIG. 6 is a schematic diagram of restoring an object to be hidden in the first embodiment of the present invention;
图7为本发明第二实施例中基于手势隐藏多个对象的装置的结构示意图;7 is a schematic structural diagram of a device for hiding multiple objects based on gestures in the second embodiment of the present invention;
图8为本发明第三实施例中恢复显示的方法的流程图;Fig. 8 is a flowchart of a method for restoring display in the third embodiment of the present invention;
图9为本发明第三实施例中用户恢复显示隐藏的对象的示意图;FIG. 9 is a schematic diagram of a user recovering and displaying hidden objects in the third embodiment of the present invention;
图10为本发明第四实施例中恢复显示的装置的结构示意图。Fig. 10 is a schematic structural diagram of an apparatus for restoring display in a fourth embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
第一实施例first embodiment
如图1所示,本发明的第一实施例提供了一种基于手势隐藏多个对象的方法,应用于电子设备(例如智能手机、平板电脑、笔记本电脑等),其中该方法包括:As shown in Figure 1, the first embodiment of the present invention provides a method for hiding multiple objects based on gestures, which is applied to electronic devices (such as smart phones, tablet computers, notebook computers, etc.), wherein the method includes:
步骤S11,根据触发时间和滑动轨迹,从第一对象组中确定多个待隐藏的对象;Step S11, according to the trigger time and the sliding track, determine a plurality of objects to be hidden from the first object group;
在本发明的第一实施例中,上述对象可以是最小单元的文件,例如图片库中的一张照片、excel中的一个单元格等。In the first embodiment of the present invention, the above-mentioned object may be a file of the smallest unit, such as a photo in a picture library, a cell in an excel, and the like.
步骤S12,创建显示区域和第二对象组,将确定的多个待隐藏的对象复制到第二对象组中,并在显示区域中显示第二对象组中每个对象的第一图形标识;Step S12, creating a display area and a second object group, copying the determined plurality of objects to be hidden into the second object group, and displaying the first graphic identification of each object in the second object group in the display area;
在本发明的第一实施例中,上述第二对象组可以是一个有序数组。In the first embodiment of the present invention, the above-mentioned second object group may be an ordered array.
在本发明的第一实施例中,上述显示区域位于电子设备的屏幕上,例如屏幕的顶部,其主要用于显示第二对象组中每个对象的第一图形标识,例如缩略图等,以便于让用户清楚的知道已选的待隐藏的对象。In the first embodiment of the present invention, the above-mentioned display area is located on the screen of the electronic device, such as the top of the screen, and it is mainly used to display the first graphic identification of each object in the second object group, such as a thumbnail, so that To let the user clearly know the selected object to be hidden.
步骤S13,根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。Step S13 , according to the first gesture and the second gesture, or according to the second gesture, hide the display area, and delete a plurality of objects to be hidden in the first object group.
在本发明的第一实施例中,在对显示区域进行隐藏之后,电子设备的屏幕顶部会出现粗线或者两条细线,以提示用户还有隐藏的对象。可以理解的是,在本发明的第一实施例中,不限定第一手势和第二手势的具体形式。In the first embodiment of the present invention, after the display area is hidden, a thick line or two thin lines will appear on the top of the screen of the electronic device to remind the user that there are hidden objects. It can be understood that, in the first embodiment of the present invention, specific forms of the first gesture and the second gesture are not limited.
在本发明的第一实施例中,通过触发时间和滑动轨迹,从第一对象组中确定出多个待隐藏的对象,并将确定出的多个待隐藏的对象复制到创建的第二对象组中,同时在创建的显示区域中显示第二对象组中每个对象的第一图形标识,最后根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并删除第一对象组和电子设备的屏幕中的多个待隐藏的对象,从而方便、快捷高效的完成对多个待隐藏的对象的隐藏操作。In the first embodiment of the present invention, a plurality of objects to be hidden is determined from the first object group by triggering time and sliding track, and the determined plurality of objects to be hidden is copied to the created second object group, simultaneously display the first graphic identification of each object in the second object group in the created display area, and finally hide the display area according to the first gesture and the second gesture, or according to the second gesture, and The multiple objects to be hidden in the first object group and the screen of the electronic device are deleted, thereby completing the hiding operation on the multiple objects to be hidden conveniently, quickly and efficiently.
具体地,在用户的使用过程中,如图2所示,可以打开第一对象组,通过第一手势的第一触屏点(例如单指触屏点)长按需要隐藏的对象(例如对象1)将其选中(需要说明的是,长按的时间需大于单击的时间和滑过其他对象的时间),紧接着继续滑动,选中下一个需要隐藏的对象(例如对象3和10),直至所有需要隐藏的对象都被选中。Specifically, during the user's use, as shown in FIG. 2 , the first object group can be opened, and the object to be hidden (such as the object 1) Select it (it should be noted that the long press time must be greater than the time of clicking and sliding over other objects), and then continue to slide to select the next object to be hidden (such as object 3 and 10), Until all objects to be hidden are selected.
其中,在本发明的第一实施例中,上述步骤S11具体包括:首先获取第一手势对第一对象组中至少部分对象的触发时间;然后检测第一手势对第一对象组中至少部分对象的触发时间的长短,若至少部分对象中的多个对象的触发时间大于预先设置的单击时间,以及至少部分对象中的多个对象的触发时间大于第一手势滑过其他对象的时间,则根据第一手势的滑动轨迹确定至少部分对象中的多个对象的位置,并将至少部分对象中的多个对象确定为多个待隐藏的对象。Wherein, in the first embodiment of the present invention, the above-mentioned step S11 specifically includes: first acquiring the triggering time of the first gesture on at least some objects in the first object group; and then detecting the triggering time of the first gesture on at least some objects in the first object group If the trigger time of at least some of the objects is greater than the preset click time, and the trigger time of at least some of the objects is greater than the time when the first gesture slides over other objects, then Positions of multiple objects in at least some of the objects are determined according to the sliding track of the first gesture, and multiple objects in at least some of the objects are determined as multiple objects to be hidden.
其中,当第一对象组中至少部分对象位于同一页面时,获取第一手势对第一对象组中至少部分对象的触发时间的具体步骤为:直接获取所述第一手势对第一对象组中位于同一页面的至少部分对象的触发时间。而当第一对象组中至少部分对象位于不同页面时,获取第一手势对第一对象组中至少部分对象的触发时间的具体步骤包括:首先获取第一手势对第一对象组中位于当前页面的至少部分对象的触发时间;然后根据用户选中当前页面的最后一个对象的第三手势,将第一对象组的首行的Y轴坐标赋值给在当前页面中被选中的最后一个对象的Y轴坐标,以将最后一个对象所在的行移动至第一对象组的首行,并显示当前页面的下一页面;最后获取第一手势对第一对象组中位于下一页面的至少部分对象的触发时间,直至第一对象组中的待隐藏的对象全被选中。Wherein, when at least some of the objects in the first object group are located on the same page, the specific steps of obtaining the trigger time of the first gesture for at least some of the objects in the first object group are: directly obtain the triggering time of the first gesture for at least some of the objects in the first object group. Fire time for at least some of the objects on the same page. And when at least some of the objects in the first object group are located on different pages, the specific steps of obtaining the trigger time of the first gesture for at least some of the objects in the first object group include: first obtaining the triggering time of the first gesture for at least some of the objects in the first object group The trigger time of at least some of the objects; then according to the third gesture of the user selecting the last object on the current page, assign the Y-axis coordinates of the first row of the first object group to the Y-axis of the last object selected on the current page coordinates, so as to move the row where the last object is located to the first row of the first object group, and display the next page of the current page; finally obtain the trigger of the first gesture on at least some objects on the next page in the first object group time until all the objects to be hidden in the first object group are selected.
具体地,在用户的使用过程中,如图3所示,假设用户在当前页面选择的对象为1、3以及10,其中对象10为最后一个对象,而当用户需要选择位于当前页面的下一个页面中的对象时,只需要第一手势的第一触屏点不离开屏幕,继续向下一个页面的方向移动(具体的移动的方向取决于对象的呈现方式,若对象的呈现方式为纵向呈现的话,应该向屏幕的底部滑动)即可呈现位于下一个页面中的对象,以供用户继续选择待隐藏的对象(如图2中的对象17)。Specifically, during the user's use, as shown in Figure 3, suppose that the objects selected by the user on the current page are 1, 3, and 10, wherein object 10 is the last object, and when the user needs to select the next For an object on a page, only the first touch point of the first gesture needs to keep moving to the next page without leaving the screen (the specific direction of movement depends on the object’s presentation mode, if the object’s presentation mode is vertical Then, slide to the bottom of the screen) to present the object on the next page, for the user to continue to select the object to be hidden (like object 17 in Figure 2).
其中,在本发明的第一实施例中,上述步骤S13的方式主要有两种。Wherein, in the first embodiment of the present invention, there are mainly two ways of the above step S13.
方式一、首先检测电子设备的屏幕上是否存在第一手势对应的第一触屏点,例如单指触屏点,若没有检测到第一手势对应的第一触屏点,则获取用户输入的第二手势,例如如图2所示的双指触屏同时向上滑动(假设对象的呈现方式为纵向呈现)、单指从屏幕底部滑到屏幕顶部(假设对象的呈现方式为纵向呈现)等;并根据第二手势,对显示区域进行隐藏,并对第一对象组和屏幕中的多个待隐藏的对象进行删除。Method 1. First, detect whether there is a first touch screen point corresponding to the first gesture on the screen of the electronic device, such as a single-finger touch screen point. If the first touch screen point corresponding to the first gesture is not detected, obtain the user input The second gesture, for example, as shown in Figure 2, sliding upwards while touching the screen with two fingers (assuming that the object is presented in a vertical manner), sliding with one finger from the bottom of the screen to the top of the screen (assuming that the object is presented in a vertical manner), etc. ; and according to the second gesture, hide the display area, and delete the first object group and multiple objects to be hidden in the screen.
方式二、首先检测电子设备的屏幕上是否存在第一手势对应的第一触屏点,例如单指触屏点,若检测到第一手势对应的第一触屏点,且检测到第二手势对应的第二触屏点,例如另一个手指的触屏点,则根据第一手势和第二手势(例如如图2所示的双指触屏同时向上滑动),对显示区域进行隐藏,并对第一对象组和屏幕中的多个待隐藏的对象进行删除。Method 2. First, detect whether there is a first touch screen point corresponding to the first gesture on the screen of the electronic device, such as a single-finger touch screen point. If the first touch screen point corresponding to the first gesture is detected, and the second hand is detected The second touch screen point corresponding to the gesture, such as the touch screen point of another finger, hides the display area according to the first gesture and the second gesture (for example, the two-finger touch screen slides upward at the same time as shown in Figure 2). , and delete the first object group and multiple objects to be hidden in the screen.
其中,在本发明的第一实施例中,在执行完步骤S13中的对第一对象组中的多个待隐藏的对象进行删除之前,上述方法还包括:记录第一对象组中各对象的顺序(即在删除多个待隐藏的对象之前,第一对象组中各对象的顺序),相应地,在执行完步骤S13之后,上述方法还包括:根据删除多个待隐藏的对象之前的顺序,对第一对象组中剩下的对象进行重新排序,并在电子设备的屏幕上按重新排序后的顺序显示第一对象组中剩下的对象。Wherein, in the first embodiment of the present invention, before performing the step S13 of deleting a plurality of objects to be hidden in the first object group, the above method further includes: recording the information of each object in the first object group order (that is, before deleting a plurality of objects to be hidden, the order of each object in the first object group), correspondingly, after step S13 is performed, the above method further includes: according to the order before deleting a plurality of objects to be hidden , reordering the remaining objects in the first object group, and displaying the remaining objects in the first object group in the reordered order on the screen of the electronic device.
其中,在本发明的第一实施例中,在执行步骤S11时,会将第一对象组中确定的多个待隐藏的对象中每一个对象上标记第二图形标识。而在确定出多个待隐藏的对象后,会通过连接线将相邻的两个待隐藏的对象连接起来,以便用户清楚的知道选择待隐藏的对象时的先后顺序,便于进行后续操作。Wherein, in the first embodiment of the present invention, when step S11 is executed, each of the plurality of objects to be hidden determined in the first object group is marked with a second graphic mark. After a plurality of objects to be hidden are determined, two adjacent objects to be hidden will be connected by connecting lines, so that the user can clearly know the sequence of selecting the objects to be hidden, and facilitate subsequent operations.
其中,在本发明的第一实施例中,上述方法还包括:检测确定的待隐藏的对象的第二图形标识是否超出该待隐藏的对象所在的第一区域、且位于其他对象所在的第二区域内;若确定的待隐藏的对象的第二图形标识超出第一区域、且位于第二区域内,则将第一区域对应的待隐藏的对象从第二对象组中删除,并确定第二区域所对应的对象为待隐藏的对象,并将第二区域所对应的对象复制至第二对象组中,同时显示区域中显示的第一区域对应的待隐藏的对象的第一图形标识也会替换成第二区域所对应的对象的第一图形标识。Wherein, in the first embodiment of the present invention, the above method further includes: detecting whether the determined second graphic identification of the object to be hidden exceeds the first area where the object to be hidden is located and is located in the second area where other objects are located. within the area; if the second graphic identification of the determined object to be hidden exceeds the first area and is located in the second area, then the object to be hidden corresponding to the first area is deleted from the second object group, and the second The object corresponding to the area is the object to be hidden, and the object corresponding to the second area is copied to the second object group, and at the same time, the first graphic identification of the object to be hidden corresponding to the first area displayed in the display area will also be hidden. It is replaced with the first graphic identifier of the object corresponding to the second area.
具体地,在用户的使用过程中,如图4所示,当用户需要将之前选择的待隐藏的对象3修改成对象8时,只需要将位于对象3所在的第一区域内的第二图形标识滑动至对象8所在的第二区域内即可。Specifically, during the user's use, as shown in FIG. 4 , when the user needs to modify the previously selected object 3 to be hidden to object 8, only the second graphic located in the first area where the object 3 is located needs to be modified. Just slide the logo into the second area where the object 8 is located.
其中,在本发明的第一实施例中,上述方法还包括:检测确定的待隐藏的对象的第二图形标识是否超出待隐藏的对象所在的第一区域;若确定的待隐藏的对象的第二图形标识超出待隐藏的对象所在的第一区域,则将第一区域对应的待隐藏的对象从第二对象组中删除,并删除显示区域中显示的第一区域对应的待隐藏的对象的第一图形标识。同时还会删除与第一区域内的第二图形标识相连的两根连接线,并将与第一区域对应的待隐藏的对象相邻的两个待隐藏的对象对应的第二图形标识用连接线连接。Wherein, in the first embodiment of the present invention, the above method further includes: detecting whether the second graphic identification of the determined object to be hidden exceeds the first area where the object to be hidden is located; If the graphic mark exceeds the first area where the object to be hidden is located, the object to be hidden corresponding to the first area is deleted from the second object group, and the object to be hidden corresponding to the first area displayed in the display area is deleted. First graphic identity. At the same time, the two connection lines connected with the second graphic identification in the first area will be deleted, and the second graphic identification corresponding to the two objects to be hidden adjacent to the object to be hidden corresponding to the first area will be connected with line connection.
具体地,在用户的使用过程中,如图5所示,当用户需要取消对对象3的隐藏处理时,只需要将对象3对应的第二图形标识滑出对象3所在的第一区域即可。Specifically, during the user's use, as shown in Figure 5, when the user needs to cancel the hiding process of the object 3, the user only needs to slide the second graphic identification corresponding to the object 3 out of the first area where the object 3 is located. .
其中,在本发明的第一实施例中,上述方法还包括:根据在显示区域中输入的第四手势(例如单击),显示第二对象组中的待隐藏的对象的第一图形标识;根据对第二对象组中的待隐藏的对象输入的第五手势(例如长按),从待隐藏的对象中确定出需要恢复的对象,并将需要恢复的对象从第二对象组中删除,同时在显示区域中删除需要恢复的对象的第一图形标识。Wherein, in the first embodiment of the present invention, the above method further includes: according to the fourth gesture input in the display area (for example, click), displaying the first graphic identification of the object to be hidden in the second object group; According to the fifth gesture (for example, long press) input to the object to be hidden in the second object group, the object to be restored is determined from the objects to be hidden, and the object to be restored is deleted from the second object group, At the same time, the first graphic identification of the object to be restored is deleted in the display area.
具体地,在用户的使用过程中,如图6所示,当用户需要恢复对对象3时,可单击显示区域,显示第二对象组中的待隐藏的对象(例如对象1、3以及10)的第一图形标识,然后长按显示区域中对象3的第一图形标识,此时,电子设备的屏幕上会弹出“确定恢复该对象”的指令,这时用户只需要单击“确认”便可以恢复对象3。Specifically, during the user's use, as shown in FIG. 6, when the user needs to restore the object 3, the user can click the display area to display the objects to be hidden in the second object group (for example, objects 1, 3 and 10 ), and then press and hold the first graphic logo of object 3 in the display area. At this time, an instruction "OK to restore this object" will pop up on the screen of the electronic device. At this time, the user only needs to click "Confirm". Object 3 can then be restored.
其中,在本发明的第一实施例中,上述方法还包括:首先根据用户输入的第六手势(例如双指在屏幕的任意位置向下滑动),显示显示区域,且该显示区域中设置有第二对象组需要隐藏的对象的第一图形标识;然后再根据用户输入的第七手势(例如双指在屏幕的任意位置向下滑动),将与显示区域中设置的第一图形标识对应的对象从第二对象组中复制到第一对象组中,并删除第二对象组。从而简单、快速的恢复对隐藏的对象的显示,可以理解的是,并不限定第六手势和第七手势的具体形式。Wherein, in the first embodiment of the present invention, the above method further includes: first, according to the sixth gesture input by the user (for example, two fingers slide down at any position on the screen), displaying the display area, and the display area is set with The second object group needs to hide the first graphic identification of the object; then according to the seventh gesture input by the user (for example, two fingers slide down at any position on the screen), the corresponding first graphic identification set in the display area will be Objects are copied from the second object group to the first object group, and the second object group is deleted. In order to restore the display of the hidden object simply and quickly, it can be understood that the specific forms of the sixth gesture and the seventh gesture are not limited.
第二实施例second embodiment
如图7所示,本发明的第二实施例提供了一种基于手势隐藏多个对象的装置,应用于电子设备,该装置包括:As shown in FIG. 7, the second embodiment of the present invention provides a device for hiding multiple objects based on gestures, which is applied to electronic equipment, and the device includes:
确定模块71,用于根据触发时间和滑动轨迹,从第一对象组中确定多个待隐藏的对象;A determining module 71, configured to determine a plurality of objects to be hidden from the first object group according to the trigger time and the sliding trajectory;
创建模块72,用于创建显示区域和第二对象组,将确定的多个待隐藏的对象复制到第二对象组中,并在显示区域中显示第二对象组中每个对象的第一图形标识;The creating module 72 is used to create a display area and a second object group, copy the determined multiple objects to be hidden to the second object group, and display the first graphic of each object in the second object group in the display area logo;
第一隐藏模块73,用于根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。The first hiding module 73 is configured to hide the display area according to the first gesture and the second gesture, or according to the second gesture, and delete a plurality of objects to be hidden in the first object group.
其中,确定模块71包括:Wherein, the determining module 71 includes:
第一获取单元,用于获取第一手势对第一对象组中至少部分对象的触发时间;A first acquisition unit, configured to acquire the trigger time of the first gesture on at least some objects in the first object group;
确定单元,用于若至少部分对象中的多个对象的触发时间大于预先设置的单击时间,以及至少部分对象中的多个对象的触发时间大于第一手势滑过其他对象的时间,则根据第一手势的滑动轨迹确定至少部分对象中的多个对象的位置,并将至少部分对象中的多个对象确定为多个待隐藏的对象。The determining unit is configured to: if the triggering time of at least some of the objects in a plurality of objects is greater than the preset click time, and the triggering time of at least a plurality of objects in the part of the objects is greater than the time when the first gesture slides over other objects, then according to The sliding track of the first gesture determines the positions of at least some of the objects in the objects, and determines the multiple objects in the at least some of the objects as the objects to be hidden.
其中,第一获取单元包括:Wherein, the first acquisition unit includes:
第一获取子单元,用于获取第一手势对第一对象组中位于当前页面的至少部分对象的触发时间;The first acquiring subunit is configured to acquire the triggering time of the first gesture on at least some of the objects in the first object group on the current page;
赋值子单元,用于根据用户选中当前页面的最后一个对象的第三手势,将第一对象组的首行的Y轴坐标赋值给在当前页面中被选中的最后一个对象的Y轴坐标,以将最后一个对象所在的行移动至第一对象组的首行,并显示当前页面的下一页面;The assignment subunit is used to assign the Y-axis coordinates of the first row of the first object group to the Y-axis coordinates of the last object selected in the current page according to the third gesture of the user selecting the last object on the current page, so as to Move the row where the last object is located to the first row of the first object group, and display the next page of the current page;
第二获取子单元,用于获取第一手势对第一对象组中位于下一页面的至少部分对象的触发时间。The second obtaining subunit is configured to obtain the triggering time of the first gesture on at least some of the objects located on the next page in the first object group.
其中,第一隐藏模块73包括:Wherein, the first hidden module 73 includes:
第二获取单元,用于若没有检测到第一手势对应的第一触屏点,则获取用户输入的第二手势;The second acquisition unit is configured to acquire a second gesture input by the user if the first touch screen point corresponding to the first gesture is not detected;
第一隐藏单元,用于根据第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。The first hiding unit is configured to hide the display area according to the second gesture, and delete a plurality of objects to be hidden in the first object group.
其中,第一隐藏模块包括:Wherein, the first hidden module includes:
第二隐藏单元,用于若检测到第一手势对应的第一触屏点,且检测到第二手势对应的第二触屏点,则根据第一手势和第二手势,对显示区域进行隐藏,并对第一对象组中的多个待隐藏的对象进行删除。The second hidden unit is configured to, if the first touch screen point corresponding to the first gesture is detected, and the second touch screen point corresponding to the second gesture is detected, according to the first gesture and the second gesture, the display area Hiding is performed, and multiple objects to be hidden in the first object group are deleted.
其中,装置还包括:Among them, the device also includes:
记录模块,用于记录第一对象组中各对象的顺序;A recording module, configured to record the order of the objects in the first object group;
排序模块,用于根据删除多个待隐藏的对象之前的顺序,对第一对象组中剩下的对象进行重新排序。A sorting module, configured to reorder the remaining objects in the first object group according to the sequence before deleting the multiple objects to be hidden.
其中,装置还包括:Among them, the device also includes:
标记模块,用于将第一对象组中确定的多个待隐藏的对象中每一个对象上标记第二图形标识。A marking module, configured to mark a second graphic mark on each of the plurality of objects to be hidden determined in the first object group.
其中,装置还包括:Among them, the device also includes:
第一检测模块,用于检测确定的待隐藏的对象的第二图形标识是否超出该待隐藏的对象所在的第一区域、且位于其他对象所在的第二区域内,并若确定的待隐藏的对象的第二图形标识超出第一区域、且位于第二区域内,则触发第一删除模块;The first detection module is used to detect whether the second graphic identification of the determined object to be hidden exceeds the first area where the object to be hidden is located and is located in the second area where other objects are located, and if the determined to be hidden object The second graphic identification of the object exceeds the first area and is located in the second area, triggering the first deletion module;
第一删除模块,用于根据第一检测模块的触发,将第一区域对应的待隐藏的对象从第二对象组中删除,并确定第二区域所对应的对象为待隐藏的对象,并将第二区域所对应的对象复制至第二对象组中。The first deletion module is configured to delete the object to be hidden corresponding to the first area from the second object group according to the trigger of the first detection module, and determine that the object corresponding to the second area is the object to be hidden, and The objects corresponding to the second area are copied to the second object group.
其中,装置还包括:Among them, the device also includes:
第二检测模块,用于检测确定的待隐藏的对象的第二图形标识是否超出待隐藏的对象所在的第一区域,并若确定的待隐藏的对象的第二图形标识超出待隐藏的对象所在的第一区域,则触发第二删除模块;The second detection module is used to detect whether the determined second graphic identification of the object to be hidden exceeds the first area where the object to be hidden is located, and if the determined second graphic identification of the object to be hidden exceeds the location of the object to be hidden triggers the second deletion module;
第二删除模块,用于根据第二检测模块的触发,将第一区域对应的待隐藏的对象从第二对象组中删除;或者The second deletion module is configured to delete the object to be hidden corresponding to the first area from the second object group according to the trigger of the second detection module; or
第一显示模块,用于根据在显示区域中输入的第四手势,显示第二对象组中的待隐藏的对象的第一图形标识;The first display module is configured to display the first graphic identification of the object to be hidden in the second object group according to the fourth gesture input in the display area;
恢复模块,用于根据对第二对象组中的待隐藏的对象输入的第五手势,从待隐藏的对象中确定出需要恢复的对象,并将需要恢复的对象从第二对象组中删除。The restoration module is configured to determine the object to be restored from the objects to be hidden according to the fifth gesture input to the object to be hidden in the second object group, and delete the object to be restored from the second object group.
在本发明的第二实施例中,通过触发时间和滑动轨迹,从第一对象组中确定出多个待隐藏的对象,并将确定出的多个待隐藏的对象复制到创建的第二对象组中,同时在创建的显示区域中显示第二对象组中每个对象的第一图形标识,最后根据第一手势和第二手势,或者根据第二手势,对显示区域进行隐藏,并删除第一对象组和电子设备的屏幕中的多个待隐藏的对象,从而方便、快捷高效的完成对多个待隐藏的对象的隐藏操作。In the second embodiment of the present invention, a plurality of objects to be hidden is determined from the first object group by triggering time and sliding track, and the determined plurality of objects to be hidden is copied to the created second object group, simultaneously display the first graphic identification of each object in the second object group in the created display area, and finally hide the display area according to the first gesture and the second gesture, or according to the second gesture, and The multiple objects to be hidden in the first object group and the screen of the electronic device are deleted, thereby completing the hiding operation on the multiple objects to be hidden conveniently, quickly and efficiently.
需要说明的是,本发明实施例提供的基于手势隐藏多个对象的装置是应用上述基于手势隐藏多个对象的方法的装置,即上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device for hiding multiple objects based on gestures provided by the embodiments of the present invention is a device that applies the above-mentioned method for hiding multiple objects based on gestures, that is, all embodiments of the above-mentioned methods are applicable to the device, and can achieve Same or similar beneficial effects.
第三实施例third embodiment
如图8所示,本发明的第三实施例提供了一种恢复显示的方法,应用于电子设备(例如智能手机、平板电脑、笔记本电脑等),该方法包括:As shown in FIG. 8, the third embodiment of the present invention provides a method for restoring display, which is applied to electronic devices (such as smart phones, tablet computers, notebook computers, etc.), and the method includes:
步骤S81,根据第六手势,显示显示区域,显示区域中设置有第二对象组需要隐藏的对象的第一图形标识;Step S81, according to the sixth gesture, display the display area, in which the first graphic identification of the object to be hidden in the second object group is set;
在本发明的第三实施例中,可以理解的是,在根据第六手势进行操作之前,该方法还包括:获取第六手势的步骤。In the third embodiment of the present invention, it can be understood that, before operating according to the sixth gesture, the method further includes: a step of acquiring the sixth gesture.
步骤S82,根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并删除第二对象组。Step S82, according to the seventh gesture, copy a plurality of objects corresponding to the first graphic identifier set in the display area from the second object group to the first object group, and delete the second object group.
在本发明的第三实施例中,可以理解的是,在根据第七手势进行操作之前,该方法还包括:获取第七手势的步骤。In the third embodiment of the present invention, it can be understood that, before operating according to the seventh gesture, the method further includes: a step of acquiring the seventh gesture.
在本发明的第三实施例中,可以按照隐藏之前的顺序将显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制并插入到第一对象组。In the third embodiment of the present invention, a plurality of objects corresponding to the first graphic identifier set in the display area may be copied from the second object group and inserted into the first object group in the order before hiding.
在本发明的第三实施例中,第六手势和第七手势都可以是双指在屏幕的任意位置向下滑动,可以理解的是,在本发明第三实施例中,并不限定第六手势和第七手势的具体形式。In the third embodiment of the present invention, both the sixth gesture and the seventh gesture can be two fingers sliding down at any position on the screen. It can be understood that in the third embodiment of the present invention, the sixth gesture is not limited. Specific forms of gestures and seventh gestures.
在本发明的第三实施例中,当用户需要恢复显示之前隐藏的对象时,只需要在待恢复显示的对象所在的界面输入第六手势(例如双指在屏幕的任意位置向下滑动),便可在屏幕上显示显示区域,且该显示区域中设置有第二对象组需要隐藏的对象的第一图形标识,继续输入第七手势(例如双指在屏幕的任意位置向下滑动),便可将显示区域中设置的第一图形标识对应的对象从第二对象组中复制到第一对象组中,并在屏幕中显示出来。从而简单、快速的恢复显示隐藏的对象。In the third embodiment of the present invention, when the user needs to restore the previously hidden object, he only needs to input the sixth gesture (for example, slide down with two fingers anywhere on the screen) on the interface where the object to be restored is located, Then the display area can be displayed on the screen, and the first graphic identification of the object to be hidden in the second object group is set in the display area, continue to input the seventh gesture (for example, two fingers slide down at any position on the screen), and then The object corresponding to the first graphic identifier set in the display area may be copied from the second object group to the first object group, and displayed on the screen. Thus simple and fast restoration of hidden objects.
其中,在本发明的第三实施例中,在执行步骤S81之前,上述方法还包括:首先根据第八手势(例如单击),隐藏电子设备的显示屏的标题栏;紧接着获取第九手势(例如双指从屏幕顶部滑至屏幕底部),若第九手势与预先设置的启动手势匹配,则获取第六手势,并进入根据第六手势,显示显示区域的步骤。Wherein, in the third embodiment of the present invention, before step S81 is performed, the above method further includes: first, according to the eighth gesture (for example, click), hide the title bar of the display screen of the electronic device; then acquire the ninth gesture (For example, two fingers slide from the top of the screen to the bottom of the screen), if the ninth gesture matches the preset starting gesture, the sixth gesture is obtained, and the step of displaying the display area is entered according to the sixth gesture.
在本发明的第三实施例中,在执行步骤S81之前增加与第八手势和第九手势相关的操作,可以有效地防止误碰。且可以理解的是,在根据第八手势进行操作之前,该方法还包括:获取第八手势的步骤。In the third embodiment of the present invention, adding operations related to the eighth gesture and the ninth gesture before performing step S81 can effectively prevent accidental touches. And it can be understood that, before operating according to the eighth gesture, the method further includes: a step of acquiring the eighth gesture.
具体地,在用户使用的过程中,如图9所示,当用户需要恢复显示之前隐藏的对象时,可以在待恢复显示的对象所在的界面输入第八手势(例如单击),隐藏电子设备的显示屏的标题栏,紧接着输入的第九手势(例如双指从屏幕顶部滑至屏幕底部)来启动后续手势的动作,然后再输入第六手势(例如双指在屏幕的任意位置向下滑动),便可在屏幕上显示显示区域,且该显示区域中设置有第二对象组需要隐藏的对象的第一图形标识,最后再输入第七手势(例如双指在屏幕的任意位置向下滑动),便可将显示区域中设置的第一图形标识对应的对象从第二对象组中复制到第一对象组中,并在屏幕中显示出来。从而简单、快速的恢复显示隐藏的对象。Specifically, during the user's use, as shown in FIG. 9, when the user needs to restore the previously hidden object, he can input an eighth gesture (for example, click) on the interface where the object to be restored is located, and hide the electronic device. The title bar of the display screen, followed by input of the ninth gesture (such as two fingers sliding from the top of the screen to the bottom of the screen) to start the action of the subsequent gesture, and then input the sixth gesture (such as two fingers down anywhere on the screen) sliding), the display area can be displayed on the screen, and the display area is provided with the first graphic identification of the object to be hidden in the second object group, and finally the seventh gesture (for example, two fingers pointing down at any position on the screen) slide), the object corresponding to the first graphic mark set in the display area can be copied from the second object group to the first object group, and displayed on the screen. Thus simple and fast restoration of hidden objects.
第四实施例Fourth embodiment
如图10所示,本发明的第四实施例提供了一种恢复显示的装置,应用于电子设备,该装置包括:As shown in FIG. 10, the fourth embodiment of the present invention provides a device for restoring display, which is applied to electronic equipment, and the device includes:
第二显示模块101,用于根据第六手势,显示显示区域,显示区域中设置有第二对象组需要隐藏的对象的第一图形标识;The second display module 101 is configured to display a display area according to the sixth gesture, where the first graphic identification of the object to be hidden in the second object group is set in the display area;
复制模块102,用于根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并删除第二对象组。The copying module 102 is configured to copy a plurality of objects corresponding to the first graphic identifier set in the display area from the second object group to the first object group according to the seventh gesture, and delete the second object group.
其中,装置还包括:Among them, the device also includes:
第二隐藏模块,用于根据第八手势,隐藏电子设备的显示屏的标题栏;The second hiding module is used to hide the title bar of the display screen of the electronic device according to the eighth gesture;
匹配模块,用于若用第九手势与预先设置的启动手势匹配,则获取用第六手势,并触发第二显示模块101根据第六手势,显示显示区域。The matching module is configured to acquire the sixth gesture if the ninth gesture matches the preset starting gesture, and trigger the second display module 101 to display the display area according to the sixth gesture.
其中,复制模块102包括:Wherein, the replication module 102 includes:
复制单元,用于根据第七手势,将与显示区域中设置的第一图形标识对应的多个对象从第二对象组中复制到第一对象组中,并按照隐藏之前的顺序插入到第一对象组。The copying unit is configured to copy a plurality of objects corresponding to the first graphic identification set in the display area from the second object group to the first object group according to the seventh gesture, and insert them into the first object group in the order before hiding object group.
在本发明的第四实施例中,当用户需要恢复显示之前隐藏的对象时,只需要在待恢复显示的对象所在的界面输入第六手势(例如双指在屏幕的任意位置向下滑动),便可在屏幕上显示显示区域,且该显示区域中设置有第二对象组需要隐藏的对象的第一图形标识,继续输入第七手势(例如双指在屏幕的任意位置向下滑动),便可将显示区域中设置的第一图形标识对应的对象从第二对象组中复制到第一对象组中,并在屏幕中显示出来。从而简单、快速的恢复显示隐藏的对象。In the fourth embodiment of the present invention, when the user needs to restore the previously hidden object, he only needs to input the sixth gesture on the interface where the object to be restored is located (for example, slide down with two fingers anywhere on the screen), Then the display area can be displayed on the screen, and the first graphic identification of the object to be hidden in the second object group is set in the display area, continue to input the seventh gesture (for example, two fingers slide down at any position on the screen), and then The object corresponding to the first graphic identifier set in the display area may be copied from the second object group to the first object group, and displayed on the screen. Thus simple and fast restoration of hidden objects.
需要说明的是,本发明实施例提供的恢复显示的装置是应用上述恢复显示的方法的装置,即上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device for resuming display provided by the embodiment of the present invention is a device applying the above method for resuming display, that is, all embodiments of the above method are applicable to the device, and can achieve the same or similar beneficial effects.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (24)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510415412.6A CN106354379B (en) | 2015-07-15 | 2015-07-15 | The method of multiple objects is hidden based on gesture, restores the method and device of display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510415412.6A CN106354379B (en) | 2015-07-15 | 2015-07-15 | The method of multiple objects is hidden based on gesture, restores the method and device of display |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106354379A true CN106354379A (en) | 2017-01-25 |
CN106354379B CN106354379B (en) | 2019-11-26 |
Family
ID=57843003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510415412.6A Active CN106354379B (en) | 2015-07-15 | 2015-07-15 | The method of multiple objects is hidden based on gesture, restores the method and device of display |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354379B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762648A (en) * | 2018-04-28 | 2018-11-06 | 维沃移动通信有限公司 | Screen operation control method and mobile terminal |
CN109358792A (en) * | 2018-09-25 | 2019-02-19 | 维沃移动通信有限公司 | A kind of choosing method and terminal showing object |
CN112783381A (en) * | 2020-04-08 | 2021-05-11 | 珠海金山办公软件有限公司 | Slide processing method and device and electronic equipment |
CN113835809A (en) * | 2021-09-24 | 2021-12-24 | 深圳集智数字科技有限公司 | Hiding processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859229A (en) * | 2010-06-22 | 2010-10-13 | 宇龙计算机通信科技(深圳)有限公司 | Icon hiding method, device and touch screen terminal |
US20110047461A1 (en) * | 2009-08-21 | 2011-02-24 | Bargmann Jeffrey M | System and Method for Desktop Management |
US20130111412A1 (en) * | 2011-10-26 | 2013-05-02 | Nokia Corporation | User interfaces and associated apparatus and methods |
CN103616981A (en) * | 2013-10-31 | 2014-03-05 | 小米科技有限责任公司 | Application process method, device and mobile terminal |
CN103616986A (en) * | 2013-11-30 | 2014-03-05 | 广东欧珀移动通信有限公司 | Method and system for displaying and hiding application icons and mobile terminal |
CN104657147A (en) * | 2015-03-09 | 2015-05-27 | 联想(北京)有限公司 | Information processing method and information processing device |
-
2015
- 2015-07-15 CN CN201510415412.6A patent/CN106354379B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110047461A1 (en) * | 2009-08-21 | 2011-02-24 | Bargmann Jeffrey M | System and Method for Desktop Management |
CN101859229A (en) * | 2010-06-22 | 2010-10-13 | 宇龙计算机通信科技(深圳)有限公司 | Icon hiding method, device and touch screen terminal |
US20130111412A1 (en) * | 2011-10-26 | 2013-05-02 | Nokia Corporation | User interfaces and associated apparatus and methods |
CN103616981A (en) * | 2013-10-31 | 2014-03-05 | 小米科技有限责任公司 | Application process method, device and mobile terminal |
CN103616986A (en) * | 2013-11-30 | 2014-03-05 | 广东欧珀移动通信有限公司 | Method and system for displaying and hiding application icons and mobile terminal |
CN104657147A (en) * | 2015-03-09 | 2015-05-27 | 联想(北京)有限公司 | Information processing method and information processing device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762648A (en) * | 2018-04-28 | 2018-11-06 | 维沃移动通信有限公司 | Screen operation control method and mobile terminal |
CN109358792A (en) * | 2018-09-25 | 2019-02-19 | 维沃移动通信有限公司 | A kind of choosing method and terminal showing object |
CN112783381A (en) * | 2020-04-08 | 2021-05-11 | 珠海金山办公软件有限公司 | Slide processing method and device and electronic equipment |
CN113835809A (en) * | 2021-09-24 | 2021-12-24 | 深圳集智数字科技有限公司 | Hiding processing method and device |
CN113835809B (en) * | 2021-09-24 | 2024-05-17 | 深圳须弥云图空间科技有限公司 | Hiding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106354379B (en) | 2019-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8924858B2 (en) | Touch-based system for transferring data | |
WO2017000350A1 (en) | Touchscreen terminal-based unlock method and device and touchscreen terminal | |
CN105068723B (en) | Information processing method and electronic equipment | |
US9134833B2 (en) | Electronic apparatus, method, and non-transitory computer-readable storage medium | |
CN104463004A (en) | Method and device for protecting interface content | |
CN106354379B (en) | The method of multiple objects is hidden based on gesture, restores the method and device of display | |
US9025878B2 (en) | Electronic apparatus and handwritten document processing method | |
US20160266734A1 (en) | Conference support apparatus, conference support system, and computer-readable recording medium storing conference support program | |
CN103064627A (en) | Application management method and device | |
JPWO2017057629A1 (en) | Electronic blackboard, storage medium, and information display method | |
JP2017515241A (en) | Element deletion method and apparatus based on touch panel | |
US9170733B2 (en) | Information processing apparatus, information processing method, and non-transitory computer readable medium | |
CN104090724A (en) | Method and device for operating files through gestures of double fingers in intelligent terminal | |
CN103777802A (en) | Information processing apparatus and method | |
CN104063171B (en) | Information Processing Apparatus, Information Processing Method | |
JP2015022524A (en) | Terminal device and system | |
US20140232667A1 (en) | Electronic device and method | |
KR102156291B1 (en) | Method and device for encrypting some areas of electronic document | |
Mistry et al. | Sparsh: Passing data using the body as a medium | |
Mistry et al. | Touch and copy, touch and paste | |
JP2017033421A (en) | Image display method | |
JP2014174717A (en) | Information terminal device, image display method, and program | |
CN104571815B (en) | A kind of matching process and electronic equipment of display window | |
JP6408273B2 (en) | Information processing apparatus, information processing program, and information processing method | |
JP5941483B2 (en) | Method for obtaining shared file, electronic device and computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |