Patent Publication Number: US-2015077333-A1

Title: Method and Apparatus for Processing Menu Layout

Description:
FIELD 
     The disclosure relates to the communication field including, e.g., a method and apparatus for processing menu layout. 
     BACKGROUND 
     The smart phones have gradually replaced the non-smart phones, becoming the modern mainstream. Various third party applications are running on the smart operating system. Moreover, the interface arrangement of the third party applications made by most systems is paging arrangement, and the application icon arrangement of each page is matrix arrangement.  FIG. 1  is a schematic diagram of a menu layout in the related art, as shown in  FIG. 1 . The user can delete the application on each page randomly according to his own need, and meanwhile the user also can drag the application in the menu layout and place it on the page that he likes. However, such a random dragging and modifying will lead to different page layouts having many defects, thus affecting the visual effect. It needs to drag the icons to an appropriate place one by one again for a beautiful menu layout, this not only consumes time, but also the user cannot determine the icon position accurately when the user himself drags and arranges. 
     In addition, in this case, if the user intends to look for a certain application, he needs to find this application by way of page turning.  FIG. 2  is a schematic diagram of which a user needs to look for an icon on different pages in the related art, as shown in  FIG. 2 . Most users are used to placing the application icons that he uses often on the first page, then dragging the icons to a certain page one by one, which not only consumes time, but also affects the user experience. 
     Therefore, in the related art, the icons need to be dragged one by one by hand when moved, which is time-consuming, cannot determine the arrangement position accurately and affects the user experience. 
     SUMMARY 
     The embodiments of the disclosure provide a method and apparatus for processing menu layout, so as to at least solve the problem in the related art that the icons need to be dragged one by one by hand when moved, which is time-consuming, cannot determine the arrangement position accurately and affects the user experience. 
     According to one aspect of the embodiments of the disclosure, a method for processing menu layout is provided, comprising: obtaining a moving direction and a moving acceleration value of user equipment; judging whether the moving acceleration value of the user equipment exceeds a preset first threshold; and adjusting the menu layout of the user equipment according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold, wherein the menu layout is the arrangement of one or more icons on one or more pages. 
     Preferably, adjusting the menu layout of the user equipment according to the obtained moving direction of the user equipment comprises: obtaining an adjusting way by which the menu layout of the user equipment is adjusted, wherein the adjusting way comprises at least one of the following ways: filling the icons to left or to right among different pages according to relative positions, moving a selected icon to a specified page among different pages, and filling the icons to a specified direction on the same page; and adjusting the menu layout of the user equipment according to the adjusting way and the obtained moving direction of the user equipment. 
     Preferably, the method further comprising: before obtaining the moving direction and the moving acceleration value of the user equipment, receiving information of one or more icons on one or more pages in the menu layout, wherein the information of one or more icons is used for specifying one or more icons moved in the process of adjusting the menu layout. 
     Preferably, adjusting the menu layout of the user equipment according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold comprises: creating one folder icon on a pre-specified page; and adjusting the one or more icons to the folder icon according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold. 
     Preferably, adjusting the menu layout of the user equipment according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold comprises: judging whether the moving acceleration value of the user equipment exceeds a preset second threshold; and adjusting the menu layout of the user equipment within predetermined time according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the second threshold. 
     Preferably, the method further comprising: after adjusting the menu layout of the user equipment, deleting the page without the icon. 
     According to another aspect of the embodiments of the disclosure, a apparatus for processing menu layout, is provided: an obtaining component, configured to obtain a moving direction and a moving acceleration value of user equipment; a judging component, configured to judge whether the moving acceleration value of the user equipment exceeds a preset first threshold; and an adjusting component, configured to adjust the menu layout of the user equipment according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold, wherein the menu layout is the arrangement of one or more icons on one or more pages. 
     Preferably, the adjusting component comprises: a first obtaining component, configured to obtain an adjusting way by which the menu layout of the user equipment is adjusted, wherein the adjusting way includes at least one of the following ways: filling the icons to left or to right among different pages according to relative positions, moving a selected icon to a specified page among different pages, and filling the icons to a specified direction on the same page; and a first adjusting component, configured to adjust the menu layout of the user equipment according to the adjusting way and the obtained moving direction of the user equipment. 
     Preferably, the apparatus further comprises a receiving component, configured to receive information of one or more icons on one or more pages in the menu layout, wherein the information of one or more icons is used for specifying one or more icons moved in the process of adjusting the menu layout. 
     Preferably, the adjusting component comprises: a creating component, configured to create one folder icon on a pre-specified page; and a second adjusting component, configured to adjust the one or more icons to the folder icon according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold. 
     Preferably, the apparatus further comprises a deleting component, configured to, after adjusting the menu layout of the user equipment, delete the page without the icon. 
     According to the disclosure, by soaping the method for obtaining a moving direction and a moving acceleration value of user equipment; judging whether the moving acceleration value of the user equipment exceeds a preset first threshold; adjusting the menu layout of the user equipment according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold, wherein the menu layout is the arrangement of one or more icons on one or more pages. The problem in the related art that the icons need to be dragged one by one by hand when moved which is time-consuming, cannot determine the arrangement position accurately and affects the user experience is solved, thereby improving the user experience effect. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       Drawings, provided for further understanding of the disclosure and forming a part of the specification, are used to explain the disclosure together with embodiments of the disclosure rather than to limit the disclosure, wherein: 
         FIG. 1  is a schematic diagram of a menu layout in the related art; 
         FIG. 2  is a schematic diagram of which a user needs to look for an icon on different pages in the related art; 
         FIG. 3  is a flowchart of a method for processing menu layout according to an embodiment of the disclosure; 
         FIG. 4  is a structure diagram of an apparatus for processing menu layout according to an embodiment of the disclosure; 
         FIG. 5  is a structure diagram of an adjusting component  46  in an apparatus for processing menu layout according to an embodiment of the disclosure; 
         FIG. 6  is a structure diagram of an apparatus for processing menu layout according to a preferred embodiment of the disclosure; 
         FIG. 7  is a structure diagram of an apparatus for processing menu layout according to another preferred embodiment of the disclosure; 
         FIG. 8  is a flowchart of adjusting the whole menu layout according to an embodiment of the disclosure; 
         FIG. 9  is a schematic diagram I before the whole menu layout is rearranged according to an embodiment of the disclosure; 
         FIG. 10  is a schematic diagram I after the whole menu layout is rearranged according to an embodiment of the disclosure; 
         FIG. 11  is a schematic diagram II before the whole menu layout is rearranged according to an embodiment of the disclosure; 
         FIG. 12  is a schematic diagram II after the whole menu layout is rearranged according to an embodiment of the disclosure; 
         FIG. 13  is a flowchart of adjusting a menu page according to an embodiment of the disclosure; 
         FIG. 14  is a schematic diagram before a page in a menu layout is rearranged according to an embodiment of the disclosure; and 
         FIG. 15  is a schematic diagram after the whole menu layout is rearranged according to an embodiment of the disclosure. 
     
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
     Hereinafter, the disclosure will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments of the application and the features of the embodiments can be combined with each other if there is no conflict. 
     In the embodiment, a method for processing menu layout is provided.  FIG. 3  is a flowchart of a method for processing menu layout according to an embodiment of the disclosure. As shown in  FIG. 3 , the flow comprises the following steps: 
     Step S 302 : A moving direction and an acceleration value of user equipment are obtained; 
     Step S 304 : It is judged whether the moving acceleration value of the user equipment exceeds a preset first threshold; and 
     Step S 306 : The menu layout of the user equipment is adjusted according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold, wherein the menu layout is the arrangement of one or more icons on one or more pages. 
     From the above steps, it is judged whether the menu layout of the user equipment is rearranged through obtaining the characteristics of the physical movement of the user equipment. Compared to the related art that when the menu layout needs to be arranged, the icons in the menu layout need to be dragged one by one by hand so as to cause operation, it effectively avoids the case that the threshold is set according to the individual, and it is only necessary to simply operate the user equipment physically to achieve the rearrangement of the menu layout. The technical problem of time-consuming adjustment of menu layout and inefficient processing is solved, thereby improving the user experience. 
     In the case that the adjustment condition set in advance is met, there are many ways by which the menu layout of the user equipment is adjusted. Therefore, the adjusting way needed is set in advance before the adjustment, then the adjusting way by which the menu layout of the user equipment is adjusted is obtained during the adjustment, wherein the adjusting way may comprises at least one of the following ways: filling the icons to left or to right among different pages according to relative positions, moving a selected icon to a specified page among different pages, and filling the icons to a specified direction on the same page. It should be noted that, as to the way of filling the icons to left or to right among different pages according to relative positions, specifically during filling, the icons may be filled only using the icons as a unit, and certainly may be filled using a kind of icons as a unit. The menu layout of the user equipment is adjusted according to the adjusting way obtained above and the obtained moving direction of the user equipment. The selection of adjusting way is flexibly set according to needs and preferences before starting using the above embodiment to adjust the menu layout. 
     As a preferred embodiment, when the user needs to place the icons that he usually uses or some preferred icons to one fixed page in the menu layout or one specified position in the menu layout, it may be achieved through the following operation: before obtaining the moving direction and the moving acceleration value of the user equipment, receiving information of one or more icons on one or more pages in the menu layout, wherein the information of one or more icons is used for specifying one or more icons moved in the process of adjusting the menu layout. That is, the user may select some icons that he want to move together according to his preferences, then swings the user equipment according to the presetting, thereby efficiently and quickly achieving the rearrangement of the menu layout. 
     More preferably, when the selected icon is adjusted to the specified position in the menu layout, the specified position may be a position on the page in the menu layout, and certainly may be a folder newly created on the specified page in the menu layouts. It should be noted that adopting this way also needs presetting. It may be achieved in the following way: in the case that the moving acceleration value of the user equipment exceeds the first threshold, creating one folder icon on a pre-specified page; adjusting one or more icons to the folder icon according to the obtained moving direction of the user equipment. It not only achieves the fast and efficient adjustment of the menu layout, but also improves the icon management efficiency. 
     More preferably, the adjustment time of the menu layout of the user equipment may also be set, wherein different adjustment time may be set according to different people or persons having different needs. However, when it is judged by using what adjustment time that the adjustment of the menu layout is achieved, it may be achieved in the following way: judging whether the moving acceleration value of the user equipment exceeds a preset second threshold; and adjusting the menu layout of the user equipment within predetermined time according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the second threshold. For example, through setting the second threshold for the acceleration of the user equipment, it represents that the adjustment time is less when exceeding the second threshold, i.e., the adjustment is fast, for example, the adjustment is finished within 1 s. However, it represents that the adjustment time may be more when not exceeding the second threshold, i.e., the adjustment may be slower. By adopting such a processing way, the user equipment is aimed to a variety of different people according to different settings. 
     It should be noted that after adjusting the menu layout of the user equipment, the page without the icon may be deleted to achieve that the user equipment effectively saves the resources. 
     In the embodiment, there is also provided an apparatus for processing menu layout. The apparatus is used for implementing the above embodiment and preferred embodiment, what has been described is not explained herein. As used below, term “component” may implement the combination of software and/or hardware of predetermined functions. Although the apparatus described in the following embodiment is preferably implemented in software, it is possible and conceived that hardware, or a combination of software and hardware may be used for implementation. 
       FIG. 4  is a structure diagram of an apparatus for processing menu layout according to an embodiment of the disclosure. As shown in  FIG. 4 , the apparatus comprises an obtaining component  42 , a judging component  44  and an adjusting component  46 . The obtaining component  42  is configured to obtain a moving direction and a moving acceleration value of user equipment; the judging component  44  is connected to the obtaining component  42  and configured to judge whether the moving acceleration value of the user equipment exceeds a preset first threshold; and the adjusting component  46  is connected to the judging component  44  and configured to adjust the menu layout of the user equipment according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold, wherein the menu layout above is the arrangement of one or more icons on one or more pages. 
       FIG. 5  is a structure diagram of an adjusting component  46  in an apparatus for processing menu layout according to an embodiment of the disclosure. As shown in  FIG. 5 , the adjusting component  46  comprises a first obtaining component  52  and a first adjusting component  54 . 
     The first obtaining component  52  is configured to obtain an adjusting way by which the menu layout of the user equipment is adjusted, wherein the adjusting way comprises at least one of the following ways: filling the icons to left or to right among different pages according to relative positions, moving a selected icon to a specified page among different pages, and filling the icons to a specified direction on the same page; and the first adjusting component  54  is connected to the first obtaining component  52  and configured to adjust the menu layout of the user equipment according to the adjusting way above and the obtained moving direction of the user equipment. 
       FIG. 6  is a structure diagram of an apparatus for processing menu layout according to a preferred embodiment of the disclosure. As shown in  FIG. 6 , the apparatus, in addition to all of the components as shown in  FIG. 4 , further comprises a receiving component  62 , and the adjusting component  46  as shown in  FIG. 4  further comprises a creating component  64  and a second adjusting component  66 . The structure of the preferred apparatus for processing menu layout will be described below. 
     The receiving component  62  is configured to receive information of one or more icons on one or more pages in the menu layout, wherein the information of one or more icons is used for specifying one or more icons moved in the process of adjusting the menu layout. 
     The creating component  64  is configured to create one folder icon on a pre-specified page; and the second adjusting component  66  is configured to adjust one or more icons to the folder icon according to the obtained moving direction of the user equipment in the case that the moving acceleration value of the user equipment exceeds the first threshold. 
       FIG. 7  is a structure diagram of an apparatus for processing menu layout according to another preferred embodiment of the disclosure. As shown in  FIG. 7 , the apparatus, in addition to all of the components of the apparatus of any combination as shown in  FIG. 4  to  FIG. 6 , further comprises a deleting component  72 , connected to the above adjusting component  46  and configured to, after adjusting the menu layout of the user equipment, delete the page without the icon. 
     In the embodiment, a menu arrangement method applied to a smart operating system is provided. The problem that the user arranges the menu by hand in the current smart operating system can be solved effectively through the method. Through the method provide by the embodiment, the user only needs to perform a certain operation (the operation is preset in the smart operating system) to directly and quickly rearrange the page icons. The operation is simple to use, and the visual effect is more stunning than previous case, thereby improving the user experience better. 
     Currently, almost all of the smart operating systems require that the mobile phone should be equipped with an acceleration sensor. For any operation performed by the mobile phone, the acceleration sensor equipped in the mobile phone is able to accurately sense the moving acceleration value characterizing the mobile phone movement. Based on the working principle of the abacus, after the user performs all of the operations, if he wants to calculate again, as long as he picks up the abacus and sways, the abacus returns to the original state. If the working principle of the abacus is applied to the menu arrangement of mobile phone, and based on the technology of configuring the acceleration sensor on the mobile phone, the menu arrangement of mobile phone may also be the same as the abacus, the menu rearrangement can be achieved only by simple operation. Specific implementation is as follows: 
     The acceleration sensor in the mobile phone can accurately judge the accelerations in all directions. The relationship of the magnitude and direction of the acceleration obtained by the acceleration sensor and the menu arrangement can be preset. For example, the left and right sway of the mobile phone is designed to finish the arrangement of the whole menu, and the up and down sway is designed to finish the menu arrangement of a certain interface. When the user wants to rearrange the layout of the whole menu, after backing to the main menu interface, the user shakes the mobile phone right and left, and the mobile phone judges whether it is need to rearrange through the acceleration value reported by the acceleration sensor. If the acceleration value exceeds the set threshold, the mobile phone will rearrange the whole menu, in an order of from the first page to the last page. The icons in the later pages are filled to the vacant position of the previous page according to the relative position. When the first is fully filled, the second page continues to be filled. If there is no content on the remaining pages after rearrangement, the remaining pages are deleted. When the user only wants to rearrange a certain menu page, he only needs to sway up and down. When the acceleration exceeds the set threshold, the mobile phone rearranges the page, thereby achieving the effect that page menu is laid out orderly. Certainly, there may be multiple acceleration thresholds set. The multiple different acceleration thresholds may represent different sports, for example, the magnitude of the acceleration is set. The menu is rearranged in an acceleration way when exceeding the set magnitude. When the acceleration sensed by the acceleration sensor does not exceed the preset value, the menu is rearranged at normal speed. 
     Hereinafter, the example of that left and right sway of the mobile phone represents the rearrangement of the whole menu, and the up and down sway of the mobile phone represents the rearrangement of a single page of the mobile phone is illustrated below. 
       FIG. 8  is a flowchart of adjusting the whole menu layout according to an embodiment of the disclosure. As shown in  FIG. 8 , the flow comprises the following steps: 
     Step S 802 : Switch opening information is received, and the switch needing to sway to change the whole menu layout on a setting component according to the information is opened, wherein the setting component presets the rearrangement scope indicated by the sway direction of the mobile phone, and the threshold of the magnitude of the acceleration when the mobile phone sways during menu rearrangement, the threshold may be obtained through experience, and set to avoid the case that slight shaking also changes the layout. 
     Step S 804 : The swaying direction of the mobile phone and the value of swaying acceleration sensor are obtained. For example, when the mobile phone user needs to rearrange the menu layout, the mobile phone is backed to the menu interface, and the user shakes the mobile phone right and left. Assumed that such a menu layout has two pages, the there is the case of menu before being rearranged.  FIG. 9  is a schematic diagram I before the whole menu layout is rearranged according to an embodiment of the disclosure, as shown in  FIG. 9 . 
     Step S 806 : After it is determined that the whole menu layout needs to be rearranged according to the swaying direction of the mobile phone, it is judged whether the obtained acceleration value reaches the threshold. 
     Step S 808 : The whole menu is rearranged in the case that the obtained acceleration value reaches the above threshold, and it is ended.  FIG. 10  is a schematic diagram I after the whole menu layout is rearranged according to an embodiment of the disclosure, as shown in  FIG. 10 . 
     It should be noted that, as for the specific rearrangement principle, it is also possible to perform presetting according to specific needs. A single icon in the page rearranged from  FIG. 9  to  FIG. 10  described by the above embodiment moves to finish the layout rearrangement. The principle that it follows is to rearrange in a way of filling to one direction (to left) as far as possible in the corresponding row. When the whole row needs to be rearranged in the menu layout, it can be set that the uppermost icons in the next page are filled to the whole row position of the previous page in advance. For example, when the menu layout is as shown in  FIG. 11 ,  FIG. 11  is a schematic diagram II before the whole menu layout is rearranged according to an embodiment of the disclosure. The layout of the rearranged menu interface is as shown in  FIG. 12 ,  FIG. 12  is a schematic diagram II after the whole menu layout is rearranged according to an embodiment of the disclosure. It is possible to preset in such an implementation way. Certainly, it may be set in other ways, examples of which are not given one by one herein. 
       FIG. 13  is a flowchart of adjusting a menu page according to an embodiment of the disclosure. As shown in  FIG. 13 , the process comprises the following steps: 
     Step S 1302 : Switch opening information is obtained, and the switch needing to sway to change the menu layout on a setting component according to the information is opened, wherein the setting component presets the rearrangement scope indicated by the sway direction of the mobile phone, and the threshold of the magnitude of the acceleration when the mobile phone sways during menu rearrangement, the threshold may be obtained through experience, and set to avoid the case that slight shaking also changes the layout. 
     Step S 1304 : The swaying direction of the mobile phone and the value of swaying acceleration sensor are obtained. For example, when the user needs to rearrange a certain menu page layout, the mobile phone is backed to the menu interface. Assumed that the first page of the menu is rearranged, the mobile phone is swayed up and down. The case before the menu rearrangement is as shown in  FIG. 14 ,  FIG. 14  is a schematic diagram before a page in a menu layout is rearranged according to an embodiment of the disclosure. 
     Step S 1306 : After it is determined that the mobile phone needs to rearrange the page in the mobile phone according to the direction of the mobile phone when swaying, it is judged whether the obtained acceleration value reaches the threshold. 
     Step S 1308 : The menu of the menu page is rearranged in the case that the obtained acceleration value reaches the above threshold, and ending. The case after the menu rearrangement is as shown in  FIG. 15 ,  FIG. 15  is a schematic diagram after the whole menu layout is rearranged according to an embodiment of the disclosure. 
     Obviously, those skilled in the art shall understand that the above-mentioned components and steps of the disclosure can be realized by using general purpose calculating device, can be integrated in one calculating device or distributed on a network which consists of a plurality of calculating devices. Alternatively, the components and the steps of the disclosure can be realized by using the executable program code of the calculating device. Consequently, they can be stored in the storing device and executed by the calculating device, and in some cases, the steps shown or described herein can be executed in a sequence different from this presented herein, or they are made into integrated circuit component respectively, or a plurality of components or steps thereof are made into one integrated circuit component. In this way, the disclosure is not restricted to any particular hardware and software combination. 
     The descriptions above are only the preferable embodiment of the disclosure, which are not used to restrict the disclosure. For those skilled in the art, the disclosure may have various changes and variations. Any amendments, equivalent substitutions, improvements of the disclosure are all included in the scope of the protection of the disclosure.