CN108008896B - Display control method and related product - Google Patents

Display control method and related product Download PDF

Info

Publication number
CN108008896B
CN108008896B CN201711409667.7A CN201711409667A CN108008896B CN 108008896 B CN108008896 B CN 108008896B CN 201711409667 A CN201711409667 A CN 201711409667A CN 108008896 B CN108008896 B CN 108008896B
Authority
CN
China
Prior art keywords
area
preset
special
posture
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201711409667.7A
Other languages
Chinese (zh)
Other versions
CN108008896A (en
Inventor
周意保
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711409667.7A priority Critical patent/CN108008896B/en
Publication of CN108008896A publication Critical patent/CN108008896A/en
Application granted granted Critical
Publication of CN108008896B publication Critical patent/CN108008896B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The embodiment of the application discloses a display control method, which is applied to electronic equipment with a touch display screen being a special-shaped screen, wherein the touch display screen comprises a first special-shaped area and a first regular area, and the display control method comprises the following steps: detecting a use posture of the electronic equipment; if the using posture is a first preset using posture, acquiring a plurality of virtual keys corresponding to the first preset using posture; dividing the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of display area, close to the first special-shaped area, in the first regular area; displaying the plurality of virtual keys in the second shaped area. By the aid of the method and the device, the plurality of virtual keys can be displayed in the special-shaped area, and convenience in operation is improved.

Description

Display control method and related product
Technical Field
The application relates to the technical field of electronic equipment, and mainly relates to a display control method and a related product.
Background
With the development of electronic technology, a touch display screen of an electronic device can display various virtual keys, for example, virtual keys for functions such as return, refresh, and search.
In the prior art, a hole is formed right above the touch display screen by adopting a special-shaped pointed comprehensive screen technology, and components such as a front camera and an optical fiber sensor are embedded into the center of the top end of the touch display screen, so that better function experience and visual effect are achieved. However, the special-shaped screen with the above structure may cause the touch display screen to include a special-shaped area and a regular area, and how to display the virtual keys associated with the electronic device by using the special-shaped area is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a display control method and a related product, a plurality of virtual keys can be displayed by utilizing a special-shaped area, and the convenience of operation is improved.
In a first aspect, an embodiment of the present application provides a display control method, which is applied to an electronic device in which a touch display screen is an irregular screen, where the touch display screen includes a first irregular area and a first regular area, and the method includes:
detecting a use gesture of the electronic device, the use gesture including one of: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
if the using posture is a first preset using posture, acquiring a plurality of virtual keys corresponding to the first preset using posture;
dividing the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of display area, close to the first special-shaped area, in the first regular area;
displaying the plurality of virtual keys in the second shaped area.
In a second aspect, an embodiment of the present application provides an electronic device, including a processor, a memory connected to the processor, a gravity acceleration sensor, and a touch display screen, where the touch display screen includes a first irregular area and a first regular area, where:
the gravity acceleration sensor is used for detecting the use posture of the electronic equipment, and the use posture comprises one of the following items: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
the memory is used for storing a first preset using gesture, a plurality of virtual keys corresponding to the first preset using gesture and a preset touch area corresponding to each virtual key in the plurality of virtual keys;
the processor is configured to divide the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys if the use gesture is the first preset use gesture, where the second special-shaped area includes a part of a display area, close to the first special-shaped area, of the first regular area and the first special-shaped area;
and the touch display screen is used for displaying the virtual keys in the second special-shaped area.
In a third aspect, an embodiment of the present application provides a display control apparatus, which is applied to an electronic device whose touch display screen is an irregular screen, where the touch display screen includes a first irregular area and a first regular area, and the apparatus includes:
a detection unit configured to detect a use posture of the electronic device, the use posture including one of: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
the obtaining unit is used for obtaining a plurality of virtual keys corresponding to a first preset using posture if the using posture is the first preset using posture;
the touch display screen comprises a dividing unit, a display unit and a display unit, wherein the dividing unit is used for dividing the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, and the second special-shaped area comprises the first special-shaped area and a part of the first regular area, which is close to the first special-shaped area;
and the display unit is used for displaying the plurality of virtual keys in the second special-shaped area.
In a fourth aspect, an embodiment of the present application provides another display control method, which is applied to an electronic device including a processor, a memory connected to the processor, a gravitational acceleration sensor, and a touch display screen, where the touch display screen includes a first special-shaped area and a first regular area, where:
the memory stores a first preset using gesture, a plurality of virtual keys corresponding to the first preset using gesture and a preset touch area corresponding to each virtual key in the plurality of virtual keys;
the gravity acceleration sensor detects a use posture of the electronic device, and the use posture comprises one of the following items: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
if the use gesture is the first preset use gesture, the processor divides the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of display area, close to the first special-shaped area, in the first regular area;
and the touch display screen displays the plurality of virtual keys in the second special-shaped area.
In a fifth aspect, an embodiment of the present application provides another electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for some or all of the steps described in the first aspect.
In a sixth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program makes a computer perform some or all of the steps as described in the first aspect of the present application.
In a seventh aspect, this application embodiment provides a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of this application embodiment. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
after the display control method and the related products are adopted, the method is applied to the electronic equipment with the touch display screen being the special-shaped screen, and the touch display screen comprises a first special-shaped area and a first regular area. The method comprises the steps of detecting the using gesture of the electronic equipment, if the using gesture is the first preset using gesture, obtaining a plurality of virtual keys corresponding to the first preset using gesture, dividing a part of a display area in a first regular area close to a first special-shaped area according to a preset touch area corresponding to each virtual key in the virtual keys to obtain a second special-shaped area and a second regular area, and displaying the virtual keys in the second special-shaped area. That is to say, based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys, the special-shaped area and the regular area are re-divided, the display space of the touch display screen of the electronic device is fully utilized, and the display flexibility of the special-shaped area and the convenience of operation are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 1A is a schematic diagram of a gravitational acceleration sensor disclosed in an embodiment of the present application;
fig. 1B is a scene schematic diagram of an electronic device in an inverted vertical screen use posture disclosed in an embodiment of the present application;
fig. 1C is a scene schematic diagram of a selection page for each use gesture of an electronic device disclosed in the embodiment of the present application;
fig. 1D is a schematic view of a scene of an electronic device in a normal-vertical screen use posture disclosed in an embodiment of the present application;
fig. 1E is a schematic flowchart of a display control method according to an embodiment of the present disclosure;
fig. 1F is a schematic view of a scene of a touch display screen divided into an irregular area and a regular area according to an embodiment of the present application;
fig. 1G is a schematic view of another example of a scene of a touch display screen divided into an irregular area and a regular area according to the embodiment of the present application;
fig. 1H is a scene schematic diagram based on a display control method disclosed in an embodiment of the present application;
fig. 2 is a schematic flowchart of another display control method according to an embodiment of the present disclosure;
FIG. 2A is a graph of luminance versus time of occurrence provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a display control apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another display control method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The embodiment of the application provides a display control method and a related product, a plurality of virtual keys can be displayed by utilizing a special-shaped area, and the convenience of operation is improved. Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application, where the electronic device 100 includes: the battery cover comprises a shell 110, a circuit board 120, a battery 130 and a cover plate 140, wherein the circuit board 120, the battery 130 and the cover plate 140 are arranged on the shell 110, the cover plate 140 comprises a first area 141 and a second area 142 except the first area 141, a touch display screen 150 is arranged on the inner surface of the first area 141, the touch display screen 150 comprises a first special-shaped area 151 and a first regular area 152, the circuit board 120 is further provided with a circuit 160 connected with the touch display screen 150, and the circuit 160 comprises a memory 1601 and a processor 1602.
The memory 1601 may be used for storing software programs and modules, and the processor 1602 executes various functional applications and data processing of the electronic device 100 by operating the software programs and modules stored in the memory 1601. The memory 1601 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 1601 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1602 is a control center of the electronic apparatus 100, connects various parts of the whole electronic apparatus 100 by various interfaces and lines, and performs various functions of the electronic apparatus 100 and processes data by running or executing software programs and/or modules stored in the memory 1601 and calling data stored in the memory 1601, thereby performing overall monitoring of the electronic apparatus. The processor 1602 may integrate an application processor that handles primarily the operating system, user interface, applications, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
In the embodiment of the present application, the use gesture of the electronic device 100 includes one of: the front transverse screen using posture, the back transverse screen using posture, the front vertical screen using posture and the back vertical screen using posture.
Wherein, the landscape use posture refers to a state where the first irregular area 151 is on the left side of the first regular area 152; the inverted landscape use posture means a state where the first irregular area 151 is on the right side of the first regular area 152; the normal portrait screen use attitude refers to a state in which the first shaped area 151 is on the upper side of the first regular area 152; the inverted portrait screen use posture refers to a state in which the first irregularly shaped area 151 is on the lower side of the first regular area 152.
It should be noted that the front landscape screen usage posture and the inverted landscape screen usage posture are collectively referred to as a landscape screen usage posture, and the front portrait screen usage posture and the inverted portrait screen usage posture are collectively referred to as a portrait screen usage posture.
Optionally, the use posture of the electronic device 100 is detected by a gravity acceleration sensor built in the electronic device 100. Referring to fig. 1A, an X axis and a Y axis are parallel to a plane of the electronic device 100, the X axis is a width direction of the electronic device 100, the Y axis is a length direction of the electronic device 100, and the Z axis is perpendicular to the plane of the electronic device 100, and a gravity acceleration sensor detects gravity acceleration values of the electronic device 100 in three predefined directions, namely the X axis, the Y axis, and the Z axis, and determines a usage posture of the electronic device 100 according to the gravity acceleration values corresponding to the three directions, namely the X axis, the Y axis, and the Z axis.
For example, when the electronic device is in a normal vertical screen use posture, the gravity acceleration values in the three directions of the X axis, the Y axis and the Z axis are respectively 0, -9.8 and 0; when the electronic equipment is in the use posture of the inverted vertical screen, the gravity acceleration values in the X axis direction, the Y axis direction and the Z axis direction are respectively 0, +9.8 and 0; when the electronic equipment is in the using posture of the front landscape screen, the gravity acceleration values in the X axis direction, the Y axis direction and the Z axis direction are respectively-9.8, 0 and 0; when the electronic equipment is in the inverted transverse screen using posture, the gravity acceleration values in the X axis direction, the Y axis direction and the Z axis direction are +9.8, 0 and 0 respectively.
It can be understood that, when the detected use gesture of the electronic device 100 changes and the use gesture is a use gesture allowed to be opened by the electronic device 100 and the current application, the display direction of the display content is adjusted according to the use gesture; otherwise, the display direction cannot be adjusted along with the use posture.
It should be noted that, in the switching process of the use posture of the electronic device 100, the gravitational acceleration values in the three directions of the X axis, the Y axis and the Z axis are detected according to the gravitational acceleration sensor, and if the gravitational acceleration values in the three directions satisfy the preset condition, the display direction of the display content may be adjusted according to the preset condition instead of waiting for the gravitational acceleration values in the three directions to be respectively adjusted according to the preset values corresponding to the use posture, so that the adjustment efficiency is improved. And under the lock screen state, the display direction can not be adjusted along with the use gesture.
The method for acquiring the use gesture started by the current application is not limited, the use gesture started by the current application generally comprises a vertical screen use gesture, a horizontal screen use gesture needs to be judged whether to be needed, and the current application is started according to different display contents, so that the visual interference caused by mistaken switching is avoided. For example: video applications generally allow gestures to be used with a landscape, social applications generally do not allow gestures to be used with a landscape, and when images or videos are clicked, gestures are allowed to be used with a landscape.
The embodiment of the present application does not limit the method for obtaining the use gesture of the electronic device 100, and the use gesture can be obtained by detecting the setting parameter corresponding to the use gesture.
For example, the screen flipping function corresponding to the existing flipping control is expanded, when the flipping function is turned on, the use posture is determined by the gravity acceleration sensor, and the display direction of the display content in the touch display screen 150 is adjusted according to the use posture. That is to say, the positive horizontal screen that has been opened on the basis of just erecting the screen and using the gesture and the horizontal screen that falls uses the gesture to current upset controlling part, and the upset controlling part that this application improved still can open and fall and erect the screen and use the gesture, as shown in FIG. 1B promptly, when the electronic equipment that the user used is falling and erects the screen and use the gesture, can directly operate touch-control display screen falling and erects the screen and use the gesture to the convenience of operation has been improved.
Referring to fig. 1C, fig. 1C is a schematic view of a selection page for each use posture of an electronic device provided in the present application. As shown in fig. 1C, the four use postures are respectively provided with an on-off selection button, and only when the use posture is opened, the user can operate the touch display screen in the corresponding use posture, and each use posture is opened or closed under a specific scene or by personal habits, so that the practicability is improved, and the visual interference caused by mis-switching is avoided.
For example: when the electronic device 100 is in the normal vertical screen use posture, the first special-shaped area 151 is included right above the touch display screen 150, and the user is used to display content with a regular area right above, the user closes the normal vertical screen use posture through the selected page, that is, when the electronic device 100 is in the normal vertical screen use posture, as shown in fig. 1D, the display direction of the touch display screen is consistent with the display direction of the inverted vertical screen use posture, that is, the display content is in an inverted state.
Referring to fig. 1E, fig. 1E is a schematic flowchart illustrating a display control method according to an embodiment of the present disclosure. Applied to the electronic device shown in fig. 1, as shown in fig. 1E, includes:
101: the use posture of the electronic equipment is detected.
The operation posture of the electronic device is detected by the gravity acceleration sensor as described above, and is not described herein again.
102: and if the use gesture is a first preset use gesture, acquiring a plurality of virtual keys corresponding to the first preset use gesture.
The specific type of the virtual key is not limited in the embodiment of the present application, and the virtual key may be a virtual key used for executing a specified function in an electronic device or an application, for example: and the virtual keys are used for returning to the main page or the main screen, canceling, searching, screen capturing, cache cleaning, desktop sorting or prompting and the like. The display position of the virtual key on the touch display screen is not limited, and can be a fixed position, so that the searching efficiency is improved; or any position that can be dragged by the user, thereby improving the convenience of operation.
It should be noted that the virtual keys can be displayed independently, which is convenient for the user to search, thereby improving the search efficiency; the touch screen display can also be integrated in an auxiliary virtual key, namely the auxiliary virtual key is clicked to expand the virtual keys contained in the auxiliary virtual key, so that the virtual keys can be conveniently sorted and summarized, and only one display position of the touch screen display is occupied, thereby expanding the display range of other display contents in the current application and improving the display efficiency.
The first preset using posture is not limited, and any one of the positive landscape screen using posture, the inverted landscape screen using posture, the positive vertical screen using posture and the inverted vertical screen using posture can be used. When the detected using posture of the electronic equipment is a first preset using posture, a plurality of virtual keys corresponding to the first preset using posture are obtained, and the virtual keys are displayed in the special-shaped area. The plurality of virtual keys may be preset by the electronic device for the first preset use gesture, or may be virtual keys screened and set by the user, which is not limited herein.
For example, assuming that the first preset using posture is a landscape screen using posture, the plurality of virtual keys are auxiliary virtual keys and virtual keys for a screen locking function; assuming that the first preset using posture is an inverted transverse screen using posture, and the plurality of virtual keys are virtual keys for returning and paying functions; assuming that the first preset using posture is a positive vertical screen using posture, and the plurality of virtual keys are auxiliary virtual keys and virtual keys for menu and screen locking functions; the first preset using gesture is assumed to be an inverted vertical screen using gesture, and the plurality of virtual keys are auxiliary virtual keys and virtual keys for returning and photographing functions.
103: and dividing the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys.
Each virtual key corresponds to a preset touch area, that is, a touch operation for the virtual key can be received in the preset touch area. According to the method and the device, a partial display area is divided at a position close to a first special-shaped area in a first regular area aiming at a preset touch area corresponding to each virtual key in a plurality of virtual keys, and the plurality of virtual keys corresponding to the current using posture of the electronic equipment are displayed by utilizing the partial display area and the first special-shaped area.
That is to say, each virtual key in the plurality of virtual keys corresponding to the first preset use gesture provides an enough display area by replanning the special-shaped area, so that the error touch operation caused by too close distance between the adjacent virtual keys is avoided, and the convenience of the touch operation is improved.
In the embodiment of the application, the display area of the touch display screen is divided into a second special-shaped area and a second regular area, wherein the second special-shaped area comprises a first special-shaped area and a part of the display area, close to the first special-shaped area, of the first regular area, namely, the first special-shaped area is used for displaying a plurality of virtual keys, and the second regular area is used for displaying display contents in the first regular area, so that the utilization rate of the touch display screen is improved.
For example, as shown in fig. 1F, the first special-shaped area includes a first sub-area 21 and a second sub-area 22, and according to the preset touch area corresponding to each virtual key of the plurality of virtual keys, a partial display area 23 is divided from a position close to the first special-shaped area in the first regular area to obtain a second special-shaped area and a second regular area 24, where the second special-shaped area includes the first sub-area 21, the second sub-area 22 and the partial display area 23.
Optionally, the touch display screen is divided into the second special-shaped area and the second regular area according to a preset touch area and a preset maximum segmentation area corresponding to each virtual key in the plurality of virtual keys.
The preset maximum partition area is used for limiting the occupied area of the second special-shaped area, the occupied area of the second special-shaped area is smaller than or equal to the preset maximum partition area, namely when the preset touch control area corresponding to the virtual keys is smaller than the preset maximum partition area, the virtual keys are divided according to the preset touch control area, and when the preset touch control area corresponding to the virtual keys is larger than the preset maximum partition area, the virtual keys are divided according to the preset maximum partition area, so that the occupied display area of the virtual keys is reduced, and the display efficiency of the display content in the first regular area is improved.
The method for displaying the virtual keys is not limited when the occupied area of the second special-shaped area is equal to the preset maximum partition area, and partial virtual keys can be integrated into at least one auxiliary virtual key or can be reduced according to the proportion, so that the occupied area is reduced, and the display efficiency is improved.
Optionally, the second special-shaped area includes a first display area, a second display area and a third display area, and the plurality of virtual keys are grouped to obtain a first virtual key set, a second virtual key set and a third virtual key set; displaying the first virtual key set in the first display area, displaying the second virtual key set in the second display area, and displaying the third virtual key set in the third display area.
The specific positions of the first display area, the second display area and the third display area are not limited in the present application, and the scene diagram shown in fig. 1F can be adopted, where the first display area is a first sub-area 21, the second display area is a second sub-area 22, and the third display area is a partial display area 23; also according to the scene diagram shown in fig. 1G, the first display area includes a first sub-area 21 and a fifth sub-area 25, the second display area is a sixth sub-area 26, and the third display area includes a second sub-area 22 and a seventh sub-area 27.
The embodiment of the present application does not limit how to group the plurality of virtual keys, and the virtual keys may be grouped according to a dimension commonly owned by the plurality of virtual keys, for example: the touch area, the use frequency, the resource occupation rate, the relevance with the current application, the functional attribute and the like are preset.
Optionally, obtaining an evaluation value corresponding to each preset dimension of a plurality of preset dimensions and each virtual key of the plurality of virtual keys to obtain a plurality of evaluation values; calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values; and grouping according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set and the third virtual key set.
The preset weight of each preset dimension is related to the specific positions of the first display area, the second display area and the third display area, namely, the preset weight is related to factors such as the use habits of users and the setting habits of electronic equipment, and the grouping accuracy and the operation convenience can be improved.
That is to say, the evaluation value corresponding to any virtual key and each preset dimension in the multiple preset dimensions is obtained, the target evaluation value corresponding to each virtual key is obtained through weighting calculation of the evaluation value corresponding to each preset dimension and the preset weight, and then the multiple virtual keys are grouped according to the multiple target evaluation values, so that the grouping accuracy can be improved, and the query efficiency is improved.
For example, the usage posture of the electronic device is an inverted landscape screen usage posture, and it is assumed that the first preset usage posture is an inverted landscape screen usage posture, and the plurality of virtual keys corresponding to the first preset usage posture are: returning to the functional virtual key, deleting the functional virtual key, sending the functional virtual key and assisting the virtual key, wherein the preset dimensions are use frequency and a preset touch area, the preset weight of the use frequency is 0.4, and the preset weight of the preset touch area is 0.6. If the evaluation values of the return-function virtual key, the delete-function virtual key, the send-function virtual key, and the auxiliary virtual key corresponding to the use frequencies are 50%, 30%, and 60%, respectively, and the evaluation values of the return-function virtual key, the delete-function virtual key, the send-function virtual key, and the auxiliary virtual key corresponding to the preset touch areas are 5%, and 8%, respectively, the target evaluation values of the return-function virtual key, the delete-function virtual key, the send-function virtual key, and the auxiliary virtual key corresponding to the use frequencies are 0.23, 0.15, and 0.288, and the return-function virtual key, the delete-function virtual key, the send-function virtual key, and the auxiliary virtual key are grouped according to the above target evaluation values, the first virtual key set includes the return-function virtual key, the second virtual key set includes the delete-function virtual key, the send-function virtual key, and the third virtual key set includes the auxiliary, the second set of virtual keys is displayed in the second display area and the third set of virtual keys is displayed in the third display area.
The display device has the advantages that the plurality of virtual keys are divided into three virtual key sets, the second special-shaped area is divided into three display areas, the first virtual key sets are displayed through the first display areas respectively, the second virtual key sets are displayed through the second display areas, the third virtual key sets are displayed through the third display areas, corresponding virtual keys can be found conveniently, the second special-shaped area is reasonably used, and therefore the display flexibility of the special-shaped area is improved.
Optionally, a touch operation for the second special-shaped area is detected; and acquiring a target display area corresponding to the touch operation, and displaying a corresponding virtual key set on the target display area.
That is to say, when the touch operation is detected in the second special-shaped area, the target display area corresponding to the touch operation is lightened, that is, the virtual key on the target display area is displayed, so that the electric quantity is saved, and the power consumption of the electronic device is improved.
104: displaying the plurality of virtual keys in the second shaped area.
In the method shown in fig. 1E, the usage posture of the electronic device is detected, if the usage posture is the first preset usage posture, the plurality of virtual keys corresponding to the first preset usage posture are obtained, a partial display area is divided at a position close to the first special-shaped area in the first regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, a second special-shaped area and a second regular area are obtained, and the plurality of virtual keys are displayed in the second special-shaped area. That is to say, based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys, the special-shaped area and the regular area are re-divided, the display space of the touch display screen of the electronic device is fully utilized, and the display flexibility of the special-shaped area and the convenience of operation are improved.
Optionally, displaying a preset background image in the first special-shaped area; detecting a touch operation aiming at the touch display screen; and if the touch pressure of the touch operation is larger than a preset threshold value, executing the step of displaying the plurality of virtual keys in the second special-shaped area.
The preset background image may be a background image composed of pure color pixels, for example: black or gray areas; the background image can be predefined or customized by the electronic equipment; and a frame image generated by the current application may also be used, which is not described herein again.
The touch pressure corresponding to the touch operation is detected through a pressure detection module in the touch display screen, and when the touch pressure is larger than a preset threshold value, a plurality of virtual keys are displayed in the second special-shaped area, otherwise, a preset background image is displayed only in the first special-shaped area, so that misoperation caused by touch of the virtual keys is avoided.
Referring to fig. 2, fig. 2 is a schematic flow chart of another display control method according to an embodiment of the present disclosure. Applied to the electronic device shown in fig. 1, as shown in fig. 2, the display control method 200 includes:
201: the use posture of the electronic equipment is detected.
202: and if the use posture is the second preset use posture, detecting the occurrence frequency of the shielding action.
The second preset using posture is not limited, and can be any one of a positive landscape screen using posture, a reverse landscape screen using posture, a positive vertical screen using posture and a reverse vertical screen using posture, namely, when the shielding action is detected by any one of the using postures, the corresponding returning operation can be executed, so that the operation flexibility is improved; the use postures corresponding to the return operation executed by the right hand of the user can be met, namely the use postures of the inverted vertical screen and the inverted horizontal screen, and the preset use postures formulated by the user according to personal habits can be also met, so that the convenience and the accuracy of the operation are improved.
In the embodiment of the present application, an action of shielding the electronic device with an opaque target object to make the light intensity of the electronic device reach a weak state is referred to as a shielding action. The target object for performing the shielding action may be a hand of a user, an electronic device protective sleeve with a hall sensor, other opaque objects, and the like, which is not limited herein.
The electronic device may include a light sensor, wherein the light sensor may include an ambient light sensor and a proximity sensor, and may be disposed on an inner surface or an outer surface of the second region 142 as shown in fig. 1 using a structure with or without holes. The ambient light sensor is used for adjusting the brightness of the touch display screen according to the brightness of ambient light, so that a better visual effect can be provided, and electricity is saved; for example: in a dark environment, the backlight of the electronic device is dimmed. Proximity sensor generally lies in the both sides of electronic equipment earphone or the earphone recess, adjusts touch-control display screen and/or backlight according to the distance between detection object and the electronic equipment, prevents the mistake and touches, the power saving of being convenient for, for example: when a user receives or makes a call, the electronic equipment is close to the head, the proximity sensor informs to turn off the backlight of the touch display screen after detecting that the distance between the head of the user and the electronic equipment is less than or equal to a preset threshold value, and when the proximity sensor detects that the distance between the head of the user and the electronic equipment is greater than the preset threshold value, the proximity sensor informs to turn on the backlight of the touch display screen.
Optionally, when the proximity sensor detects that the distance between the target object and the proximity sensor is smaller than a first threshold, obtaining brightness change information by the ambient light sensor and/or obtaining distance change information by the proximity sensor; and determining the occurrence frequency according to the brightness change information and/or the distance change information.
The first threshold is not limited, and may be 0 or a value close to 0. That is, in the blocking operation, when the distance between the target object and the electronic device is smaller than the first preset threshold, the number of times of the blocking operation is determined according to the brightness change information detected by the ambient light sensor and/or the distance change information between the target object and the proximity sensor detected by the proximity sensor, so that the situation that the ambient light sensor detects that the light intensity is close to 0(candela) in a dark environment is avoided as a blocking operation, and the accuracy of the blocking operation is improved.
Optionally, the number of occurrences is determined according to the luminance change information and/or the distance change information, and specifically: determining a plurality of minimum values smaller than a second threshold value according to the brightness change information and/or the distance change information; respectively acquiring the occurrence time corresponding to each minimum value in the plurality of minimum values; and determining the occurrence times according to the interval time of the adjacent minimum values.
The second threshold is not limited and may be 0 or a value close to 0. The minimum value is the weakest value in the process of changing the brightness of the light from strong to weak to strong or the nearest value in the process of changing the distance from far to near to far. And determining whether the continuous shielding actions are shielding actions according to the interval time between adjacent minimum values, so as to determine the occurrence frequency of the shielding actions.
For example, assuming that the second threshold is 0, as shown in fig. 2A, which is a graph of luminance versus occurrence time, it can be seen that the occurrence time of the first minimum is 0.4s, the occurrence time of the second minimum is 1.2s, and the occurrence time of the third minimum is 2.6 s. Assuming that the time interval between consecutive occlusion actions is set to 1s, the time interval from the second minimum value to the first minimum value satisfies the preset condition, and the time interval from the third minimum value to the second minimum value does not satisfy the preset condition, so that the occurrence frequency of consecutive occlusion actions is determined to be 2 times.
203: and acquiring a return instruction corresponding to the occurrence frequency, and executing a return operation corresponding to the return instruction.
In the embodiment of the present application, the number of occurrences of the blocking action is mapped with the return instruction, for example: the shielding action is taken once or returned to the previous display page; the continuous shielding action occurs twice and is returned to the main page of the application; the continuous shielding action occurs three times to return to the main page of the electronic equipment and the like.
In the method shown in fig. 2, if the detected usage posture is the second preset usage posture, the return instruction is generated according to the number of occurrences of the detected blocking action, and the return operation corresponding to the return instruction is executed, that is, the electronic device is effectively blocked to realize the preset return operation, so that the convenience of the operation is improved. And a virtual control for executing a return function is not added in the touch display screen, so that the display efficiency of the touch display screen is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a display control device according to an embodiment of the present disclosure, which is identical to the embodiment shown in fig. 1E or fig. 2. As shown in fig. 3, the display control apparatus 300 includes:
a detection unit 301, configured to detect a usage posture of the electronic device, where the usage posture includes one of: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
an obtaining unit 302, configured to obtain, if the usage posture is a first preset usage posture, a plurality of virtual keys corresponding to the first preset usage posture;
a dividing unit 303, configured to divide the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, where the second special-shaped area includes a part of a display area, close to the first special-shaped area, in the first regular area;
a display unit 304, configured to display the plurality of virtual keys in the second special-shaped area.
In a possible example, the second shaped area comprises a first display area, a second display area and the third display area, the apparatus further comprises a grouping unit 305 configured to group the plurality of virtual keys to obtain a first set of virtual keys, a second set of virtual keys and a third set of virtual keys; displaying, by the display unit 304, the first set of virtual keys in the first display area, the second set of virtual keys in the second display area, and the third set of virtual keys in the third display area.
In a possible example, the obtaining unit 302 is further configured to obtain an evaluation value corresponding to each of the plurality of virtual keys and each of a plurality of preset dimensions, so as to obtain a plurality of evaluation values; calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values; the grouping unit 305 groups the plurality of virtual keys according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set, and the third virtual key set.
In one possible example, the detection unit 301 is further configured to detect a touch operation on the touch display screen; the display unit 304 is specifically configured to display a preset background image in the first special-shaped area; and if the touch pressure of the touch operation is larger than a preset threshold value, displaying the plurality of virtual keys in the second special-shaped area.
In a possible example, the detecting unit 301 is further configured to detect the occurrence number of the occlusion action if the usage posture is a second preset usage posture; the obtaining unit 302 is further configured to obtain a return instruction corresponding to the occurrence number, and execute a return operation corresponding to the return instruction.
In the apparatus shown in fig. 3, the apparatus is applied to an electronic device whose touch display screen is a special-shaped screen, and the touch display screen includes a first special-shaped area and a first regular area. The method comprises the steps of detecting the using gesture of the electronic equipment, if the using gesture is the first preset using gesture, obtaining a plurality of virtual keys corresponding to the first preset using gesture, dividing a part of a display area in a first regular area close to a first special-shaped area according to a preset touch area corresponding to each virtual key in the virtual keys to obtain a second special-shaped area and a second regular area, and displaying the virtual keys in the second special-shaped area. That is to say, based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys, the special-shaped area and the regular area are re-divided, the display space of the touch display screen of the electronic device is fully utilized, and the display flexibility of the special-shaped area and the convenience of operation are improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which is consistent with the embodiment shown in fig. 1E or fig. 2. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420 connected to the processor 410, a gravity acceleration sensor 430, and a touch display screen 440, where the touch display screen 440 includes a first irregular area and a first regular area, and where:
the memory 420 is configured to store a first preset using gesture, a plurality of virtual keys corresponding to the first preset using gesture, and a preset touch area corresponding to each virtual key in the plurality of virtual keys;
the gravitational acceleration sensor 430 is configured to detect a usage posture of the electronic device, where the usage posture includes one of: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
the processor 410 is configured to divide the touch display screen 440 into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key of the plurality of virtual keys if the usage gesture is the first preset usage gesture, where the second special-shaped area includes a part of a display area, close to the first special-shaped area, of the first regular area;
the touch display screen 440 is configured to display the plurality of virtual keys in the second special-shaped area.
In one possible example, the second shaped area includes a first display area, a second display area, and the third display area, and in terms of the touch display screen 440 displaying the plurality of virtual keys in the second shaped area, the processor 410 is further configured to group the plurality of virtual keys into a first set of virtual keys, a second set of virtual keys, and a third set of virtual keys; the touch display screen 440 is specifically configured to display the first virtual key set in the first display area, display the second virtual key set in the second display area, and display the third virtual key set in the third display area.
In a possible example, the memory 420 is further configured to store a plurality of preset dimensions and a preset weight corresponding to each preset dimension in the plurality of preset dimensions; in an aspect that the processor 410 groups the plurality of virtual keys to obtain a first virtual key set, a second virtual key set, and a third virtual key set, the processor 410 is specifically configured to obtain an evaluation value corresponding to each of the plurality of virtual keys and each of the plurality of preset dimensions to obtain a plurality of evaluation values; calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values; and grouping the plurality of virtual keys according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set and the third virtual key set.
In one possible example, the memory 420 is further configured to store a preset background image and a preset threshold; the touch display screen 440 is further configured to display the preset background image in the first special-shaped area; detecting a touch operation aiming at the touch display screen; and if the touch pressure of the touch operation is larger than the preset threshold value, displaying the plurality of virtual keys in the second special-shaped area.
In one possible example, the memory 420 is further configured to store a second preset use gesture and a return instruction associated with the occurrence number of the occlusion action; the electronic device 400 further comprises an optical sensor 460 connected to the processor 410, for detecting the occurrence number of the shielding actions if the usage posture is the second preset usage posture; the processor 410 is further configured to perform a return operation corresponding to the return instruction.
In the electronic device shown in fig. 4, the touch display screen is applied to an electronic device with a special-shaped touch screen, and the touch display screen includes a first special-shaped area and a first regular area. The method comprises the steps of detecting the using gesture of the electronic equipment, if the using gesture is the first preset using gesture, obtaining a plurality of virtual keys corresponding to the first preset using gesture, dividing a part of a display area in a first regular area close to a first special-shaped area according to a preset touch area corresponding to each virtual key in the virtual keys to obtain a second special-shaped area and a second regular area, and displaying the virtual keys in the second special-shaped area. That is to say, based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys, the special-shaped area and the regular area are re-divided, the display space of the touch display screen of the electronic device is fully utilized, and the display flexibility of the special-shaped area and the convenience of operation are improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of another display control method according to the present application, consistent with the embodiment shown in fig. 1E or fig. 2. The method is applied to the electronic device described in fig. 4, that is, the electronic device includes a processor, a memory, a gravity acceleration sensor, and a touch display screen, where the touch display screen includes a first irregular area and a first regular area, as shown in fig. 5, and includes:
501: the method comprises the steps that a memory stores a first preset using gesture, a plurality of virtual keys corresponding to the first preset using gesture and a preset touch area corresponding to each virtual key in the plurality of virtual keys;
502: the gravity acceleration sensor detects the use posture of the electronic equipment;
503: if the using gesture is the first preset using gesture, the processor divides the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys;
504: and the touch display screen displays the plurality of virtual keys in the second special-shaped area.
In one possible example, the second shaped area includes a first display area, a second display area, and the third display area, and the touch display displays the plurality of virtual keys in the second shaped area, including:
the processor groups the virtual keys to obtain a first virtual key set, a second virtual key set and a third virtual key set;
the touch display screen displays the first virtual key set in the first display area, displays the second virtual key set in the second display area, and displays the third virtual key set in the third display area.
In one possible example, the memory stores a plurality of preset dimensions and a preset weight corresponding to each of the plurality of preset dimensions, and the processor groups the plurality of virtual keys to obtain a first virtual key set, a second virtual key set, and a third virtual key set, including:
the processor obtains an evaluation value corresponding to each preset dimension in the plurality of preset dimensions and each virtual key in the plurality of virtual keys to obtain a plurality of evaluation values; calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values; and grouping the plurality of virtual keys according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set and the third virtual key set.
In one possible example, the memory stores a preset background image and a preset threshold, and the method further includes:
the touch display screen displays the preset background image in the first special-shaped area; detecting a touch operation aiming at the touch display screen; and if the touch pressure of the touch operation is larger than the preset threshold value, displaying the plurality of virtual keys in the second special-shaped area.
In one possible example, the memory stores a second preset usage posture and a return instruction corresponding to the number of occurrences of the occlusion action, and the method further includes:
if the using posture is the second preset using posture, the optical sensor detects the occurrence frequency of the shielding action;
the processor performs a return operation corresponding to the return instruction.
In the method shown in fig. 5, the method is applied to an electronic device in which the touch display screen is a special-shaped screen, and the touch display screen includes a first special-shaped area and a first regular area. The method comprises the steps of detecting the using gesture of the electronic equipment, if the using gesture is the first preset using gesture, obtaining a plurality of virtual keys corresponding to the first preset using gesture, dividing a part of a display area in a first regular area close to a first special-shaped area according to a preset touch area corresponding to each virtual key in the virtual keys to obtain a second special-shaped area and a second regular area, and displaying the virtual keys in the second special-shaped area. That is to say, based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys, the special-shaped area and the regular area are re-divided, the display space of the touch display screen of the electronic device is fully utilized, and the display flexibility of the special-shaped area and the convenience of operation are improved.
Referring to fig. 6, in accordance with the embodiment shown in fig. 1E or fig. 2, fig. 6 is a schematic structural diagram of another electronic device provided in the embodiment of the present application. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, a communication interface 630, and one or more programs 640, wherein the one or more programs 640 are stored in the memory 620 and configured to be executed by the processor 610, the programs 640 including instructions for performing the steps of:
if the using posture is a first preset using posture, acquiring a plurality of virtual keys corresponding to the first preset using posture;
dividing the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of display area, close to the first special-shaped area, in the first regular area;
displaying the plurality of virtual keys in the second shaped area.
In one possible example, the second shaped area includes a first display area, a second display area, and the third display area, the program 640 is specifically configured to execute instructions for, in the aspect of the second shaped area displaying the plurality of virtual keys:
grouping the virtual keys to obtain a first virtual key set, a second virtual key set and a third virtual key set;
displaying the first virtual key set in the first display area, displaying the second virtual key set in the second display area, and displaying the third virtual key set in the third display area.
In one possible example, in terms of grouping the plurality of virtual keys to obtain a first set of virtual keys, a second set of virtual keys, and a third set of virtual keys, the program 640 is specifically configured to execute the following steps:
obtaining an evaluation value corresponding to each preset dimension in a plurality of preset dimensions and each virtual key in the plurality of virtual keys to obtain a plurality of evaluation values;
calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values;
and grouping the plurality of virtual keys according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set and the third virtual key set.
In one possible example, before the second shaped area displays the plurality of virtual keys, the program 640 is further for instructions to:
displaying a preset background image in the first special-shaped area;
detecting a touch operation aiming at the touch display screen;
and if the touch pressure of the touch operation is larger than a preset threshold value, executing the step of displaying the plurality of virtual keys in the second special-shaped area.
In one possible example, the program 640 is further for instructions to perform the steps of:
if the use posture is a second preset use posture, detecting the occurrence frequency of the shielding action;
and acquiring a return instruction corresponding to the occurrence frequency, and executing a return operation corresponding to the return instruction.
In the electronic device shown in fig. 6, the touch display screen is applied to an electronic device with a special-shaped touch screen, and the touch display screen includes a first special-shaped area and a first regular area. The method comprises the steps of detecting the using gesture of the electronic equipment, if the using gesture is the first preset using gesture, obtaining a plurality of virtual keys corresponding to the first preset using gesture, dividing a part of a display area in a first regular area close to a first special-shaped area according to a preset touch area corresponding to each virtual key in the virtual keys to obtain a second special-shaped area and a second regular area, and displaying the virtual keys in the second special-shaped area. That is to say, based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys, the special-shaped area and the regular area are re-divided, the display space of the touch display screen of the electronic device is fully utilized, and the display flexibility of the special-shaped area and the convenience of operation are improved.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for causing a computer to execute a part or all of the steps of any one of the methods as described in the method embodiments, and the computer includes an electronic device.
Embodiments of the application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the method embodiments. The computer program product may be a software installation package and the computer comprises the electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a cell is merely a logical division, and an actual implementation may have another division, for example, a plurality of cells or controls may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. A display control method is applied to an electronic device with a touch display screen being a special-shaped screen, wherein the touch display screen comprises a first special-shaped area and a first regular area, and the method comprises the following steps:
detecting a use gesture of the electronic device, the use gesture including one of: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
if the using posture is a first preset using posture, acquiring a plurality of virtual keys corresponding to the first preset using posture;
dividing the touch display screen into a second special-shaped area and a second regular area according to the preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of the first regular area, which is close to the first special-shaped area, so as to divide the special-shaped area and the regular area again based on the use posture of the electronic equipment and the preset touch area corresponding to each virtual key in the plurality of virtual keys;
and when the touch pressure is greater than a preset threshold value, the second special-shaped area displays the virtual keys, otherwise, only a preset background image is displayed in the first special-shaped area, and the preset background image is a frame image generated by the current application.
2. The method of claim 1, wherein the second shaped area comprises a first display area, a second display area, and a third display area, wherein displaying the plurality of virtual keys in the second shaped area comprises:
grouping the virtual keys to obtain a first virtual key set, a second virtual key set and a third virtual key set;
displaying the first virtual key set in the first display area, displaying the second virtual key set in the second display area, and displaying the third virtual key set in the third display area.
3. The method of claim 2, wherein grouping the plurality of virtual keys into a first set of virtual keys, a second set of virtual keys, and a third set of virtual keys comprises:
obtaining an evaluation value corresponding to each preset dimension in a plurality of preset dimensions and each virtual key in the plurality of virtual keys to obtain a plurality of evaluation values;
calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values;
and grouping the plurality of virtual keys according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set and the third virtual key set.
4. The method of any of claims 1-3, wherein prior to the second shaped area displaying the plurality of virtual keys, the method further comprises:
displaying a preset background image in the first special-shaped area;
detecting a touch operation aiming at the touch display screen;
and if the touch pressure of the touch operation is larger than a preset threshold value, executing the step of displaying the plurality of virtual keys in the second special-shaped area.
5. The method according to any one of claims 1-3, further comprising:
if the use posture is a second preset use posture, detecting the occurrence frequency of the shielding action;
and acquiring a return instruction corresponding to the occurrence frequency, and executing a return operation corresponding to the return instruction.
6. An electronic device, comprising a processor, a memory connected to the processor, a gravitational acceleration sensor, and a touch display screen, wherein the touch display screen comprises a first irregular area and a first regular area, and wherein:
the gravity acceleration sensor is used for detecting the use posture of the electronic equipment, and the use posture comprises one of the following items: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
the memory is used for storing a first preset using gesture, a plurality of virtual keys corresponding to the first preset using gesture and a preset touch area corresponding to each virtual key in the plurality of virtual keys;
the processor is configured to divide the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys if the use gesture is the first preset use gesture, where the second special-shaped area includes the first special-shaped area and a partial display area, close to the first special-shaped area, in the first regular area, so as to re-divide the special-shaped area and the regular area based on the use gesture of the electronic device and the preset touch area corresponding to each virtual key in the plurality of virtual keys;
the touch display screen is used for displaying the virtual keys in the second special-shaped area when the touch pressure is larger than a preset threshold value, otherwise, displaying a preset background image only in the first special-shaped area, wherein the preset background image is a frame image generated by the current application.
7. The electronic device of claim 6, wherein the second shaped area comprises a first display area, a second display area, and a third display area, and wherein, in the aspect that the touch-sensitive display screen displays the plurality of virtual keys in the second shaped area, the processor is further configured to group the plurality of virtual keys into a first set of virtual keys, a second set of virtual keys, and a third set of virtual keys; the touch display screen is specifically configured to display the first virtual key set in the first display area, display the second virtual key set in the second display area, and display the third virtual key set in the third display area.
8. The electronic device according to claim 7, wherein the memory is further configured to store a plurality of preset dimensions and a preset weight corresponding to each of the plurality of preset dimensions;
in the aspect that the processor groups the plurality of virtual keys to obtain a first virtual key set, a second virtual key set, and a third virtual key set, the processor is specifically configured to obtain an evaluation value corresponding to each of the plurality of virtual keys and each of the plurality of preset dimensions to obtain a plurality of evaluation values; calculating according to a preset weight corresponding to each preset dimension in the preset dimensions and the plurality of evaluation values to obtain a plurality of target evaluation values; and grouping the plurality of virtual keys according to the plurality of target evaluation values to obtain the first virtual key set, the second virtual key set and the third virtual key set.
9. The electronic device according to any of claims 6-8, wherein the memory is further configured to store a preset background image and a preset threshold;
the touch display screen is further used for displaying the preset background image in the first special-shaped area; detecting a touch operation aiming at the touch display screen; and if the touch pressure of the touch operation is larger than the preset threshold value, displaying the plurality of virtual keys in the second special-shaped area.
10. The electronic device according to any one of claims 6 to 8, wherein the memory is further configured to store a second preset usage posture and a return instruction corresponding to the number of occurrences of the occlusion action;
the electronic equipment further comprises an optical sensor connected with the processor and used for detecting the occurrence frequency of the shielding action if the using posture is the second preset using posture;
the processor is further configured to execute a return operation corresponding to the return instruction.
11. The utility model provides a display control device which characterized in that is applied to the electronic equipment that the touch-control display screen is special-shaped screen, the touch-control display screen includes first special-shaped area and first rule region, the device includes:
a detection unit configured to detect a use posture of the electronic device, the use posture including one of: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
the obtaining unit is used for obtaining a plurality of virtual keys corresponding to a first preset using posture if the using posture is the first preset using posture;
the dividing unit is used for dividing the touch display screen into a second special-shaped area and a second regular area according to the preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of the first regular area, which is close to the first special-shaped area, so that the special-shaped area and the regular area are re-divided based on the use posture of the electronic equipment and the preset touch area corresponding to each virtual key in the plurality of virtual keys;
and the display unit is used for displaying the plurality of virtual keys in the second special-shaped area when the touch pressure is greater than a preset threshold value, otherwise, displaying a preset background image only in the first special-shaped area, wherein the preset background image is a frame image generated by the current application.
12. A display control method is applied to an electronic device comprising a processor, a memory connected with the processor, a gravity acceleration sensor and a touch display screen, wherein the touch display screen comprises a first special-shaped area and a first regular area, and the method comprises the following steps:
the memory stores a first preset using gesture, a plurality of virtual keys corresponding to the first preset using gesture and a preset touch area corresponding to each virtual key in the plurality of virtual keys;
the gravity acceleration sensor detects a use posture of the electronic device, and the use posture comprises one of the following items: the using posture of the horizontal screen, the using posture of the inverted horizontal screen, the using posture of the vertical screen and the using posture of the inverted vertical screen are correct;
if the use gesture is the first preset use gesture, the processor divides the touch display screen into a second special-shaped area and a second regular area according to a preset touch area corresponding to each virtual key in the plurality of virtual keys, wherein the second special-shaped area comprises the first special-shaped area and a part of display area, close to the first special-shaped area, in the first regular area, so that the special-shaped area and the regular area are re-divided based on the use gesture of the electronic equipment and the preset touch area corresponding to each virtual key in the plurality of virtual keys;
and when the touch pressure of the touch display screen is greater than a preset threshold value, the second special-shaped area displays the virtual keys, otherwise, a preset background image is only displayed in the first special-shaped area, and the preset background image is a frame image generated by the current application.
13. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-5.
14. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201711409667.7A 2017-12-20 2017-12-20 Display control method and related product Expired - Fee Related CN108008896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711409667.7A CN108008896B (en) 2017-12-20 2017-12-20 Display control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711409667.7A CN108008896B (en) 2017-12-20 2017-12-20 Display control method and related product

Publications (2)

Publication Number Publication Date
CN108008896A CN108008896A (en) 2018-05-08
CN108008896B true CN108008896B (en) 2021-03-09

Family

ID=62060815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711409667.7A Expired - Fee Related CN108008896B (en) 2017-12-20 2017-12-20 Display control method and related product

Country Status (1)

Country Link
CN (1) CN108008896B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762612B (en) * 2018-05-24 2021-06-04 维沃移动通信有限公司 Operation method and mobile terminal
CN108804190B (en) * 2018-06-08 2021-05-14 Oppo广东移动通信有限公司 User interface display method, device, terminal and storage medium
CN108803990B (en) * 2018-06-12 2021-03-16 Oppo广东移动通信有限公司 Interaction method, device and terminal
CN109144649B (en) 2018-08-22 2020-12-29 Oppo广东移动通信有限公司 Icon display method and device, terminal and storage medium
CN109491569A (en) * 2018-09-27 2019-03-19 Oppo(重庆)智能科技有限公司 Method of controlling operation thereof and Related product
CN111580739B (en) * 2020-06-08 2021-07-23 宁波视睿迪光电有限公司 Dynamic adjustment method and device for touch area of key and virtual keyboard
CN114090158B (en) * 2021-11-22 2024-04-02 北京百度网讯科技有限公司 Display method, display device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021897A (en) * 2016-05-13 2016-10-12 杭州华昊信息科技有限公司 Hospital information display system
CN106095226A (en) * 2016-06-01 2016-11-09 广州三星通信技术研究有限公司 The method and apparatus of application program is run in electric terminal
CN106293444A (en) * 2015-06-25 2017-01-04 小米科技有限责任公司 Mobile terminal, display control method and device
CN107273035A (en) * 2017-06-30 2017-10-20 努比亚技术有限公司 Application program recommends method and mobile terminal
CN107329664A (en) * 2017-06-27 2017-11-07 广东欧珀移动通信有限公司 reading processing method and related product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182141B (en) * 2014-08-18 2018-06-01 联想(北京)有限公司 A kind of information processing method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293444A (en) * 2015-06-25 2017-01-04 小米科技有限责任公司 Mobile terminal, display control method and device
CN106021897A (en) * 2016-05-13 2016-10-12 杭州华昊信息科技有限公司 Hospital information display system
CN106095226A (en) * 2016-06-01 2016-11-09 广州三星通信技术研究有限公司 The method and apparatus of application program is run in electric terminal
CN107329664A (en) * 2017-06-27 2017-11-07 广东欧珀移动通信有限公司 reading processing method and related product
CN107273035A (en) * 2017-06-30 2017-10-20 努比亚技术有限公司 Application program recommends method and mobile terminal

Also Published As

Publication number Publication date
CN108008896A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN108008896B (en) Display control method and related product
CN108111687B (en) Display control method and related product
US10955980B2 (en) Terminal and method for touchscreen input correction
CN109002243B (en) Image parameter adjusting method and terminal equipment
EP3136214A1 (en) Touch operation method and apparatus for terminal
CN112000269B (en) Screen opening method and device and electronic equipment
US20180203568A1 (en) Method for Enabling Function Module of Terminal, and Terminal Device
CN108153503B (en) Display control method and related product
CN108121493B (en) Display control method and related product
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
CN109542304B (en) Display content loading method, device, equipment and storage medium
CN110502162B (en) Folder creating method and terminal equipment
US20220107721A1 (en) Image display method and terminal
CN108845752A (en) touch operation method, device, storage medium and electronic equipment
CN109165075A (en) Application display method, device, electronic equipment and storage medium
CN110502164A (en) A kind of interface display method and electronic equipment
CN110647277A (en) Control method and terminal equipment
US20220326843A1 (en) Display method and electronic device
CN112445408B (en) Information processing method, information processing device, electronic equipment and storage medium
CN111064842B (en) Method, terminal and storage medium for recognizing special-shaped touch
CN103399657A (en) Mouse pointer control method, device and terminal device
KR20140141305A (en) A mobile phone to separate screen and controlling method thereof
CN105183538A (en) Information processing method and electronic device
CN109521937A (en) A kind of control method for screen display and mobile terminal
CN109032487A (en) Control method of electronic device, device, storage medium and electronic equipment

Legal Events

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: No.18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210309