Transverse and vertical screen switching method, electronic equipment and computer readable medium

By obtaining detailed information about touch operations to determine screen switching conditions, the problem of inability to switch screens when the device is placed horizontally and the issue of automatic switching have been resolved, enabling a more flexible screen switching method and improving the user experience.

CN119292510APending Publication Date: 2025-01-10HANGZHOU LINGBAN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411329430.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In existing technologies, devices cannot switch between portrait and landscape orientations when placed horizontally, and automatically switching the screen orientation when the device is not in a horizontal position results in a poor user experience.

Method used

By obtaining detailed information about touch operations, including touch initialization direction, swipe time, and swipe distance, it can determine whether the preset screen switching conditions are met, and switch the screen when the conditions are met, thereby reducing accidental triggering of landscape and portrait screen switching.

Benefits of technology

It enables landscape and portrait screen switching when the device is placed horizontally, reducing automatic switching when no switching is needed and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292510A_ABST
    Figure CN119292510A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a transverse and vertical screen switching method, electronic equipment and a computer readable medium. A specific embodiment of the method comprises the following steps: in response to determining that a touch operation meets a preset screen switching touch condition, obtaining touch detail information corresponding to the touch operation; determining whether the touch detail information meets a preset screen switching condition or not according to the touch detail information; and in response to determining that the touch detail information meets the preset screen switching condition, performing switching processing on the current display screen. According to the embodiment, when the equipment is horizontally placed, the transverse screen and the vertical screen of the screen can be switched, the situation of transverse screen and vertical screen switching caused by mistaken touch of a user can be reduced, the freedom degree of transverse screen and vertical screen switching of the user is improved, and then the user experience feeling is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of virtual visual technology, and in particular to a method for switching between horizontal and vertical screens, an electronic device, and a computer-readable medium. Background Art

[0002] Switching the horizontal and vertical screens of the device can facilitate the user's use of the device and improve the user experience. Currently, when switching the horizontal and vertical screens of the device, the commonly used method is to automatically switch the horizontal and vertical screens of the device screen based on the direction of gravity acceleration of the IMU.

[0003] However, it is found in practice that when the direction of gravity acceleration based on the IMU is used to switch the device's screen between landscape and portrait, the following technical problems often occur: when the device is placed horizontally, the user cannot switch the device's screen between landscape and portrait, and when the device's automatic landscape and portrait switching logic is activated, when the device is not in a horizontal state and the user does not need to switch the screen between landscape and portrait, the device's screen will automatically switch, resulting in a poor user experience.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art. Summary of the invention

[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0006] Some embodiments of the present disclosure propose a method for switching between horizontal and vertical screens, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a method for switching between horizontal and vertical screens, the method comprising: in response to determining that a touch operation satisfies a preset screen switching touch condition, obtaining touch detail information corresponding to the touch operation, wherein the touch detail information includes a touch initialization direction, a touch sliding time, and a touch sliding distance; based on the touch detail information, determining whether the touch detail information satisfies the preset screen switching condition; in response to determining that the touch detail information satisfies the preset screen switching condition, switching the current display screen.

[0008] Optionally, the method also includes: determining whether the above-mentioned touch sliding distance satisfies a preset sliding distance condition; in response to determining that the above-mentioned touch sliding distance satisfies the above-mentioned preset sliding distance condition, determining whether the above-mentioned touch sliding time satisfies a preset sliding time condition; in response to determining that the above-mentioned touch sliding time satisfies the above-mentioned preset sliding time condition, determining that the above-mentioned touch detail information satisfies the above-mentioned preset screen switching condition.

[0009] Optionally, the method also includes: in response to determining that the above-mentioned touch operation satisfies the first touch operation condition, determining whether the above-mentioned touch initialization direction satisfies the first preset area direction condition; in response to determining that the above-mentioned touch initialization direction satisfies the above-mentioned first preset area direction condition, switching the above-mentioned current display screen to a vertical screen.

[0010] Optionally, the method also includes: in response to determining that the touch initialization direction does not satisfy the first preset area direction condition, determining whether the touch initialization direction satisfies the second preset area direction condition; in response to determining that the touch initialization direction satisfies the second preset area direction condition, switching the current display screen to a horizontal screen.

[0011] Optionally, the method also includes: in response to determining that the above-mentioned touch operation satisfies a second touch operation condition, generating a touch fusion direction corresponding to the above-mentioned touch operation according to the above-mentioned touch initialization direction and the above-mentioned touch trajectory direction; determining whether the above-mentioned touch fusion direction satisfies a first preset area direction condition; in response to determining that the above-mentioned touch fusion direction satisfies the above-mentioned first preset area direction condition, switching the above-mentioned current display screen to a vertical screen.

[0012] Optionally, the method also includes: in response to determining that the touch fusion direction does not satisfy the first preset area direction condition, determining whether the touch fusion direction satisfies the second preset area direction condition; in response to determining that the touch fusion direction satisfies the second preset area direction condition, switching the current display screen to a horizontal screen.

[0013] In a second aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device for storing one or more programs; a touch screen for detecting a user's touch operation; when the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any implementation method in the first aspect.

[0014] In a third aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the implementations in the first aspect above is implemented.

[0015] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the horizontal and vertical screen switching methods of some embodiments of the present disclosure, it is realized that when the device is placed horizontally, the horizontal and vertical screens of the device can also be switched, and the situation that the screen automatically switches between horizontal and vertical screens when the user does not need to switch the screen is reduced, thereby further improving the user experience. Specifically, the reason why the horizontal and vertical screens of the device cannot be switched when the device is placed horizontally, and the screen automatically switches between horizontal and vertical screens when the user does not need to switch the screen, is that when the device is placed horizontally, the user cannot switch between the horizontal and vertical screens of the device, and when the horizontal and vertical screen automatic switching logic of the device is activated, when the device is not in a horizontal placement state and the user does not need to switch the horizontal and vertical screen directions of the screen, the screen of the device automatically switches, resulting in a poor user experience. Based on this, the horizontal and vertical screen switching methods of some embodiments of the present disclosure, first, in response to determining that the touch operation meets the preset screen switching touch condition, the touch detail information corresponding to the above touch operation is obtained. Among them, the above touch detail information includes the touch initialization direction, the touch sliding time and the touch sliding distance. Thus, the details of the user's touch operation can be obtained, which can be used to determine whether the user's touch operation meets the screen switching condition. Then, according to the above touch detail information, it is determined whether the above touch detail information satisfies the preset screen switching condition. Thus, it can be determined whether the user wants to switch the screen horizontally or vertically. Secondly, in response to determining that the above touch detail information satisfies the above preset screen switching condition, the current display screen is switched. Thus, the horizontal and vertical screens can be further switched. Also because the screen of the device is not switched horizontally or vertically based on the direction of the gravity acceleration of the IMU, but the screen is switched horizontally or vertically when it is detected that the user's touch operation satisfies the screen switching condition. Thus, when the device is placed horizontally, when it is detected that the user's touch operation satisfies the above screen switching condition, the device can also be switched, and only when the user's touch operation satisfies the above screen switching condition, the horizontal and vertical screens of the screen will be switched, thereby reducing the horizontal and vertical screen switching caused by the user's accidental touch. And because only the initial touch direction of the user needs to be obtained, because the user's sliding direction and sliding trajectory are not limited, the user's freedom to switch horizontal and vertical screens is increased, thereby improving the user's experience. Therefore, when the device is placed horizontally, the screen can be switched between horizontal and vertical positions, and the situation where the screen is switched between horizontal and vertical positions due to accidental touches by the user can be reduced, further improving the user's freedom in switching between horizontal and vertical positions, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0017] Figure 1 is a flow chart of some embodiments of the method for switching between horizontal and vertical screens according to the present disclosure;

[0018] Figure 2-3 is a schematic diagram of an application scenario of the horizontal and vertical screen switching method disclosed in the present invention;

[0019] Figure 4 is a flow chart of other embodiments of the method for switching between horizontal and vertical screens according to the present disclosure;

[0020] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0022] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0026] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0027] Figure 1 The process 100 of some embodiments of the method for switching between horizontal and vertical screens according to the present disclosure is shown. The method for switching between horizontal and vertical screens comprises the following steps:

[0028] Step 101: in response to determining that a touch operation satisfies a preset screen switching touch condition, acquiring touch detail information corresponding to the touch operation.

[0029] In some embodiments, in response to determining that the touch operation satisfies the preset screen switching touch condition, the execution subject (e.g., computing device) of the horizontal and vertical screen switching method may obtain touch detail information corresponding to the above touch operation. Among them, the above touch detail information may include touch initialization direction, touch sliding time, and touch sliding distance. The above touch initialization direction may represent the vector of the initial direction of the user's finger touching the above touch screen. The above touch operation may be an operation of the user's finger touching the touch screen of the electronic device. The above touch detail information may represent the details of the user touching the above touch screen. The above touch sliding time may represent the time when the user's finger touches the above touch screen. The above touch sliding distance may represent the distance that the user's finger slides on the above touch screen. The above preset screen switching touch condition may be that the number of fingers used by the user to touch the above touch screen is the preset number of fingers. Here, the value of the above preset number of fingers is not specifically limited. For example, the preset number of fingers may be 2. In practice, the above execution subject may obtain the touch detail information corresponding to the above touch operation from a database storing the touch detail information corresponding to the touch operation.

[0030] It should be noted that the above electronic device can be Figure 5 The electronic device described above, the touch screen can be Figure 5 An electronic device includes a touch screen.

[0031] However, it is found in practice that when the method disclosed herein is used to switch the horizontal and vertical screens according to the touch detail information, the following technical problems often occur:

[0032] The horizontal and vertical screens are switched directly according to the acquired touch detail information without considering preprocessing the acquired touch detail information, resulting in large noise in the acquired touch detail information, and low accuracy in switching the horizontal and vertical screens according to the acquired touch detail information, resulting in poor user experience.

[0033] Faced with the above technical problems, we decided to adopt the following solutions:

[0034] Optionally, after step 101, the execution entity may further perform the following steps:

[0035] In the first step, according to the preset transformation coefficient, the touch detail information is subjected to wavelet transformation processing to obtain first coefficient information and second coefficient information. The first coefficient information may be an approximate coefficient corresponding to the touch detail information. The second coefficient information may be a detail coefficient corresponding to the touch detail information. The preset transformation coefficient may represent a preset reconstruction scale coefficient. For example, the preset transformation coefficient may be 6. In practice, the execution subject may perform wavelet transformation processing on the touch detail information through a discrete wavelet denoising algorithm to obtain first coefficient information and second coefficient information.

[0036] The second step is to store the obtained second coefficient information as coefficient information in a coefficient information set, wherein the coefficient information set may include each first coefficient information and each second coefficient information.

[0037] The third step is to perform the following decomposition steps based on the first coefficient information obtained:

[0038] In the first decomposition step, the obtained first coefficient information is decomposed to obtain first decomposition coefficient information and detail coefficient information. The first decomposition coefficient information can represent the approximate coefficient corresponding to the first coefficient information. The detail coefficient information can represent the detail coefficient corresponding to the first coefficient information. In practice, the execution subject can decompose the obtained first coefficient information by discrete wavelet transform algorithm to obtain first decomposition coefficient information and detail coefficient information.

[0039] In the second decomposition step, the obtained first decomposition coefficient information and detail coefficient information are stored as individual coefficient information in a coefficient information set.

[0040] In a third decomposition step, in response to determining that the number of decompositions is less than the preset number of decompositions, the first decomposition coefficient information is used as the first coefficient information, and the above decomposition step is performed again. The above decomposition number can represent the number of times the decomposition step is currently executed. The above preset number of decompositions can represent the set number of decompositions. Here, the specific value of the above preset number of decompositions is not limited.

[0041] In the fourth decomposition step, in response to determining that the number of decompositions is equal to the above-mentioned preset number of decompositions, the touch detail information after denoising is generated according to the coefficient information set as the touch detail information. In practice, the above-mentioned execution subject can select each coefficient information that meets the preset selection condition from the above-mentioned coefficient information set as each first target coefficient information. Among them, the above-mentioned preset selection condition can be that the order of the coefficient information representing the detail coefficient is within the preset order range. The above-mentioned preset order range can represent the first preset number of coefficient information. The above-mentioned preset number can be the number represented by the preset transformation coefficient. For example, if the preset transformation coefficient is 6, the first preset number of coefficient information is the first 6. Then, the coefficient information representing the approximate coefficient in the above-mentioned coefficient information set is determined as each second target coefficient information. Afterwards, the above-mentioned execution subject can reconstruct the above-mentioned first target coefficient information and the above-mentioned second target coefficient information through the inverse discrete wavelet transform algorithm to obtain the touch detail information after denoising as the touch detail information.

[0042] The above technical solution, as an inventive point of an embodiment of the present disclosure, solves the technical problem of "directly switching the horizontal and vertical screens according to the acquired touch detail information without considering preprocessing the acquired touch detail information, resulting in large noise in the acquired touch detail information, resulting in low accuracy of switching the horizontal and vertical screens according to the acquired touch detail information, and poor user experience". If the above factors are solved, the accuracy of switching the horizontal and vertical screens according to the acquired touch detail information and the user experience can be improved. In order to achieve this effect, the present disclosure performs denoising on the acquired touch detail information when switching the horizontal and vertical screens according to the acquired touch detail information, and then switches the horizontal and vertical screens according to the denoising touch detail information, thereby reducing the noise in the touch detail information. Therefore, switching the horizontal and vertical screens according to the denoising touch detail information can improve the accuracy of switching the horizontal and vertical screens, thereby improving the user experience.

[0043] Step 102: Determine whether the touch detail information satisfies a preset screen switching condition according to the touch detail information.

[0044] In some embodiments, the execution subject may determine whether the touch detail information satisfies a preset screen switching condition based on the touch detail information. The preset screen switching condition may be that the touch sliding distance included in the touch detail information satisfies a preset sliding distance condition and the touch sliding time included in the touch detail information satisfies a preset sliding time condition. The preset sliding distance condition may be that the touch sliding distance included in the touch detail information is greater than a preset sliding distance. Here, no specific limitation is made to the value of the preset sliding distance. The preset sliding time condition may be that the touch sliding time included in the touch detail information is greater than a preset sliding time. Here, no specific limitation is made to the value of the preset sliding time.

[0045] In some optional implementations of some embodiments, the execution subject may determine whether the touch detail information satisfies a preset screen switching condition according to the touch detail information through the following steps:

[0046] The first step is to determine whether the touch sliding distance meets a preset sliding distance condition.

[0047] In a second step, in response to determining that the touch sliding distance satisfies the preset sliding distance condition, determining whether the touch sliding time satisfies the preset sliding time condition.

[0048] In a third step, in response to determining that the touch sliding time satisfies the preset sliding time condition, determining that the touch detail information satisfies the preset screen switching condition.

[0049] Step 103: in response to determining that the touch detail information satisfies a preset screen switching condition, switching processing is performed on the current display screen.

[0050] In some embodiments, in response to determining that the touch detail information satisfies the preset screen switching condition, the execution subject may perform a switching process on the currently displayed screen.

[0051] In some optional implementations of some embodiments, in response to determining that the touch detail information satisfies the preset screen switching condition, the execution subject may perform a switching process on the current display screen through the following steps:

[0052] In the first step, in response to determining that the touch operation satisfies the first touch operation condition, it is determined whether the touch initialization direction satisfies the first preset area direction condition. Among them, the first touch operation condition may be that the touch details information of the touch operation does not include the touch track direction. The touch track direction may represent the vector of the track direction of the user's finger sliding on the touch screen. The first preset area direction condition may be that the touch initialization direction after translation to the origin of the target coordinate system or the touch fusion direction after translation to the origin of the target coordinate system is located in the first target area. It should be noted that the touch initialization direction after translation to the origin of the target coordinate system is a representation of the translation of the starting point of the touch initialization direction to the origin of the target coordinate system. The touch fusion direction after translation to the origin of the target coordinate system is a representation of the translation of the starting point of the touch fusion direction to the origin of the target coordinate system. The first target area may represent the screen area of ​​the touch screen. The touch fusion direction may represent the weighted direction between the touch initialization direction and the touch track direction. The target coordinate system may be a two-dimensional coordinate system created with the center point of the touch screen as the origin, and the X-axis under the target coordinate system may be the symmetry axis of the horizontal screen direction of the touch screen. The Y axis in the target coordinate system can be the vertical screen of the touch screen. Figure 2 As shown, the angle represented by β can be 45°. Figure 2 The P in the above-mentioned image may represent the touch initialization direction after being translated to the origin of the target coordinate system or the touch fusion direction after being translated to the origin of the target coordinate system. When P is located in the above-mentioned first target area, the touch initialization direction or touch fusion direction represented by P satisfies the above-mentioned first preset area direction condition. In practice, first, the above-mentioned execution subject may translate the above-mentioned touch initialization direction to the origin of the above-mentioned target coordinate system, and then determine whether the above-mentioned touch initialization direction satisfies the above-mentioned first preset area direction condition.

[0053] In a second step, in response to determining that the touch initialization direction satisfies the first preset area direction condition, the current display screen is switched to a vertical screen.

[0054] Optionally, after step 103, in response to determining that the touch initialization direction does not satisfy the first preset area direction condition, first, the execution subject may also determine whether the touch initialization direction satisfies the second preset area direction condition. The second preset area direction condition may be that the touch initialization direction after translation to the origin of the target coordinate system or the touch fusion direction after translation to the origin of the target coordinate system is located in the second target area. The second target area may be the screen area of ​​the touch screen. Figure 3 As shown, the angle represented by β can be 45°. Figure 3A in the above may represent the touch initialization direction after being translated to the origin of the target coordinate system or the touch fusion direction after being translated to the origin of the target coordinate system. When A is located in the second target area, the touch initialization direction or touch fusion direction represented by A satisfies the second preset area direction condition. In practice, first, the execution subject may translate the touch initialization direction to the origin of the target coordinate system, and then determine whether the touch initialization direction satisfies the second preset area direction condition.

[0055] Finally, in response to determining that the touch initialization direction satisfies the second preset area direction condition, the current display screen may be switched to a horizontal screen.

[0056] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the horizontal and vertical screen switching methods of some embodiments of the present disclosure, it is realized that when the device is placed horizontally, the horizontal and vertical screens of the device can also be switched, and the situation that the screen automatically switches between horizontal and vertical screens when the user does not need to switch the screen is reduced, thereby further improving the user experience. Specifically, the reason why the horizontal and vertical screens of the device cannot be switched when the device is placed horizontally, and the screen automatically switches between horizontal and vertical screens when the user does not need to switch the screen, is that when the device is placed horizontally, the user cannot switch between the horizontal and vertical screens of the device, and when the horizontal and vertical screen automatic switching logic of the device is activated, when the device is not in a horizontal placement state and the user does not need to switch the horizontal and vertical screen directions of the screen, the screen of the device automatically switches, resulting in a poor user experience. Based on this, the horizontal and vertical screen switching methods of some embodiments of the present disclosure, first, in response to determining that the touch operation meets the preset screen switching touch condition, the touch detail information corresponding to the above touch operation is obtained. Among them, the above touch detail information includes the touch initialization direction, the touch sliding time and the touch sliding distance. Thus, the details of the user's touch operation can be obtained, which can be used to determine whether the user's touch operation meets the screen switching condition. Then, according to the above touch detail information, it is determined whether the above touch detail information satisfies the preset screen switching condition. Thus, it can be determined whether the user wants to switch the screen horizontally or vertically. Secondly, in response to determining that the above touch detail information satisfies the above preset screen switching condition, the current display screen is switched. Thus, the horizontal and vertical screens can be further switched. Also because the screen of the device is not switched horizontally or vertically based on the direction of the gravity acceleration of the IMU, but the screen is switched horizontally or vertically when it is detected that the user's touch operation satisfies the screen switching condition. Thus, when the device is placed horizontally, when it is detected that the user's touch operation satisfies the above screen switching condition, the device can also be switched, and only when the user's touch operation satisfies the above screen switching condition, the horizontal and vertical screens of the screen will be switched, thereby reducing the horizontal and vertical screen switching caused by the user's accidental touch. And because only the initial touch direction of the user needs to be obtained, because the user's sliding direction and sliding trajectory are not limited, the user's freedom to switch horizontal and vertical screens is increased, thereby improving the user's experience. Therefore, when the device is placed horizontally, the screen can be switched between horizontal and vertical positions, and the situation where the screen is switched between horizontal and vertical positions due to accidental touches by the user can be reduced, further improving the user's freedom in switching between horizontal and vertical positions, thereby improving the user experience.

[0057] Further references Figure 4 , which shows a process 400 of another embodiment of the horizontal and vertical screen switching method. The process 400 of the horizontal and vertical screen switching method includes the following steps:

[0058] Step 401: in response to determining that a touch operation satisfies a preset screen switching touch condition, acquiring touch detail information corresponding to the touch operation.

[0059] Step 402: Determine whether the touch detail information satisfies a preset screen switching condition according to the touch detail information.

[0060] In some embodiments, the specific implementation of steps 401 and 402 and the technical effects brought about can be referred to Figure 1 The corresponding steps 101-102 in the embodiments are not described in detail here.

[0061] Step 403, in response to determining that the touch detail information satisfies a preset screen switching condition, the following steps are performed:

[0062] Step 4031: in response to determining that the touch operation satisfies the second touch operation condition, a touch fusion direction corresponding to the touch operation is generated according to the touch initialization direction and the touch track direction.

[0063] In some embodiments, in response to determining that the above-mentioned touch operation satisfies the second touch operation condition, the execution subject (e.g., a computing device) of the horizontal and vertical screen switching method may generate a touch fusion direction corresponding to the above-mentioned touch operation according to the above-mentioned touch initialization direction and the above-mentioned touch track direction. Among them, the above-mentioned second touch operation condition may be that the touch detail information of the touch operation includes the touch track direction. In practice, first, the above-mentioned execution subject may determine the product between the first preset weight and the above-mentioned touch initialization direction as the first product. Then, the product between the second preset weight and the above-mentioned touch initialization direction is determined as the second product. Thereafter, the sum between the above-mentioned first product and the above-mentioned second product is determined as the touch fusion direction.

[0064] Step 4032: Determine whether the touch fusion direction satisfies a first preset area direction condition.

[0065] In some embodiments, the execution subject may determine whether the touch fusion direction satisfies the first preset area direction condition. It should be noted that the method for determining whether the touch fusion direction satisfies the first preset area direction condition is the same as Figure 1 The method of determining whether the touch initialization direction satisfies the first preset area direction condition is the same as that in the above-mentioned embodiment, and therefore, it will not be repeated here.

[0066] Step 4033: In response to determining that the touch fusion direction satisfies the first preset area direction condition, the current display screen is switched to a vertical screen.

[0067] In some embodiments, in response to determining that the touch fusion direction satisfies the first preset area direction condition, the execution entity may switch the current display screen to a vertical screen.

[0068] Step 4034: in response to determining that the touch fusion direction does not satisfy the first preset area direction condition, determine whether the touch fusion direction satisfies the second preset area direction condition.

[0069] In some embodiments, in response to determining that the touch fusion direction does not satisfy the first preset area direction condition, the execution subject may determine whether the touch fusion direction satisfies the second preset area direction condition. It should be noted that the method for determining whether the touch fusion direction satisfies the second preset area direction condition is the same as Figure 1 The method of determining whether the touch initialization direction satisfies the second preset area direction condition is the same as that in the above-mentioned embodiment, and therefore, it will not be repeated here.

[0070] Step 4035: in response to determining that the touch fusion direction satisfies the second preset area direction condition, the current display screen is switched to a horizontal screen.

[0071] In some embodiments, in response to determining that the touch fusion direction satisfies the second preset area direction condition, the execution entity may switch the current display screen to a horizontal screen.

[0072] from Figure 4 It can be seen that Figure 1 Compared with the description of some corresponding embodiments, Figure 4 The process 400 of the horizontal and vertical screen switching method in some corresponding embodiments reflects that it is possible to determine whether the above-mentioned current display screen is switched to a horizontal screen or a vertical screen according to the touch fusion direction between the touch initialization direction and the touch trajectory direction, thereby enriching the diversity of the user's horizontal and vertical screen switching methods and improving the user experience. In addition, the user's touch trajectory direction is further integrated to improve the accuracy of the horizontal and vertical screen switching and reduce the situation where the horizontal and vertical screen switching is caused by the user's accidental touch, thereby further improving the user experience.

[0073] Reference below Figure 5 , which shows a schematic structural diagram of an electronic device (eg, a computing device) 500 suitable for implementing some embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0074] like Figure 5As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0075] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0076] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0077] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0078] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0079] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to determining that the touch operation satisfies the preset screen switching touch condition, obtains touch detail information corresponding to the touch operation, wherein the touch detail information includes the touch initialization direction, the touch sliding time and the touch sliding distance; determines whether the touch detail information satisfies the preset screen switching condition based on the touch detail information; in response to determining that the touch detail information satisfies the preset screen switching condition, performs switching processing on the current display screen.

[0080] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0082] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0083] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for switching between horizontal and vertical screens, comprising: In response to determining that the touch operation satisfies a preset screen switching touch condition, acquiring touch detail information corresponding to the touch operation, wherein the touch detail information includes a touch initialization direction, a touch sliding time, and a touch sliding distance; Determining, according to the touch detail information, whether the touch detail information satisfies a preset screen switching condition; In response to determining that the touch detail information satisfies the preset screen switching condition, a switching process is performed on the currently displayed screen.

2. The method according to claim 1, wherein: The determining, according to the touch detail information, whether the touch detail information satisfies a preset screen switching condition includes: Determining whether the touch sliding distance meets a preset sliding distance condition; In response to determining that the touch sliding distance satisfies the preset sliding distance condition, determining whether the touch sliding time satisfies the preset sliding time condition; In response to determining that the touch sliding time satisfies the preset sliding time condition, determining that the touch detail information satisfies the preset screen switching condition.

3. The method according to claim 1, wherein: In response to determining that the touch detail information satisfies the preset screen switching condition, switching the current display screen includes: In response to determining that the touch operation satisfies a first touch operation condition, determining whether the touch initialization direction satisfies a first preset area direction condition; In response to determining that the touch initialization direction satisfies the first preset area direction condition, the current display screen is switched to a vertical screen.

4. The method according to claim 1, wherein: The method further comprises: In response to determining that the touch initialization direction does not satisfy the first preset area direction condition, determining whether the touch initialization direction satisfies the second preset area direction condition; In response to determining that the touch initialization direction satisfies the second preset area direction condition, the current display screen is switched to a horizontal screen.

5. The method according to claim 1, wherein: The touch detail information includes the touch track direction; as well as The method further comprises: In response to determining that the touch operation satisfies a second touch operation condition, generating a touch fusion direction corresponding to the touch operation according to the touch initialization direction and the touch track direction; Determining whether the touch fusion direction satisfies a first preset area direction condition; In response to determining that the touch fusion direction satisfies the first preset area direction condition, the current display screen is switched to a vertical screen.

6. The method according to claim 5, wherein: The method further comprises: In response to determining that the touch fusion direction does not satisfy the first preset area direction condition, determining whether the touch fusion direction satisfies a second preset area direction condition; In response to determining that the touch fusion direction satisfies the second preset area direction condition, the current display screen is switched to a horizontal screen.

7. An electronic device comprising: one or more processors; A storage device for storing one or more programs; A touch screen, used to detect a user's touch operation; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

8. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Landscape / portrait switching method, and electronic device and computer-readable medium

    WO2026061557A1