User interface display method, device, computer readable medium and electronic device
The user interface display method addresses the challenge of RTL arrangement in electronic devices by performing mirror rotations to adapt interface elements, improving usability and eliminating the need for code recompilation and restarts.
Patent Information
- Application Number
- JP2022519142
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-09-27
- Filing Date
- 2020-09-22
- Publication Date
- 2024-11-13
- Estimated Expiration
- 2040-09-22
AI Technical Summary
Existing electronic devices struggle to automatically arrange user interface elements in a right-to-left (RTL) order without requiring cumbersome code recompilation and application restarts, impacting user experience.
A user interface display method that performs mirror rotation of elements about the symmetry axis to adapt the interface to RTL order, allowing elements to be tailored to user reading habits without code recompilation or application restarts.
Enhances usability and user experience by easily adapting interface arrangements to user preferences, reducing turnaround time and manpower costs while maintaining seamless operation.
Smart Images

Figure 0007583034000005 
Figure 0007583034000006 
Figure 0007583034000007
Abstract
Description
[Technical field]
[0001] This application claims priority to a Chinese patent application filed on September 27, 2019 with the China Patent Office, bearing application number 201910927686.1 and entitled "User interface display method, apparatus, computer-readable medium, and electronic device", the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of electronic devices, and in particular to a user interface display method, device, computer readable medium and electronic device. [Background technology]
[0003] When reading texts such as Arabic, Hebrew, etc., users usually read the text in a right-to-left order. Due to this habit, electronic devices arrange their user interfaces in RTL (Right to Left) order. In the prior art, a system in an electronic device can arrange the user interface in RTL. Although the system in an electronic device can automatically arrange some elements in the user interface, elements such as slide buttons cannot be arranged effectively. For elements that cannot be arranged automatically by the system in an electronic device, they can be arranged appropriately by recompiling the code. After the system in an electronic device arranges the user interface in RTL, the user interface with the RTL arrangement cannot be displayed unless the application program is restarted, which is a drawback in that the process is cumbersome and the user experience is poor. Summary of the Invention [Problem to be solved by the invention]
[0004] The following is a brief description of the technical matters of the present invention by describing the summary of the present invention. The specific technical matters of the present invention can be understood in detail through the following specific examples. This summary of the present invention is not intended to indicate important or essential features of the technical matters to be protected by the present invention or to define the scope of the claims of the present invention. [Means for solving the problem]
[0005] In a first embodiment of the present invention, a user interface displaying method is provided, which includes the steps of: a rotation waiting user interface performing a mirror rotation about a symmetry axis of the user interface to obtain a first interface, determining a first target element in the first interface, rotating the first target element to a second target element in the first interface by performing a mirror rotation about the symmetry axis of the first target element, thereby obtaining a second interface, and displaying the second interface.
[0006] In a second embodiment of the present invention, a user interface display device is provided, which includes a first rotation module for obtaining a first interface by mirror-rotating a rotation waiting user interface about a symmetry axis of the user interface as a rotation axis, a first determination module for obtaining a first target element in the first interface obtained by the first rotation module, a second rotation module for rotating the first target element into a second target element in the first interface by mirror-rotating the first target element about the symmetry axis of the first target element as a rotation axis, thereby obtaining a second interface, and a display module for displaying the second interface obtained by the second rotation module.
[0007] In a third embodiment of the present invention, a computer-readable medium is provided, which has a computer program stored thereon, the computer program being executed by a processor to perform the steps of the method according to the first embodiment of the present invention.
[0008] In a fourth embodiment of the present invention, there is provided an electronic device, the electronic device including a storage device for storing a computer program, and a processing device for performing the steps of the method according to the first embodiment by executing the computer program stored in the storage device. Effect of the Invention
[0009] In the above embodiment, first, the rotation waiting user interface is rotated in a mirror shape around the symmetry axis of the user interface to obtain a first interface. Then, the first target element in the first interface is rotated in a mirror shape around the symmetry axis of the first target element to obtain a second interface. Finally, the second interface is displayed. By rotating the user interface using the mirror rotation method, the interface arrangement can be adapted to the user's reading habits. This makes it easy to adapt the interface arrangement to the user's reading habits, and eliminates the need to recompile the code, reducing the time and manpower costs. In addition, the user interface can be rotated without restarting the application program, which improves the convenience of use and enhances the user's experience.
[0010] Other technical features and effects of the present invention will be described in more detail with reference to the following specific embodiments of the present invention. [Brief description of the drawings]
[0011] Hereinafter, specific embodiments of the present invention will be described with reference to the drawings of the present invention, so that the technical features, advantages and objectives of the present invention can be understood in more detail. In the drawings of the present invention, the same or similar reference numerals in the drawings refer to the same or similar parts. The drawings are merely illustrative of the present invention, and the parts and elements in the drawings are not drawn in proportion to the actual size of the parts and elements. [Figure 1] 4 is a flow chart illustrating a user interface display method according to an exemplary embodiment of the present invention; [Figure 2A] FIG. 2 illustrates an LTR interface according to an exemplary embodiment of the present invention. [Figure 2B] FIG. 2B shows a first interface corresponding to the LTR interface in FIG. 2A. [Figure 2C] FIG. 2C is another diagram showing a first interface corresponding to the LTR interface in FIG. 2B. [Figure 2D] FIG. 2D shows a second interface corresponding to the first interface in FIG. 2C. [Figure 2E] FIG. 2E shows the interface after right justification of document elements is performed on the second interface in FIG. 2D. [Figure 3A] 4 is a flow chart illustrating a method for determining a first target element according to an exemplary embodiment of the present invention. [Figure 3B] 11 is a flow chart showing a method for determining a first target element according to another exemplary embodiment of the present invention. [Figure 3C] 11 is a flow chart showing a method for determining a first target element according to another exemplary embodiment of the present invention. [Figure 3D] 11 is a flow chart showing a method for determining a first target element according to another exemplary embodiment of the present invention. [Figure 4] 11 is a flow chart illustrating a user interface display method according to another exemplary embodiment of the present invention. [Diagram 5] 11 is a flow chart illustrating a user interface display method according to another exemplary embodiment of the present invention. [Figure 6]1 is a block diagram illustrating a user interface exhibiting device according to an exemplary embodiment of the present invention. [Figure 7] 11 is a block diagram showing a user interface display device according to another exemplary embodiment of the present invention. [Figure 8] 11 is a block diagram showing a user interface display device according to another exemplary embodiment of the present invention. [Figure 9] FIG. 2 illustrates a structure of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the embodiments of the present invention will be described in more detail with reference to the drawings. Although the preferred embodiments of the present invention are described in the drawings, the present invention can be implemented in various embodiments and is not limited to the configurations of the following embodiments. The following embodiments will help the technical matters of the present invention to be understood in more detail. Please note that the following drawings and embodiments of the present invention are merely illustrative of the present invention and do not limit the scope of protection of the present invention.
[0013] It should be noted that steps in the method according to the embodiment of the present invention may be performed in different orders or simultaneously, and the method according to the embodiment of the present invention may include additional steps and / or steps not shown, but the present invention is not limited thereto.
[0014] The term "comprising" and similar terms in this specification do not mean to include only the items explicitly described, but may mean to further include items not described. The term "based on" in this specification means "based on at least a portion of the items", "one embodiment" in this specification means "at least one embodiment", "another embodiment" in this specification means "at least one other embodiment", and "one embodiment" in this specification means "at least a portion of an embodiment". When a term in this specification has a special meaning, it must be specifically explained.
[0015] Please note that the terms "first" and "second" in this specification are used to distinguish between various devices, modules, or units, and do not limit the order or dependency of steps performed by the devices, modules, or units.
[0016] Please note that the terms "one" and "plurality" in this specification are merely examples of the quantity of items, and do not specifically limit the quantity of items. Unless otherwise specified, those skilled in the art can understand the terms "one" and "plurality" in this specification to mean "one or multiple".
[0017] In the embodiments of the present invention, the information or names of the information interacted by multiple devices are intended to explain the present invention, but are not intended to limit the scope of the information or the information.
[0018] 1 is a flow chart of a user interface display method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
[0019] In step 101, a user interface waiting to be rotated (hereinafter, a rotation-waiting user interface) obtains a first interface by performing a mirror rotation about the axis of symmetry of the user interface as a rotation axis.
[0020] In an embodiment of the present invention, the method can be used in a terminal. The terminal includes, for example, a smartphone, a smart TV, an intelligent wearable device, a tablet computer, etc. The user interface can be an interface displayed on a display panel of the terminal. When a user rotates a current LTR (Left to Right) interface to an RTL interface or rotates a current RTL interface to an LTR interface, the user can do so by inputting a rotation command into a touch-controlled terminal. When the terminal receives the command, the rotation waiting user interface obtains a first interface by performing a mirror rotation (i.e., a horizontal rotation) with the symmetry axis of the user interface as the rotation axis. In this case, each element in the rotation waiting user interface moves from its original position to a target position (target position directly opposite the original position) located directly opposite the symmetry axis of the user interface, and each element performs a mirror rotation with the symmetry axis of the element as the rotation axis. That is, each element in the first interface is a mirror image of each element in the rotation waiting user interface.
[0021] In the present embodiment, FIG. 2A shows an LTR interface according to an embodiment of the present invention, which is mirror-rotated around a symmetric axis 100A (see FIG. 2A) to obtain a first interface shown in FIG. 2B. For example, when mirror-rotated, the character element 10A of “Provide the contents of the invention in a simple and convenient form” in FIG. 2A is transformed into the character element 10B of “Provide the contents of the invention in a simple and convenient form” in FIG. 2B. That is, the character element 10B of “Provide the contents of the invention in a simple and convenient form” in FIG. 2B is a mirror image of the character element 10A of “Provide the contents of the invention in a simple and convenient form” in FIG. 2A. When performing mirror rotation, the character element 80A of "microblog, microblog corresponds to the Chinese word "Weibo", and is written as "Weibo" in the drawing, and so on" in FIG. 2A is converted to the character element 80B of "microblog" in FIG. 2B. That is, the character element 80B of "microblog" in FIG. 2B is a mirror image of the character element 80A of "microblog" in FIG. 2A. When performing mirror rotation, the microblog icon (also called Weibo icon, and so on) 30A in FIG. 2A is converted to the microblog icon 30B in FIG. 2B. That is, the microblog icon 30B in FIG. 2B is a mirror image of the microblog icon 30A in FIG. 2A. When performing mirror rotation, the left page turning icon 50A in FIG. 2A is converted to the left page turning icon 50B in FIG. 2B. That is, left page turning icon 50B in FIG. 2B is a mirror image of left page turning icon 50A in FIG. 2A.
[0022] In step 102, a first target element in a first interface is determined.
[0023] The first target element can be an element that is always displayed in a forward direction relative to the display panel of the terminal. Displaying in a forward direction is opposite to displaying in a backward direction. The direction displayed in a forward direction and the direction displayed in a backward direction are opposite to each other, and the element displayed in a forward direction can be obtained by mirror-rotating the element displayed in a backward direction with its symmetric axis as the rotation axis. For example, the character element 10A "to provide a simple and convenient introduction to the content of the invention" in FIG. 2A is an element displayed in a forward direction, and the character element 10B "to provide a simple and convenient introduction to the content of the invention" in FIG. 2B is an element displayed in a backward direction.
[0024] In the present embodiment, the first target element can be a text element and / or a first icon element.
[0025] For example, as shown in FIG. 2B, the text element 10B, “to provide a simple and convenient introduction to the content of the present invention”; [Table 1] The character element 20B (i.e., the Arabic equivalent of the character element 10B "to provide a simplified and convenient way to introduce the content of the present invention"), the character element 80B of "microblog", and the character element 90B of "WeChat, which corresponds to the Chinese word "WeChat", are referred to as "WeChat" in the drawings, and the same applies below" are all first target elements. In the RTL interface, the character elements composed of Arabic are displayed in a right-to-left order, and the character elements are aligned on the right side (e.g., the character element 90B in FIG. 2B). [Table 2] character element 20B such as “to provide a convenient and simple format for introducing the content of the invention” in FIG. 2B is aligned on the left side), character elements consisting of other words are displayed in left-to-right order and their character elements are aligned on the left side (for example, character element 10B such as “to provide a convenient and simple format for introducing the content of the invention” in FIG. 2B is aligned on the left side).
[0026] The first icon element can be an icon that does not include a direction indicator. For example, the video cover, the microblog icon 30B in FIG. 2B, the WeChat icon 40B, and the share icon 70B all belong to the first icon element. That is, the video cover, the microblog icon 30B in FIG. 2B, the WeChat icon 40B, and the share icon 70B are all first target elements.
[0027] The first target element may further include one or more of a virtual keyboard, a status bar (the status bar displays certain icons, such as battery level, time, network icons, etc.), an album selection page, and other pages used by the current user interface.
[0028] Users can appropriately set the first target element according to their own reading habits, for example, users can set elements such as video playback module (the video playback module includes video playback frame and video playback screen), camera view of recording page, etc. as the first target element.
[0029] In the embodiments of the present invention, the first target element can be determined in various ways.
[0030] In an embodiment of the present invention, the first target element can be determined through steps 1021 and 1022 in FIG. 3A.
[0031] In step 1021, a preset first element set is obtained.
[0032] In step 1022, an element in the first interface that belongs to a first element set is determined as a first target element.
[0033] In an embodiment of the present invention, the preset first element set is an element that is always displayed in a forward direction relative to the display panel of the terminal. Each element in the first interface belongs to the first element set, and a mirror rotation is performed on the element once to cause the element to be displayed in a reverse direction in the first interface, so that the element needs to be mirror rotated again to obtain an element that is displayed in a forward direction. The preset first element set can include elements such as a character element, a first icon element, a virtual keyboard, a status bar, an album selection page, other pages used by the current user interface, a video playback module, a camera view on a recording page, etc. The terminal includes a first storage module, and the preset first element set can be stored in the first storage module. In this case, the preset first element set can be obtained by accessing the first storage module.
[0034] After obtaining the first set of elements, it can be determined whether each element in the first interface belongs to the first set of elements, and if the element belongs to the first set of elements, the element is determined as a first target element.
[0035] In another embodiment, the first target element can be determined by steps 1023 and 1024 of FIG. 3B.
[0036] In step 1023, a preset second element set is obtained.
[0037] In an embodiment of the present invention, the preset second element set is an element that does not need to be displayed in a forward direction relative to the display panel of the terminal. When each element in the first interface belongs to the second element set, even if the element is displayed in a reverse direction, there is no need to perform a mirror rotation for the element. The preset second element set can include a second icon element. The second icon element can be an icon including a direction indicator. For example, the return arrow button, the left page turning icon 50B in FIG. 2B, and the right page turning icon 60B all belong to the second icon element. The terminal includes a second storage module, and the preset second element set can be stored in the second storage module. In this case, the preset second element set can be obtained by accessing the second storage module.
[0038] In step 1024, the elements in the first interface that do not belong to the second set of elements are determined as first target elements.
[0039] After the second set of elements is obtained in step 1023, other elements in the first interface that do not belong to the second set of elements are determined as first target elements.
[0040] In another embodiment, the elements in the first interface may include a first parent element and a first daughter element, and a first target element may be determined by steps 1025 and 1026 of FIG. 3C.
[0041] In step 1025, the first child element is determined to belong to the first category.
[0042] In step 1026, if the first parent element belongs to the first target element, then it is determined that the first child element belongs to the first target element.
[0043] In an embodiment of the present invention, the attribute categories of the elements in the first interface may include a first category, a second category, a third category, a fourth category, and a fifth category. In the example of the present invention, the first category is an Inherit class. If the parent element of a child element belongs to a first target element, the child element is also a first target element. The second category is a Normal With All Descendants class (Global positive class). That is, a parent element belonging to the second category and its child elements are all first target elements. For example, a virtual keyboard (parent element) and all keyboards on the virtual keyboard (all keyboards on the virtual keyboard are child elements of the parent element "Virtual Keyboard") may belong to the second category. The third category is a Normal class (Single layer forward class). That is, child elements belonging to the third category are elements that are always displayed in the forward direction. When a child element belonging to the third category is a first target element, a character element, a first icon element, and a video playback module may belong to the third category, regardless of whether the parent element is a first target element or not. The fourth category is Flip class (Single layer flip class). When an element belonging to the fourth category rotates from the rotation waiting user interface to the second interface, it is necessary to perform a mirror rotation on the element once. That is, a child element belonging to the fourth category does not belong to the first target element, but belongs to the second target element. For example, a second icon element can belong to the fourth category. The fifth category is Flip With All Descendants class (Global flip class). When a parent element belonging to the fifth category and all child elements of the parent element rotate from the rotation waiting user interface to the second interface, it is necessary to perform a mirror rotation on the element once.That is, the parent element belonging to the fifth category and all of the child elements of the parent element do not belong to the first target element but belong to the second target element.
[0044] After the first interface is obtained in step 101, each first child element (category) in the first interface is determined. First, it is determined whether the first father element belongs to the first category. If it is determined that the first father element belongs to the first category, it is determined again whether the first parent element of the first child element belongs to the first target element. If the first father element belongs to the first target element, it can be determined that the first child element belongs to the first target element.
[0045] In an embodiment of the present invention, the element in the first interface can include a second parent element and a second child element. Specifically, the first target element can be determined through steps 1027 and 1028 in FIG. 3D.
[0046] In step 1027, it is determined that the second parent element belongs to the second category.
[0047] In step 1028, the second parent element and the second child element are determined to be the first target element.
[0048] In an embodiment of the present invention, after the first interface is obtained in step 101, each second father element (category) in the first interface is determined. First, it is determined whether the second father element belongs to the second category. If the second father element belongs to the second category, it can be determined that both the second parent element and the second child element belong to the first target element.
[0049] The elements in the first interface include a third parent element and a third child element. After the first interface is obtained in step 101, each third child element in the first interface is determined (its category). If it is determined that the third child element belongs to the third category, the third child element is determined as a first target element.
[0050] If the first child element, the second child element, and the third child element belong to the fourth or fifth category, it can be determined that they do not belong to the first target element but belong to the second target element.
[0051] In the above four embodiments, the first target element is directly determined in the first interface, but in other embodiments, the first target element can also be determined through a rotation waiting user interface. Specifically, in other embodiments, an element that is always displayed in the forward direction in the rotation waiting user interface is first determined. Then, a mirror image element in the first interface corresponding to the element that is always displayed in the forward direction in the rotation waiting user interface can be determined as the first target element.
[0052] Returning to FIG. 2, in step 103, the first target element is rotated to the second target element by mirror rotation with the axis of symmetry of the first target element as the rotation axis in the first interface, thereby obtaining a second interface.
[0053] In the embodiment of the present invention, the first target element is an element that has always been displayed in a forward direction relative to the display panel of the terminal, but the first target element is transformed into a state in which it is displayed in a backward direction by performing the rotation in step 101. Therefore, it is necessary to transform the first target element into a state in which it is displayed in a forward direction by performing a rotation again on the first target element. Therefore, after the first interface is obtained in step 101, a second interface can be obtained by performing a mirror rotation on the first target elements according to the state of each first target element in the first interface (i.e., step 103 can be performed).
[0054] In the present embodiment, the left page turning icon 50B and the right page turning icon 60B in FIG. 2B (or FIG. 2C) belong to the first target element, so there is no need to perform mirror rotation on them (as shown in FIG. 2D). [Table 3] The character element 20B of "microblog", the character element 80B of "microblog", the character element 90B of "WeChat", the microblog icon 30B, the WeChat icon 40B and the share icon 70B all belong to the first target element, so that each first target element can obtain the second interface in Fig. 2D by mirror rotating about its symmetric axis 120B. In the present embodiment, the share icon 70B in Fig. 2C can obtain the shared icon 70D in Fig. 2D by mirror rotating about its symmetric axis 120B, and the WeChat icon 40B in Fig. 2C can obtain the WeChat icon 40D in Fig. 2D by mirror rotating about its symmetric axis 110B.
[0055] In step 104, a second interface is displayed.
[0056] After the second interface is obtained in step 103, it can be displayed to the user.
[0057] In the above embodiment, first, the rotation waiting user interface is rotated in a mirror shape around the symmetry axis of the user interface to obtain a first interface. Then, the first target element in the first interface is rotated in a mirror shape around the symmetry axis of the first target element to obtain a second interface. Finally, the second interface is displayed. By rotating the user interface using the mirror rotation method, the interface arrangement can be adapted to the user's reading habits. This makes it easy to adapt the interface arrangement to the user's reading habits, and eliminates the need to recompile the code, reducing the time and manpower costs. In addition, the user interface can be rotated without restarting the application program, which improves the convenience of use and enhances the user's experience.
[0058] 4 is a flow chart showing a user interface display method according to another exemplary embodiment of the present invention. As shown in FIG. 4, the method may further include the following steps 105 to 107.
[0059] In step 105, if the first target element includes a text element, it is determined whether the second interface is displayed in right-to-left order.
[0060] In the embodiment of the present invention, when the rotation waiting user interface is displayed in a left-to-right order, the character element is aligned to the left side (left justified), and even if the mirror rotation is performed twice by steps 101 and 103, the character element is still aligned to the left side, that is, in the second interface displayed in a right-to-left order, the character element is aligned to the left side. In the embodiment of the present invention, the character element 10 of "Provide a simple and convenient form introduction to the content part of the present invention" in FIG. 2A is mirror rotated twice to obtain the screen shown in FIG. 2D, which is aligned to the left side.
[0061] When the second interface is displayed in a right-to-left order, the character element needs to be aligned to the right side. When the first target element determined in step 102 includes a character element, the character element needs to be aligned to the right side. Similarly, when the rotation waiting user interface is displayed in a right-to-left order, the character element is aligned to the right side. Although the mirror rotation is performed twice in steps 101 and 103, the character element is still aligned to the right side. That is, in the second interface displayed in a left-to-right order, the element is aligned to the right side. When the second interface is displayed in a left-to-right order, the character element needs to be aligned to the left side. When the first target element determined in step 102 includes a character element, the character element needs to be aligned to the left side. That is, when the first target element determined in step 102 includes a character element, the display mode of the second interface is first determined, and then the alignment mode of the character element is adjusted according to the display mode. Specifically, when the second interface is displayed in a right-to-left order, the character element in the second interface can be aligned to the right side. That is, the following step 106 can be performed. When the second interface is displayed in left-to-right order, the text elements in the second interface can be aligned to the left side, i.e., step 107 below can be performed.
[0062] In the present embodiment, the second interface in FIG. 2D is displayed from right to left. Therefore, the text element 10 in the first interface, “to provide a simple and convenient introduction to the content of the present invention”, [Table 4] 2E, which includes character element 20, character element 80, and character element 90, “WeChat,” can be aligned to the right to obtain the interface in FIG. 2E, which is displayed in a right-to-left order.
[0063] In step 106, the text elements in the second interface are right-aligned.
[0064] In step 107, the text elements in the second interface are left-aligned.
[0065] 5 is a flow chart showing a user interface display method according to another exemplary embodiment of the present invention. As shown in FIG. 5, the method can further include the following steps 108 and 109.
[0066] In step 108, a third target element in the first interface is determined.
[0067] In an embodiment of the present invention, the third target element can be an element displayed in the reverse direction. In an example of the present invention, the third target element can be a second icon element. For example, the return arrow button, the left page turning icon 50 in FIG. 2A and the right page turning icon 60 can all be the third target element.
[0068] In the first interface of the embodiment of the present invention, an element other than the third target element can be determined as the second target element.
[0069] In step 109, the third target element is left in the second interface.
[0070] After the third target element is determined, the third target element can be left in the second interface, so that the user can directly view the elements displayed in the reverse direction.
[0071] It should be noted that step 108 can be performed before step 102, or step 108 can be performed after step 102, or step 102 and step 108 can be performed simultaneously, but the present invention is not limited thereto.
[0072] 6 is a block diagram showing a user interface display device according to an exemplary embodiment of the present invention. Referring to FIG. 6, the device 600 includes a first rotation module 601 for obtaining a first interface by mirror-rotating a rotation waiting user interface about a symmetry axis of the user interface, a first determination module 602 for obtaining a first target element in the first interface obtained by the first rotation module 601, a second rotation module 603 for rotating the first target element obtained by the first rotation module 601 in the first interface about a symmetry axis of the first target element to rotate the first target element into a second target element, thereby obtaining a second interface, and a display module 604 for displaying the second interface obtained by the second rotation module 603.
[0073] Preferably, the first target element includes a text element and / or a first icon element, and the first icon element is an icon that does not include a direction indicator.
[0074] Preferably, the first target element further includes one or more of a virtual keyboard, a status bar, and a video playback module.
[0075] Preferably, the first determination module 602 includes a first acquisition sub-module for acquiring a preset first element set, and a first determination sub-module for determining that an element belonging to the first element set acquired by the first acquisition sub-module in the first interface acquired by the first rotation module 601 is the first target element.
[0076] Preferably, the first determination module 602 includes a second acquisition sub-module for acquiring a preset second element set, and a second determination sub-module for determining an element that does not belong to the second element set acquired by the second acquisition sub-module in the first interface acquired by the first rotation module 601 as the first target element.
[0077] Preferably, the elements in the first interface include a first parent element and a first child element, and the first determining module 602 includes a third sub-module for determining that the first child element belongs to a first category, and a fourth sub-module for determining that the first child element belongs to the first target element if the first parent element belongs to the first target element.
[0078] Preferably, the element in the first interface includes a second parent element and a second child element, and the first determination module 602 includes a fifth sub-module for determining that the second parent element belongs to a second category, and a sixth sub-module for determining that the second parent element and the second child element are the first target element.
[0079] 7 is a block diagram showing a user interface display device according to another exemplary embodiment of the present invention. Referring to FIG. 7, the device 600 may further include a second determination module 605 for determining a third target element in the first interface obtained by the first rotation module 601, and a retention module 606 for leaving the third target element in the second interface.
[0080] Preferably, the second target element comprises a second icon element, and the second icon element is an icon including a direction indicator mark.
[0081] 8 is a block diagram showing a user interface display device according to another embodiment of the present invention. Referring to FIG. 8, the display device 600 may further include an alignment module 607. The alignment module 607 is used to align the text element in the second interface obtained by the second rotation module 604 to the right side when the first target element determined by the first determination module 602 includes a text element and the second interface is displayed in a right-to-left order. The alignment module 607 is also used to align the text element in the second interface to the left side when the first target element determined by the first determination module 602 includes a text element and the second interface is displayed in a left-to-right order.
[0082] In the apparatus according to the embodiment, the specific operations of each module of the apparatus can be referred to in the embodiment of the method described in detail above, so they will not be described again here.
[0083] The present invention further provides a computer-readable medium having a computer program stored thereon, the computer program being executed by a processor to perform steps of a method for ordering a user interface in right-to-left order according to an embodiment of the present invention.
[0084] Referring to FIG. 9, FIG. 9 is a diagram showing the structure of an electronic device (e.g., a terminal) 900 used in an embodiment of the present invention. The terminal according to the embodiment of the present invention may include, but is not limited to, portable terminals such as mobile phones, notebook computers, digital broadcasting receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Media Players), and car terminal devices (e.g., navigation systems), as well as non-portable terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 9 is merely an example of the present invention and does not limit the scope of the functions and use of the embodiment of the present invention.
[0085] As shown in Fig. 9, the electronic device 900 may include a processing unit (e.g., a central processing unit, an image processing unit, etc.) 901. The processing unit 901 may perform a predetermined operation and process according to a program stored in a read-only memory (ROM) 902 or a program transmitted from a storage device 908 to a random access memory (RAM) 903. The RAM 903 further stores various programs and data required for the operation of the electronic device 900. The processing unit 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0086] The following devices can be connected to the input / output (I / O) interface 905. The devices can include input devices 906 including, for example, a touch panel, a touch board, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including a tape, a hard disk, etc.; and communication devices 909. The communication devices 909 can support wireless or wired communication between the electronic device 900 and other devices to exchange data. Although FIG. 10 shows an electronic device 900 including various devices, the electronic device 900 may include all or none of the devices shown in the figure. That is, the electronic device 900 can include or employ more or less devices.
[0087] In particular, in an embodiment of the present invention, the steps shown in the flowcharts can be implemented by a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program stored in a computer-readable medium, and the computer program can include program code for implementing the method in the flowcharts. In this embodiment, the computer program can be downloaded and installed from a network by a communication device 909, or downloaded and installed from a storage device 908, or downloaded and installed from a ROM 902. When the computer program is executed by the processing device 901, it can implement a predetermined function in the method according to the embodiment.
[0088] It should be noted that the computer readable medium can be a computer readable signal medium, a computer readable storage medium, or a combination of the two. The computer readable storage medium can be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. Specific examples of the computer readable storage medium can include, but are not limited to, a portable computer disk connected by one or more conductors, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, optical fiber, a compact disc read-only memory (CD-ROM), an optical storage component, a magnetic storage component, or any combination thereof. In an embodiment of the present invention, the computer readable storage medium is a tangible medium that includes or stores a program, and the program can be used in an instruction execution system, device, or combination thereof. In an embodiment of the present invention, the computer-readable signal medium includes a data signal transmitted by a base band or a portion of a carrier, and the computer-readable signal medium has computer-readable program code stored therein. The data signal transmitted by the method can be various signals, such as electromagnetic signals, optical signals, or combinations thereof, but the present invention is not limited thereto. The computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium. The computer-readable signal medium can transmit, propagate, or transmit a program for use in an instruction execution system, device, or combination thereof.The program code contained in the computer readable medium may be transmitted by any suitable medium, such as electrical wire, optical cable, RF (Radio Frequency), etc., or any combination thereof.
[0089] In an embodiment of the present invention, the client terminals, servers, etc. communicate with a current or future network protocol by a communication means such as HTTP (HyperText Transfer Protocol), etc., and can be connected to any real or media type digital data communication (e.g., a communication network). The communication network can include a local area network (LAN), a wide area network (WAN), an internetwork (e.g., the Internet), and an end-to-end network (e.g., an ad hoc end-to-end network) and any current or future network protocol.
[0090] The computer readable medium may be provided in the electronic device or may be separate from the electronic device.
[0091] The computer-readable medium stores one or more programs, and when the one or more programs are executed by the electronic device, the electronic device performs the following steps: a step of mirror-rotating the rotation waiting user interface about a symmetry axis of the user interface to obtain a first interface; a step of determining a first target element in the first interface; a step of rotating the first target element to a second target element in the first interface by mirror-rotating the first target element about the symmetry axis of the first target element, thereby obtaining a second interface; and a step of displaying the second interface.
[0092] Computer program code for implementing the method according to the embodiment of the present invention can be created in one or more programming languages or a combination thereof. The programming language can include a target programming language, such as Java, Smalltalk, C++, or can further include a commonly used process programming language, such as the "C" programming language or a similar programming language. The program code can be executed by a client computer, or partly by a client computer, or executed as an independent software package, or partly by a client computer and partly by a remote computer, or executed by a remote computer or a server. When executed by a remote computer, the remote computer can be connected to the client computer or an external computer by any network, such as a local area network (LAN) or a wide area network (WAN) (e.g., connected to an external computer by the Internet provided by an Internet Service Provider).
[0093] The flowcharts and block diagrams in the drawings illustrate the structure, function and operation of a system capable of implementing the system, method and computer program according to the embodiment of the present invention. Each box in the flowcharts and block diagrams represents a module, a part of a program, or a part of code, and the module, part of a program, or part of code may include executable instructions for implementing a certain function. It should be noted that in other embodiments, the steps in each box of the block diagram may not be performed in the order shown in the drawings. For example, steps in adjacent boxes are usually performed in parallel order, but may be performed in reverse order depending on the functions to be implemented. It should be noted that each box in the block diagram and / or the flowchart, and a combination of each box in the block diagram and / or the flowchart may be implemented by hardware capable of achieving a certain function or performing a certain operation, or by a combination of dedicated hardware and computer instructions.
[0094] The modules according to the embodiment of the present invention can be implemented by software or hardware. Unless otherwise specified, the names of the modules do not limit the modules. For example, the first rotation module can be called "a module in which a rotation standby user interface performs a mirror rotation with the axis of symmetry of the user interface as the rotation axis."
[0095] At least some of the functions of the embodiments of the present invention may be implemented by one or more logic units. For example, commonly used logic units may include, but are not limited to, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs), System-on-a-chip (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0096] In the embodiment of the present invention, the computer-readable medium can be a tangible medium. The computer-readable medium can include or store a program used by or in conjunction with an instruction execution system, device or equipment. The computer-readable medium can be a computer-readable storage medium or a computer-readable signal medium. The computer-readable medium can be an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any combination thereof. Specific examples of the computer-readable storage medium can include, but are not limited to, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory or flash memory), optical fiber, a compact disc read-only memory (CD-ROM), an optical storage component, a magnetic storage component, or any combination thereof, electrically connected by one or more conductors.
[0097] In example 1 of the present invention, a method for displaying a user interface according to one or more embodiments of the present invention is provided, the method includes the steps of: a rotation waiting user interface performing a mirror rotation about a symmetry axis of the user interface to obtain a first interface, determining a first target element in the first interface, rotating the first target element into a second target element in the first interface by performing a mirror rotation about the symmetry axis of the first target element as a rotation axis, thereby obtaining a second interface, and displaying the second interface.
[0098] In Example 2 of the present invention, in the user interface display method of Example 1 according to one or more embodiments of the present invention, the first target element includes a text element and / or a first icon element, and the first icon element is an icon that does not include a directional indicator.
[0099] In Example 3 of the present invention, in the user interface display method of Example 1 according to one or more embodiments of the present invention, the first target element further includes one or more of a virtual keyboard, a status bar, and a video playback module.
[0100] In Example 4 of the present invention, in the user interface display method of Example 1 according to one or more embodiments of the present invention, the step of determining a first target element in the first interface includes a step of obtaining a pre-defined first element set, and a step of determining an element belonging to the first element set in the first interface as the first target element.
[0101] In Example 5 of the present invention, in the user interface display method of Example 1 according to one or more embodiments of the present invention, the step of determining a first target element in the first interface includes a step of obtaining a preset second element set, and a step of determining an element not belonging to the second element set in the first interface as the first target element.
[0102] In Example 6 of the present invention, in the user interface display method of Example 1 according to one or more embodiments of the present invention, the elements in the first interface include a first parent element and a first child element, and determining the first target element in the first interface includes determining that the first child element belongs to a first category, and if the first parent element belongs to the first target element, determining that the first child element belongs to the first target element.
[0103] In Example 7 of the present invention, in the user interface display method of Example 1 according to one or more embodiments of the present invention, the element in the first interface includes a second parent element and a second child element, and determining the first target element in the first interface includes determining that the second parent element belongs to a second category, and determining the second parent element and the second child element as the first target element.
[0104] In Example 8 of the present invention, the user interface display method of Example 1 according to one or more embodiments of the present invention further includes a step of determining a third target element in the first interface and a step of leaving the third target element in the second interface.
[0105] In Example 9 of the present invention, in the user interface display method of Example 8 according to one or more embodiments of the present invention, the third target element includes a second icon element, and the second icon element is an icon including a direction indicator mark.
[0106] In Example 10 of the present invention, in the user interface display method described in any one of Examples 1 to 9 relating to one or more embodiments of the present invention, when the first target element includes a text element, the method further includes a step of aligning the text element in the second interface to the right side when the second interface is displayed in a right-to-left order, and a step of aligning the text element in the second interface to the left side when the second interface is displayed in a left-to-right order.
[0107] In example 11 of the present invention, a user interface display device according to one or more embodiments of the present invention is provided, the device includes a first rotation module for obtaining a first interface by mirror-rotating a rotation waiting user interface about a symmetry axis of the user interface as a rotation axis, a first determination module for obtaining a first target element in the first interface obtained by the first rotation module, a second rotation module for rotating the first target element into a second target element in the first interface by mirror-rotating the first target element about the symmetry axis of the first target element as a rotation axis, thereby obtaining a second interface, and a display module for displaying the second interface obtained by the second rotation module.
[0108] In Example 12 of the present invention, in the user interface display device of Example 11 relating to one or more embodiments of the present invention, the first target element includes a character element and / or a first icon element, and the first icon element is an icon that does not include a directional indicator mark.
[0109] In Example 13 of the present invention, in the user interface display device of Example 11 according to one or more embodiments of the present invention, the first target element further includes one or more of a virtual keyboard, a status bar, and a video playback module.
[0110] In example 14 of the present invention, in the user interface display device of example 11 relating to one or more embodiments of the present invention, it includes a first acquisition sub-module for acquiring a pre-defined first element set, and a first determination sub-module for determining an element belonging to the first element set acquired by the first acquisition sub-module in the first interface acquired by the first rotation module as the first target element.
[0111] In Example 15 of the present invention, in the user interface display device of Example 11 relating to one or more embodiments of the present invention, the first determination module includes a second acquisition sub-module for acquiring a pre-set second element set, and a second determination sub-module for determining, in the first interface acquired by the first rotation module, an element that does not belong to the second element set acquired by the second acquisition sub-module as the first target element.
[0112] In Example 16 of the present invention, in the user interface display device of Example 11 according to one or more embodiments of the present invention, the elements in the first interface include a first parent element and a first child element, and the first determining module includes a third sub-module for determining that the first child element belongs to a first category, and a fourth sub-module for determining that the first child element belongs to the first target element if the first parent element belongs to the first target element.
[0113] In Example 17 of the present invention, in the user interface display device of Example 11 according to one or more embodiments of the present invention, the elements in the first interface include a second parent element and a second child element, and the first determining module includes a fifth sub-module for determining that the second parent element belongs to a second category, and a sixth sub-module for determining that the second parent element and the second child element are the first target element.
[0114] In example 18 of the present invention, the user interface display device of example 11 according to one or more embodiments of the present invention further includes a second determination module for determining a third target element in the first interface obtained by the first rotation module, and a retention module for leaving the third target element in the second interface.
[0115] In Example 19 of the present invention, in the user interface display device of Example 18 according to one or more embodiments of the present invention, the third target element includes a second icon element, and the second icon element is an icon including a direction indicator mark.
[0116] In Example 20 of the present invention, the user interface display device according to any one of Examples 11 to 19 according to one or more embodiments of the present invention further includes an alignment module. The alignment module is used to align the text element in the second interface acquired by the second rotation module to the right side when the first target element determined by the first determination module includes a text element and the second interface is displayed in a right-to-left order. The alignment module is also used to align the text element in the second interface to the left side when the first target element determined by the first determination module includes a text element and the second interface is displayed in a left-to-right order.
[0117] In Example 21 of the present invention, a computer-readable storage medium according to one or more embodiments of the present invention is provided. A computer program stored in the computer-readable storage medium is executed by a processing device to perform the steps of the method according to any one of Examples 1 to 10.
[0118] In example 22 of the present invention, there is provided an electronic device according to one or more embodiments of the present invention, the electronic device including a storage device for storing a computer program, and a processing device for performing the steps of the method according to any one of examples 1 to 10 by executing the computer program stored in the storage device.
[0119] The above describes the preferred embodiments of the present invention and the technical matters used therein. As those skilled in the art know, the scope of the present invention is not limited to the technical matters constituted by the combination of the above technical features, but may further include other technical matters formed by the combination of the above technical features or similar technical features within the scope of the present invention. For example, the present invention may further include technical matters formed by the above technical features and similar technical features (but not limited thereto) disclosed in the embodiments of the present invention.
[0120] It should be noted that, although the steps of the present invention have been described in a specific order, the steps of the present invention can be performed in other orders, not limited to the specific order. By performing multiple tasks simultaneously or in parallel under certain conditions, unexpected inventive effects can be obtained. Similarly, although the above specification includes multiple specific embodiments of the present invention, the present invention is not limited to only the specific embodiments. The embodiment can be implemented by combining specific technical features described in one embodiment. In addition, the specific technical features described in one embodiment can be combined with multiple embodiments respectively, or can be combined with multiple embodiments simultaneously by suitable combining means.
[0121] Although the present invention has been described above by the specific structural features and / or logical actions of the method, it is not intended that the claims of the present invention be defined solely by the specific structural features and / or logical actions of the method. On the contrary, the specific features and operations are merely examples for implementing the claims of the present invention. In the device according to the embodiment, the specific operations of each module of the device can be referred to the embodiment of the method described in detail above, and will not be described again here.
Claims
1. a rotation waiting user interface performing a mirror rotation about an axis of symmetry of the user interface to obtain a first interface; determining a first target element in the first interface; rotating the first target element to the second target element in the first interface by mirror rotating the first target element around the symmetry axis of the first target element as a rotation axis, thereby obtaining a second interface; and displaying the second interface; When the first target element includes a text element, the method further includes aligning the text element in the second interface to the right side when the text elements in the second interface are displayed in a right-to-left order; and aligning the text element in the second interface to the left side when the text elements in the second interface are displayed in a left-to-right order; the mirror rotation of the user interface around a symmetry axis of the user interface results in the first target element being displayed in a reverse direction on the display screen, the first target element including one or more elements that should always be displayed in a forward direction on the display screen according to a user's reading habits, and a direction of the first target element in the reverse direction is opposite to a direction of the first target element in the forward direction. A user interface display method comprising:
2. 2. The method of claim 1, wherein the first target element comprises a text element and / or a first icon element, and the first icon element is an icon that does not include a direction indicator.
3. The method of claim 2 , wherein the first target element further comprises one or more of a virtual keyboard, a status bar, and a video playback module.
4. 2. The user interface display method of claim 1, wherein the step of determining a first target element in the first interface includes the steps of: obtaining a preset first element set; and determining an element belonging to the first element set in the first interface as the first target element.
5. 2. The user interface display method of claim 1, wherein the step of determining a first target element in the first interface includes the steps of: obtaining a preset second element set; and determining an element in the first interface that does not belong to the second element set as the first target element.
6. the elements in the first interface include a first parent element and a first child element; The user interface display method of claim 1, wherein the step of determining a first target element in the first interface includes the steps of determining that the first child element belongs to a first category, and determining that the first child element belongs to the first target element if the first parent element belongs to the first target element.
7. the elements in the first interface include a second parent element and a second child element; The user interface display method of claim 1, wherein the step of determining a first target element in the first interface includes the steps of determining that the second parent element belongs to a second category, and determining the second parent element and the second child element to be the first target element.
8. 2. The user interface display method of claim 1, further comprising: determining a third target element in the first interface; and leaving the third target element in the second interface.
9. 9. The method of claim 8, wherein the third target element comprises a second icon element, and the second icon element is an icon including a direction indicator.
10. When the first target element includes a left-to-right text element, the method further comprises the steps of: aligning the left-to-right text element in the second interface to the left, the left-to-right text element in the second interface being displayed in a left-to-right order; 2. The user interface display method according to claim 1, wherein when the first target element includes a right-to-left character element, the method further comprises the step of displaying the right-to-left character element of the second interface in a right-to-left order, and aligning the right-to-left character element in the second interface to the right.
11. a first rotation module for causing the rotation waiting user interface to perform a mirror rotation about a symmetry axis of the user interface to obtain a first interface; a first determination module for obtaining a first target element in the first interface obtained by the first rotation module; a second rotation module, in the first interface, for rotating the first target element to a second target element by mirror rotation about a symmetry axis of the first target element, thereby obtaining a second interface; a display module for displaying the second interface acquired by the second rotation module; The user interface presentation device further includes an alignment module; the alignment module is used for aligning the character elements in the second interface obtained by the second rotation module to the right side when the first target element determined by the first determination module includes a character element and the character elements in the second interface are displayed in a right-to-left order; the alignment module is also used for aligning the character elements in the second interface to the left when the first target element determined by the first determination module includes a character element and the character elements in the second interface are displayed in a left-to-right order; As a result of the mirror rotation of the user interface about a symmetry axis of the user interface as a rotation axis, the first target element is displayed in a reverse direction relative to a display screen, the first target element includes one or more elements that should always be displayed in a forward direction relative to the display screen according to a user's reading habits, and a direction of the first target element in the reverse direction is opposite to a direction of the first target element in the forward direction. A user interface display device comprising:
12. A computer-readable storage medium having a computer program stored therein, the computer-readable storage medium being characterized in that the steps of the user interface display method according to any one of claims 1 to 10 are performed by executing the computer program on a processing device.
13. An electronic device comprising: a storage device for storing a computer program; and a processing device for performing steps in the user interface display method according to any one of claims 1 to 10 by executing the computer program stored in the storage device.
Citation Information
Patent Citations
Method and device for achieving right-to-left (RTL) layout mode of user interfaces
CN106095437A
Method and device for video display, and program
JP2005215285A
Image generation system, projector, program, information memory medium and image generation method
JP2008256964A
Information processing apparatus, screen layout method and program
JP2010039651A
Display position setting device
JP2011215591A
