Control display method, control display device, electronic equipment and medium

By detecting and locking the specific control in the page on the screen of the electronic device, the problem of errors caused by the refresh of the page is solved, and the accuracy of the operation is improved.

CN119356559AActive Publication Date: 2025-01-24VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411552622.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-01-24
Estimated Expiration
2044-11-01

AI Technical Summary

Technical Problem

When the application page displayed on the screen of an electronic device is refreshed, the display position or content of the control may change, causing the user to misoperate other controls or content, reducing the accuracy of the operation.

Method used

When the content of the first page displayed on the screen display of the electronic device is refreshed, the touch of the top of the screen is detected and the corresponding area is determined. When the area includes the refresh content, the control corresponding to the area is determined from the screen, and the control is locked according to its current display parameter.

Benefits of technology

Even if the page content is refreshed, the touch body will not accidentally operate other controls or content, thereby improving the operation accuracy of the electronic device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356559A_ABST
    Figure CN119356559A_ABST
Patent Text Reader

Abstract

The invention discloses a control display method, a control display device, electronic equipment and a medium, and belongs to the technical field of display. The control display method comprises the steps of determining a first area corresponding to a touch control body on a screen under the condition that content refreshing exists in a first page displayed on the screen of the electronic equipment and the touch control body is detected to exist above the screen; when it is determined that the first area comprises the refresh content of the first page, determining a first control corresponding to the first area from the first page displayed on a screen; the first control is locked and displayed according to current display parameters of the first control, and the current display parameters comprise at least one of the current display position and the current display content of the first control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of display technology, and specifically relates to a control display method, a control display device, an electronic device and a medium. Background Art

[0002] Currently, when using an electronic device, a user can trigger the electronic device to perform various functions by operating the content displayed on the screen of the electronic device.

[0003] Taking the application page displayed on the screen of an electronic device operated by a user as an example, usually, the user can trigger the electronic device to execute a corresponding function by clicking a certain function control in the application page.

[0004] However, if the application page displayed on the screen of the electronic device is refreshed when the user operates a certain control displayed on the screen of the electronic device, the display position of the control on the screen or the display content of the control on the screen may change, thereby causing the user to mistakenly operate other controls or other contents of the control. As a result, the operation accuracy of the electronic device is poor. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a control display method, a control display device, an electronic device and a medium, which can improve the operation accuracy of the electronic device.

[0006] In a first aspect, an embodiment of the present application provides a control display method, the method comprising:

[0007] When content of a first page displayed on a screen of the electronic device is refreshed and a touch object is detected above the screen, determining a first area on the screen corresponding to the touch object;

[0008] When it is determined that the first area includes refreshed content of the first page, determining a first control corresponding to the first area from the first page displayed on the screen;

[0009] The first control is locked and displayed according to a current display parameter of the first control, where the current display parameter includes at least one of a current display position and a current display content of the first control.

[0010] In a second aspect, an embodiment of the present application provides a control display method device, the device comprising:

[0011] A determination module, configured to determine a first area on the screen corresponding to the touch object when content of the first page displayed on the screen of the electronic device is refreshed and a touch object is detected above the screen;

[0012] The determination module is further configured to determine, when it is determined that the first area includes refreshed content of the first page, a first control corresponding to the first area from the first page displayed on the screen;

[0013] The display module is used to lock and display the first control according to the current display parameters of the first control, where the current display parameters include at least one of the current display position and the current display content of the first control.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the control display method described in the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the control display method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the control display method as described in the first aspect.

[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the control display method as described in the first aspect.

[0018] In an embodiment of the present application, when there is a content refresh on the first page displayed on the screen of the electronic device and a touch body is detected above the screen, the first area on the screen corresponding to the touch body is determined; when it is determined that the first area includes the refreshed content of the first page, the first control corresponding to the first area is determined from the first page displayed on the screen; the first control is locked and displayed according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control. In this way, when there is a content refresh on the first page displayed on the screen, the electronic device can lock and display the first control corresponding to the first area according to the current display parameters when the touch body is about to touch the first area of ​​the screen. Even if the content of the first area on the first page is refreshed, the touch body will not mistakenly operate other controls on the first page or other content of the first control, thereby improving the operation accuracy of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 1 ;

[0020] Figure 2 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 2 ;

[0021] Figure 3 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 3 ;

[0022] Figure 4 This is a schematic diagram of a mobile phone screen provided in an embodiment of the present application. Figure 1 ;

[0023] Figure 5 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 4 ;

[0024] Figure 6 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 5 ;

[0025] Figure 7 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 6 ;

[0026] Fig. 8A This is a schematic diagram of a mobile phone screen provided in an embodiment of the present application. Figure 2 ;

[0027] Figure 8B is a schematic diagram of the tree relationship of controls provided in an embodiment of the present application;

[0028] Fig. 9 This is a flowchart of the control display method provided in the embodiment of the present application. Figure 7 ;

[0029] Fig.10 is a structural schematic diagram of a control display device provided in an embodiment of the present application;

[0030] Fig.11 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0031] Fig.12 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0033] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0034] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0035] The control display method, control display device, electronic device and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0036] The control display method, control display device, electronic device and medium provided in the embodiments of the present application can be applied to page display scenarios.

[0037] In an application scenario, the control display method provided in the embodiment of the present application can be applied to a scenario in which a user operates a page displayed on a mobile phone screen through a mobile phone.

[0038] In the related art, when a user operates a certain control of an application page displayed on the mobile phone screen, the application page displayed on the mobile phone screen is refreshed, which may cause the display position of the control on the screen or the display content of the control on the screen to change, thereby causing the user to mistakenly operate other controls or other contents of the control. For example, when control A of an application page is displayed on the mobile phone screen, control A is displayed in area 1 of the screen, and the content displayed by control A is a. If the user operates the content a of control A of the application page displayed on the screen, the application page displayed on the mobile phone screen is refreshed, and after the refresh, the display position of control A on the screen is in area 1 of the screen, and the display position of control B on the screen is in area 1 of the screen, or the display position of control A on the screen is still in area 1 of the screen, but the display content changes from a to b. This will cause the user to mistakenly operate control B or the content b of control A. In this way, the operation accuracy of the mobile phone is poor.

[0039] To this end, the embodiments of the present application provide a control display method, a control display device, an electronic device, and a medium. When there is a content refresh on the first page displayed on the screen of the electronic device and a touch body is detected above the screen, the first area on the screen corresponding to the touch body is determined; when it is determined that the first area includes the refreshed content of the first page, the first control corresponding to the first area is determined from the first page displayed on the screen; the first control is locked and displayed according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control. In this way, when there is a content refresh on the first page displayed on the screen, the electronic device can lock and display the first control corresponding to the first area according to the current display parameters when the touch body is about to touch the first area of ​​the screen. Even if the content of the first area on the first page is refreshed, the touch body will not mistakenly operate other controls on the first page or other content of the first control, thereby improving the operation accuracy of the electronic device.

[0040] The execution subject of the control display method provided in the embodiment of the present application may be a control display device. Exemplarily, the control display device may be an electronic device, or a functional component or functional entity in the electronic device. The following will take the execution subject as an electronic device as an example to exemplify the control display method provided in the embodiment of the present application.

[0041] Figure 1 is a flow chart of a control display method provided in an embodiment of the present application, such as Figure 1 As shown, the control display method provided in the embodiment of the present application may include the following steps 101 to 103.

[0042] Step 101: When content of a first page displayed on a screen of an electronic device is refreshed and a touch object is detected above the screen, the electronic device determines a first area corresponding to the touch object on the screen.

[0043] In some embodiments of the present application, the above-mentioned touch body can be a user's finger, a stylus or other touch bodies, and this embodiment does not make any specific limitation here.

[0044] In some embodiments of the present application, the first page may be a page of a first application on the electronic device, and the first application may include but is not limited to any of the following: social software applications, payment applications, navigation applications, shopping applications, video applications, photo album applications, music applications, etc. The specific application may be determined according to actual usage requirements and is not limited in the embodiments of the present application.

[0045] In some embodiments of the present application, when the electronic device receives a first page update request of a first application, it is determined that there is a content refresh on the first page.

[0046] In some embodiments of the present application, Figure 1 ,like Figure 2 As shown, the "determining the first area corresponding to the touch object on the screen" in the above step 101 can be implemented by the following step 101a:

[0047] Step 101a: The electronic device passes through the target element to determine a first area.

[0048] In some embodiments of the present application, the target element includes at least one of the following:

[0049] Touch screens of electronic devices, under-screen distance sensors of electronic devices, and cameras of electronic devices.

[0050] In some embodiments of the present application, the touch screen may be a capacitive touch screen, and capacitors are arranged in various areas of the touch screen.

[0051] In some embodiments of the present application, the above-mentioned under-screen distance sensor may be an under-screen infrared distance sensor.

[0052] In this way, the electronic device determines the first area through at least one of the touch screen, the distance sensor under the screen of the electronic device, and the camera of the electronic device, which can improve the flexibility of the electronic device in detecting the first area.

[0053] In some embodiments of the present application, the above-mentioned camera may include at least one of a front camera of the electronic device and an under-screen camera of the electronic device.

[0054] In some embodiments of the present application, the target element includes a touch screen of an electronic device; Figure 2 ,like Figure 3 As shown, the above step 101a can be implemented through the following steps A1 to A3:

[0055] Step A1: The electronic device obtains capacitance variation of each area of ​​the touch screen.

[0056] In some embodiments of the present application, the electronic device can set capacitance in each area of ​​the full screen of the electronic device through the above-mentioned touch screen to obtain the capacitance value of each area of ​​the touch screen in real time.

[0057] In some embodiments of the present application, the electronic device can perform a difference operation between the capacitance value of each area of ​​the touch screen obtained at the current moment and the capacitance value of each area of ​​the touch screen obtained at the previous moment to obtain the capacitance change of each area of ​​the touch screen.

[0058] For example Figure 4 As shown, when the electronic device is a mobile phone, the touch screen 41 of the mobile phone can cover the entire screen 40 of the mobile phone.

[0059] Step A2: The electronic device determines a second region whose capacitance change amount among the regions is greater than or equal to the first threshold.

[0060] In some embodiments of the present application, the electronic device may compare the capacitance variation of the above-mentioned respective regions with the first threshold value to determine at least one second region whose capacitance variation is greater than or equal to the first threshold value from the above-mentioned respective regions.

[0061] Step A3: The electronic device determines the first area based on the second area.

[0062] In some embodiments of the present application, the electronic device may determine an area consisting of the at least one second area as the first area.

[0063] In some embodiments of the present application, the electronic device may also determine a regular area closest to the area composed of the at least one second area as the first area. The regular area may be understood as an area of ​​a regular shape, such as a circular area, a square area or a rectangular area.

[0064] For example, when the first region is a square, the first region can be expressed as (xr, yr, x+r, y+r), where (x, y) represents the coordinates of the center point of the first region in the screen coordinate system, r represents half of the side length of the first region, (xr, yr) represents the coordinates of the upper left corner of the first region in the screen coordinate system, and (x+r, y+r) represents the coordinates of the lower right corner of the first region in the screen coordinate system.

[0065] In this way, the electronic device can quickly and accurately detect the first area from the entire screen by obtaining the capacitance change of each area of ​​the touch screen; determining the second area whose capacitance change of each area is greater than or equal to the first threshold; and determining the first area based on the second area.

[0066] In some embodiments of the present application, the target element includes an under-screen distance sensor of an electronic device; Figure 2 ,like Figure 5 As shown, the above step 101a can be implemented through the following steps B1 and B2:

[0067] Step B1: The electronic device detects a touch object through an under-screen distance sensor of the electronic device.

[0068] In some embodiments of the present application, the electronic device can detect whether there is a touch body above the screen area corresponding to the under-screen distance sensor through the above-mentioned under-screen infrared distance sensor.

[0069] For example Figure 4 As shown, the mobile phone can detect whether there is a touch object above the screen area 42 corresponding to the under-screen distance sensor 421 through the under-screen infrared distance sensor 421.

[0070] Step B2: If a touch body is detected and the distance between the touch body and the screen is less than or equal to a second threshold, the electronic device determines the screen area corresponding to the under-screen distance sensor as the first area.

[0071] In some embodiments of the present application, if the electronic device detects a touch body above the screen area corresponding to the under-screen distance sensor through the under-screen infrared distance sensor, and the distance between the touch body and the above-mentioned screen area is less than or equal to a second threshold, the above-mentioned screen area is determined as the first area.

[0072] For example Figure 4 As shown, when the under-screen distance sensor of the mobile phone detects a touch body above the screen area 42 and the distance between the touch body and the screen area 42 is less than or equal to the second threshold, the screen area 42 is determined as the first area.

[0073] In this way, the electronic device detects the touch body through the under-screen distance sensor of the electronic device; if the touch body is detected and the distance between the touch body and the screen is less than or equal to the second threshold, the screen area corresponding to the under-screen distance sensor is determined as the first area, so that the first area can be detected quickly and accurately.

[0074] In some embodiments of the present application, the target element includes a camera of an electronic device; Figure 2 ,like Figure 6As shown, the above step 101a can be implemented through the following steps C1 to C3:

[0075] Step C1: The electronic device captures a first image through a first camera of the electronic device.

[0076] In some embodiments of the present application, the first camera may be a front camera or an under-screen camera of the electronic device, and this embodiment does not impose any specific limitation here.

[0077] In some embodiments of the present application, the first image may be an image directly above the screen of the electronic device.

[0078] Step C2: If the first image includes the image of the touch object, the electronic device determines a third area in the first image where the image of the touch object is located.

[0079] In some embodiments of the present application, the electronic device may perform recognition processing on the first image to determine whether the first image includes an image of the touch object.

[0080] In some embodiments of the present application, the electronic device can perform recognition processing on the first image through an image recognition model. The image recognition model is obtained by training at least one sample image and a label corresponding to each sample image, wherein the at least one sample image is an image including a touch body, and the label corresponding to each sample image is the at least one sample image with the touch body marked.

[0081] In some embodiments of the present application, if the electronic device recognizes that the first image includes the image of the touch body, it can establish an image coordinate system on the first image to determine the first coordinate information of each pixel point in the image of the touch body in the image coordinate system, and then determine the second area where the image of the touch body is located in the first image based on the first coordinate information.

[0082] In some embodiments of the present application, the electronic device can perform recognition processing on the first image through an image recognition model. The image recognition model is obtained by training at least one sample image and a label corresponding to each sample image, wherein the at least one sample image is an image including a touch body, and the label corresponding to each sample image is the at least one sample image with the touch body marked.

[0083] Step C3: The electronic device determines the area on the screen corresponding to the third area as the first area.

[0084] In some embodiments of the present application, each pixel in the first image corresponds to a coordinate point on the screen of the electronic device. After the electronic device determines the third area, it can determine the first area based on the coordinate point corresponding to each pixel in the third area on the screen, and then based on the second coordinate information of the coordinate point corresponding to each pixel in the third area on the screen in the screen coordinate system, where the second coordinate information is the coordinate information corresponding to the coordinate point corresponding to each pixel in the third area in the screen coordinate system.

[0085] For example Figure 4 As shown, when the first camera is the front camera of the mobile phone, Figure 4 As shown, the front camera of the mobile phone can detect the first image above the screen area 43 corresponding to the front camera, that is, each pixel in the first image corresponds to a coordinate point in the screen area 43. If the first image in the mobile phone recognition includes an image of a touch body, and the image of the touch body is in the second area of ​​the first image, the mobile phone can determine the coordinate point corresponding to each pixel in the second area in the screen area 43, and then determine the first area according to the second coordinate information of the coordinate point corresponding to each pixel in the second area in the screen area 43 in the screen coordinate system.

[0086] In this way, the electronic device captures a first image through the first camera of the electronic device; if the first image includes an image of the touch body, a third area in the first image where the image of the touch body is located is determined; and the area on the screen corresponding to the third area is determined as the first area, so that the first area can be detected quickly and accurately.

[0087] In some embodiments of the present application, the target element includes a camera of an electronic device; Figure 1 ,like Figure 7 As shown, the above step 101a can be implemented through the following steps D1 to D3:

[0088] Step D1: The electronic device obtains gaze information of the user through the second camera of the electronic device.

[0089] In some embodiments of the present application, the second camera may be a front camera of the electronic device.

[0090] In some embodiments of the present application, when the user's eyes are looking at the screen, the electronic device can collect the user's eye image through the above-mentioned front camera, and then use eye tracking technology to obtain the user's gaze information from the user's eye image. The above-mentioned gaze information may include the coordinate information of the user's eye corners in the eye image, the coordinate information of the pupil position in the eye image, the coordinate information of the eye center in the eye image, and the angle of the face and other information.

[0091] Step D2: the electronic device determines the user's gaze area on the screen based on the gaze information;

[0092] Step D3: The electronic device determines the gaze area as the first area.

[0093] In some embodiments of the present application, a pixel point in the human eye image corresponds to a coordinate point in the screen area where the front camera is located. The electronic device can determine, based on the gaze information, an area corresponding to the gaze information in the screen area where the front camera is located, and the area corresponding to the gaze information is the gaze area.

[0094] In this way, the electronic device obtains the user's gaze information through the second camera of the electronic device; based on the gaze information, determines the user's gaze area on the screen; and determines the gaze area as the first area, so that the first area can be detected quickly and accurately.

[0095] Step 102: When it is determined that the first area includes refreshed content of the first page, the electronic device determines a first control corresponding to the first area from the first page displayed on the screen.

[0096] In some embodiments of the present application, the above controls may include but are not limited to any of the following: buttons, lists, text input boxes and other human-computer interaction controls. The specific controls may be determined according to actual use requirements and are not limited in the embodiments of the present application.

[0097] In some embodiments of the present application, the first page update request includes display parameters of at least one control to be updated in the first page including the first control, and the display parameters include at least one of a display position and a display content. The first page update request is used to trigger the electronic device to update the current display parameters of the at least one control to be updated to the display parameters of the first page update request, and the current display parameters include at least one of a current display area and a current display content.

[0098] In some embodiments of the present application, when the electronic device determines that the current display area of ​​a certain control in the at least one control to be updated is in the first area, it determines that the first area includes the refreshed content of the first page.

[0099] In some embodiments of the present application, the first control corresponding to the first area can be understood as a control of the first area included in the current display area of ​​the electronic device screen.

[0100] Step 103: The electronic device locks and displays the first control according to the current display parameters of the first control.

[0101] In some embodiments of the present application, the current display parameter includes at least one of the current display position and the current display content of the first control.

[0102] In some embodiments of the present application, locking the display of the first control can be understood as locking at least one of the current display position and the current display content of the first control.

[0103] In the control display method provided in the embodiment of the present application, the electronic device determines the first area on the screen corresponding to the touch body when there is a content refresh on the first page displayed on the screen and a touch body is detected above the screen; when it is determined that the first area includes the refreshed content of the first page, the first control corresponding to the first area is determined from the first page displayed on the screen; the first control is locked and displayed according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control. In this way, when there is a content refresh on the first page displayed on the screen, the electronic device can lock and display the first control corresponding to the first area according to the current display parameters when the touch body is about to touch the first area of ​​the screen. Even if the content of the first area on the first page is refreshed, the touch body will not mistakenly operate other controls on the first page or other content of the first control, thereby improving the operation accuracy of the electronic device.

[0104] In some embodiments of the present application, the “the electronic device determines the first control corresponding to the first area from the first page displayed on the screen” in the above step 102 can be implemented by the following steps 102a to 102c:

[0105] Step 102a: The electronic device determines a target control corresponding to the first area.

[0106] In some embodiments of the present application, the target control is a control that does not include a sub-control in the second control.

[0107] In some embodiments of the present application, the second control is a control included in the first page.

[0108] In some embodiments of the present application, the target control corresponding to the first area can be understood as a control that does not contain sub-controls in the display area of ​​the electronic device screen including the above-mentioned first area.

[0109] In some embodiments of the present application, the first control corresponding to the first area can be understood as a control that does not include sub-controls in the display area of ​​the electronic device screen that includes the above-mentioned first area.

[0110] For example Fig. 8AAs shown, when the electronic device is a mobile phone, the first page displayed on the screen 80 of the mobile phone has controls A 81, B 82, and C 83, and the display area of ​​control B 82 displays controls Item1 821, Item2 822, Item3 823, Item4 824, and Item5 825, and the first area 8231 is located in the display area of ​​control Item3 823. Fig. 8A , the tree relationship between the controls on the first page can be as follows Figure 8B As shown, the root control 80a corresponding to the first page includes control A 81, control B 82 and control C 83, and control B 82 includes Item1 821, control Item2 822, control Item3 823, control Item4 824 and control Item5 825. Control Item3 823 does not contain child controls, and control Item3 823 is the target control mentioned above.

[0111] Step 102b: if the target control is a movable control, the electronic device determines a third control including the target control as the first control;

[0112] Step 102c: If the target control is an immovable control, the electronic device determines the target control as the first control.

[0113] In some embodiments of the present application, the third control mentioned above is a non-movable control.

[0114] In some embodiments of the present application, if the target control is a movable control, the electronic device determines the upper-level fourth control including the target control as the third control when the upper-level fourth control including the target control is a non-movable control.

[0115] In some embodiments of the present application, if the target control is a movable control, and the fourth control of the previous level containing the above target control is a movable control, the electronic device needs to determine whether the fifth control of the previous level containing the above fourth control is an immovable control. If the fifth control of the previous level is an immovable control, the fifth control of the previous level is determined as the third control. If the fifth control of the previous level is a movable control, it is necessary to determine whether the sixth control of the previous level containing the fifth control of the previous level is an immovable control, until it is determined that the control containing the target control is immovable and is used as the third control.

[0116] For example Fig. 8AAs shown, if the control Item3823 is a non-movable control, the control Item3823 is determined as the first control. If the control Item3823 is a movable control, then in the case where the control B 82 including the control Item3823 is a non-movable control, the control B 82 is determined as the first control. If the control B 82 is a movable control, the root control Root including the first page is determined as the first control.

[0117] It should be noted that if a control in the first page is a movable control, all controls at the same level as the control are movable controls, indicating that the display parameters of controls at the same level affect each other. If a control in the first page is an immovable control, all controls at the same level as the target control are also immovable controls, indicating that the display parameters of controls at the same level are independent of each other.

[0118] For example Fig. 8A As shown, if the control Item3823 is an immovable control, then the control Item1821, the control Item2822, the control Item4824, and the control Item5825 are also immovable controls, and the display parameters of the control Item3823, the display parameters of the control Item1821, the display parameters of the control Item2822, the display parameters of the control Item3823, the display parameters of the control Item4824, and the display parameters of the control Item5825 are independent of each other and do not affect each other. If the control Item3823 is a movable control, then the display parameters of the control Item1821, the display parameters of the control Item2822, the display parameters of the control Item3823, the display parameters of the control Item4824, and the display parameters of the control Item5825 affect each other.

[0119] In this way, if the target control is a movable control, the electronic device will determine the third control including the target control as the first control; if the target control is a non-movable control, the electronic device will determine the target control as the first control, thereby avoiding the problem that when the target control is kept as a movable control and the display of the target control is locked according to the current display parameters of the target control, the display parameters of other controls at the same level as the target control are affected, thereby causing other controls at the same level as the target control to be displayed incorrectly, thereby improving the display effect of the first page by the electronic device.

[0120] In some embodiments of the present application, after the above step 103, the control display method provided in the embodiment of the present application may further include the following step 104:

[0121] Step 104 : When the electronic device does not detect a touch body in the first area, the electronic device updates and displays the first control based on the first display parameter in the first page update request.

[0122] In some embodiments of the present application, the first display parameter is a display parameter of the first control, and the first display parameter may include a display position and display content of the first control on the screen.

[0123] In some embodiments of the present application, the electronic device may update the current display parameters of each to-be-updated control in the first page including the first control to the display parameters in the first page update request according to the first page update request.

[0124] In some embodiments of the present application, updating the display of the first control may be understood as updating the display position and display content of the first control on the screen.

[0125] In some embodiments of the present application, when the first area is determined based on the second area, if the capacitance change of each sub-area in the second area is less than a first threshold, it is determined that the first area does not detect a touch object.

[0126] In some embodiments of the present application, when the first area is the screen area corresponding to the under-screen distance sensor, if the under-screen sensor does not detect the touch body or the under-screen sensor does not detect that the distance between the touch body and the screen is greater than the second threshold, it is determined that the first area does not detect the touch body.

[0127] In some embodiments of the present application, when the first area is an area corresponding to the third area on the screen, if the first image does not include an image of a touch body, it is determined that no touch body is detected in the first area.

[0128] In some embodiments of the present application, when the above-mentioned first area is the user's gaze area on the above-mentioned screen, if the electronic device does not obtain the user's gaze information through the second camera, or obtains the user's gaze information and the gaze area determined based on the gaze information is other areas of the screen, it is determined that the above-mentioned first area does not detect the touch body.

[0129] In this way, the electronic device updates and displays the first control based on the first display parameter in the first page update request when no touch body is detected in the first area, so that the electronic device can promptly update and display the first control corresponding to the first area when the first area is out of operation, thereby improving the display effect of the electronic device on the first page.

[0130] In some embodiments of the present application, the current display parameter is the current display position; the step 103 may be implemented by the following step 103a:

[0131] Step 103a: When the electronic device receives the second page update request, it locks and displays the first control according to the current display position of the first control, and updates and displays the content of the first control based on the second page update request.

[0132] In some embodiments of the present application, in some embodiments of the present application, the second page update request may be sent to the electronic device by the first application corresponding to the first page, and is used to trigger the electronic device to lock the display of the first control and update the display content of the first control according to the current display position of the first control. The second page update request includes the display parameters of other controls in the first page except the first control and the display content of the first control.

[0133] In some embodiments of the present application, the electronic device may update the display parameters of other controls except the first control in the first page and the display content of the first control according to the second page update request, and lock the first control to be displayed in the current display position.

[0134] In some embodiments of the present application, the above-mentioned update display of the content of the first control may include but is not limited to any of the following: updating the color or corner mark of the above-mentioned first control, updating the information of the emergency event in the above-mentioned first control, etc., which can be determined according to actual use requirements, and the embodiments of the present application are not limited. For example, when the first control is a control on a chat page, the above-mentioned emergency event may be grabbing a red envelope. For another example, when the first control is a control on a text message page, the above-mentioned emergency event may be an earthquake warning.

[0135] In this way, the electronic device can display the first control more flexibly and improve the display effect of the first control by locking the display of the first control according to the current display position of the first control when receiving the second page update request, and updating the content of the first control based on the second page update request.

[0136] Fig. 9 901 to 906:

[0137] Step 901: The mobile phone displays the first page of the first application.

[0138] Exemplarily, the first page includes controls that can be refreshed by the first application to cause a change in display position or display content, such as a message / email list (WeChat chat main page), a picture loading list (online photo album), etc.

[0139] 902. The mobile phone detects whether there is a touch body above the current screen.

[0140] 903. When a touch object is detected above the current screen, the mobile phone detects a first area above the screen where the touch object is located.

[0141] Exemplarily, the first region may be recorded as (left1, top1 - right1, bottom1), wherein left1, top1 represents the upper left corner point of the first region, and right1, bottom1 represents the lower right corner point of the first region.

[0142] For example, in combination Figure 4 As shown, the detection method of the first area can be as follows:

[0143] 1) Detecting the first area through the floating touch technology implemented by the capacitive touch screen.

[0144] For example, the capacitive touch screen can detect the entire screen, and the detection range is large. In this way, the area of ​​the finger detection is the entire screen. The mobile phone can set the capacitance in each area of ​​the full screen of the mobile phone through the capacitive touch screen to obtain the capacitance value of each area of ​​the touch screen in real time. When the touch body is suspended or close to any position area of ​​the screen, the capacitance change of each sub-area in the position area will increase.

[0145] Exemplarily, the mobile phone can perform a difference operation between the capacitance values ​​of each area of ​​the capacitive touch screen obtained at the current moment and the capacitance values ​​of each area of ​​the capacitive touch screen obtained at the previous moment to obtain the capacitance change of each area of ​​the capacitive touch screen. The mobile phone compares the capacitance change of each area with the first threshold value to determine at least one second area from each area whose capacitance change is greater than or equal to the first threshold value, and then determines the regular area closest to the area composed of the at least one second area as the first area. The regular area can be understood as an area of ​​regular shape, such as a circular area, a square area or a rectangular area.

[0146] For example, when the first region is a square, the first region can be expressed as (xr, yr, x+r, y+r), where (x, y) represents the coordinates of the center point of the first region in the screen coordinate system, r represents half of the side length of the first region, (xr, yr) represents the coordinates of the upper left corner of the first region in the screen coordinate system, left1, top1, and (x+r, y+r) represents the coordinates of the lower right corner of the first region in the screen coordinate system, right1, bottom1.

[0147] 2) Detect the first area through the under-screen infrared distance sensor.

[0148] For example, the under-screen infrared distance sensor can detect whether the touch object is close to or far from the screen. The detection range of this method is Figure 4 The screen area 42 in the screen has a long detection distance and a fast detection speed. When the under-screen infrared distance sensor detects that the finger is suspended or close to the screen area 42, the screen area 42 is determined as the first area.

[0149] 3) Detect the first area through air gesture detection implemented by the camera.

[0150] Exemplarily, the detection range of this method is the area near the camera, such as Figure 4 The screen area in 43, the detection distance is far.

[0151] For example, the mobile phone can obtain the first image captured by the camera, and then determine whether the first image includes the image of the touch body. If yes, determine the third area of ​​the image of the touch body in the first image, and then determine the area on the screen area 43 corresponding to the third area, and then determine the area on the screen area 43 corresponding to the third area as the first area.

[0152] It should be noted that when detecting whether the touch object is close to the screen, if the mobile phone hardware supports it, a single detection method can be used. Considering the speed and accuracy of different detection methods, different screen areas can use different detection methods, or at least two methods can be combined for detection, so as to achieve more accurate and timely detection of whether the touch object is close to the screen.

[0153] When used in combination, the touch screen provides a backup to ensure that the entire screen area has detection capabilities. The combination strategy is: when there are other sensors in a certain area of ​​the screen that can detect more promptly or accurately than the touch screen, and this sensor is turned on, the proximity detection of the touch object in this area can be completed by this sensor. When there are no other sensors, the capacitive touch screen is used for detection.

[0154] Here are some examples:

[0155] Assume that the phone has turned on the infrared distance sensor under the screen. Figure 4 As shown, when the touch object approaches the screen area 42 where the under-screen infrared distance sensor is located, since the under-screen infrared distance sensor has a longer detection distance than the touch screen, the under-screen infrared distance sensor in this area senses the touch object before the touch screen. Therefore, in this area, the under-screen infrared distance sensor can replace the touch screen to detect whether there is a touch object approaching.

[0156] Step 904: The mobile phone determines a first control corresponding to the first area according to the first area.

[0157] Exemplarily, the mobile phone can determine the first control (button or list) currently in the first area according to (left, top-right, bottom) of the area.

[0158] For example Fig. 8A As shown, the screen 80 displays a first page 80a, which is divided into three controls A, B, and C, wherein B contains sub-controls such as control Item 1 and control Item 2, which are converted into a view tree as shown in FIG. Figure 8B As shown, when the touch body approaches the first area 8231, it can be obtained that the control corresponding to the first area 8231 is control Item 3. It can be further determined that the control containing control Item 3 is control B. When the sub-controls in control B, such as control Item 1 and control Item 2, change, they will also affect the position of control Item 3. Therefore, control B needs to be locked. At this time, the area where control B is located is recorded as (left2, top2-right2, bottom2). Among them, left2, top2 represents the upper left corner point of the area where control B is located, and right2, bottom2 represents the lower right corner point of the area where control B is located.

[0159] Step 905: The mobile phone is locked and the first control is refreshed.

[0160] For example, the mobile phone can temporarily refresh and lock the area (left2, top2-right2, bottom2) where the control B is located, so that at least one of the current display position and the current display content of the control B will not be refreshed and changed. The locking methods include the following:

[0161] a. The mobile phone may notify the first application of the lock refresh event, so that the first application executes the lock refresh strategy.

[0162] b. The mobile phone intercepts the request to modify the position and content of control B and its sub-controls.

[0163] c. The mobile phone provides an interface to the first application, through which the first application can tell the mobile phone which state modification requests of the control to intercept or not intercept, for example, the content can be refreshed but the position cannot be modified.

[0164] It should be noted that if controls A, B, and C are also movable controls, the control area locked for refresh is the root control Root of the first page.

[0165] Exemplarily, when the refresh is locked, the refresh request can be recorded to facilitate the restoration of the refresh of the first page when the refresh lock is released.

[0166] Step 906: The mobile phone releases the refresh lock on the first control.

[0167] For example, when the mobile phone detects that the touch body has finished contacting the screen and the screen is out of contact, or the touch body leaves the currently locked refresh range, the mobile phone releases the temporary refresh lock on the first area, and refreshes the new area if necessary. The first area that has been refreshed can resume the refresh operation as needed, in the following two ways:

[0168] (1) The mobile phone notifies the first application that the refresh lock has been released, and the first application can resume refreshing as needed;

[0169] (2) The mobile phone resends the intercepted refresh request, triggering one or more page refresh actions.

[0170] In summary, this implementation uses the touch screen to check the area that the touch body is close to, and temporarily refreshes and locks the area after detecting that the touch body is close to it. During the lock period, the refresh operation of the area that the touch body is about to touch will be temporarily blocked to avoid user accidental touches due to changes in screen content. Once the touch body completes the touch or moves away, the temporary refresh lock will be automatically released. In this way, the problem of user accidental touches due to list / button / text refresh can be reduced, and the user's operation experience and accuracy can be improved.

[0171] In the control display method provided by the present application, by temporarily refreshing and locking the area that the touch body is about to touch, it is avoided that the uncontrollable refresh of the screen content changes the content of the area that the user is about to operate, resulting in the mis-touch caused by the inconsistency between the user's expected operation and the actual triggered operation, thereby making the user's operation more precise and accurate, and improving the user's operation experience. In addition, it reduces the trouble caused by the user's misoperation caused by screen refresh, and improves the user's satisfaction with the mobile device.

[0172] It should be noted that the specific implementation process of the above step control display method can refer to the relevant description of the above embodiment. To avoid repetition, this embodiment will not be repeated here.

[0173] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not impose any restrictions on this.

[0174] The control display method provided in the embodiment of the present application can be executed by a control display device. In the embodiment of the present application, the control display device provided in the embodiment of the present application is described by taking the control display method executed by the control display device as an example.

[0175] Fig.10 It is a structural diagram of a control display device provided in an embodiment of the present application. The control display device 1000 includes: a determination module 1001 and a display module 1002.

[0176] Among them, the determination module 1001 is used to determine the first area on the screen corresponding to the touch body when there is a content refresh on the first page displayed on the screen of the electronic device and a touch body is detected above the screen; the determination module is also used to determine the first control corresponding to the first area from the first page displayed on the screen when it is determined that the first area includes the refreshed content of the first page; the display module 1002 is used to lock and display the first control according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control.

[0177] In some embodiments of the present application, the determination module 1001 is specifically used to: determine the first area through a target element, and the target element includes at least one of the following: a touch screen of an electronic device, an under-screen distance sensor of an electronic device, and a camera of an electronic device.

[0178] In some embodiments of the present application, the target element includes a touch screen of an electronic device; the determination module 1001 is specifically used to: obtain the capacitance change of each area of ​​the touch screen; determine a second area whose capacitance change of each area is greater than or equal to a first threshold; and determine the first area based on the second area.

[0179] In some embodiments of the present application, the target element includes an under-screen distance sensor of an electronic device; the determination module 1001 is specifically used to: detect a touch body through the under-screen distance sensor of the electronic device; if a touch body is detected and the distance between the touch body and the screen is less than or equal to a second threshold, determine the screen area corresponding to the under-screen distance sensor as the first area.

[0180] In some embodiments of the present application, the target element includes a camera of an electronic device; the determination module 1001 is specifically used to: capture a first image through a first camera of the electronic device; if the first image includes an image of a touch body, determine a third area in the first image where the image of the touch body is located; and determine an area on the screen corresponding to the third area as the first area.

[0181] In some embodiments of the present application, the target element includes a camera of an electronic device; the determination module 1001 is specifically used to: obtain the user's gaze information through a second camera of the electronic device; based on the gaze information, determine the user's gaze area on the screen; and determine the gaze area as the first area.

[0182] In some embodiments of the present application, the display module 1002 is also used to: after locking the display of the first control according to the current display parameters of the first control, when the touch body is not detected in the first area, update the display of the first control based on the first display parameters in the first page update request, where the first display parameters are the display parameters of the first control.

[0183] In some embodiments of the present application, the determination module 1001 is specifically used to: determine a target control corresponding to the first area, the target control being a control that does not contain a sub-control in the second control, and the second control being a control contained in the first page; if the target control is a movable control, then determining a third control containing the target control as the first control, and the third control being an immovable control; if the target control is an immovable control, then determining the target control as the first control.

[0184] In some embodiments of the present application, the current display parameter is the current display position; the display module 1002 is specifically used to: when receiving a second page update request, lock and display the first control according to the current display position of the first control, and update and display the content of the first control based on the second page update request.

[0185] In the control display device provided in the embodiment of the present application, the control display device determines the first area on the screen corresponding to the touch body when there is a content refresh on the first page displayed on the screen and a touch body is detected above the screen; when it is determined that the first area includes the refreshed content of the first page, the first control corresponding to the first area is determined from the first page displayed on the screen; the first control is locked and displayed according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control. In this way, when there is a content refresh on the first page displayed on the screen, the control display device can lock and display the first control corresponding to the first area according to the current display parameters when the touch body is about to touch the first area of ​​the screen. Even if the content of the first area on the first page is refreshed, the touch body will not mistakenly operate other controls on the first page or other content of the first control, thereby improving the operation accuracy of the control display device.

[0186] The control display device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device, an augmented reality / virtual reality device, a robot, a wearable device, a super mobile personal computer, a netbook or a personal digital assistant, etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0187] The control display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0188] The control display device provided in the embodiment of the present application can implement each process implemented by each embodiment of the above-mentioned control display method, and will not be described again here to avoid repetition.

[0189] Alternatively, if Fig.11 As shown, an embodiment of the present application further provides an electronic device 1100, including a processor 1101 and a memory 1102, wherein the memory 1102 stores programs or instructions that can be executed on the processor 1101, and when the program or instructions are executed by the processor 1101, the various steps of the above-mentioned control display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0190] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0191] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0192] The electronic device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210 and other components.

[0193] Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0194] Among them, the processor 1210 is used to determine the first area corresponding to the touch body on the screen when there is a content refresh on the first page displayed on the screen of the electronic device and a touch body is detected above the screen; when it is determined that the first area includes the refreshed content of the first page, determine the first control corresponding to the first area from the first page displayed on the screen; the display unit 1206 is used to lock and display the first control according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control.

[0195] In some embodiments of the present application, the processor 1210 is specifically used to: determine the first area through a target element, and the target element includes at least one of the following: a touch screen of the electronic device, an under-screen distance sensor of the electronic device, and a camera of the electronic device.

[0196] In some embodiments of the present application, the target element includes a touch screen of an electronic device; the processor 1210 is specifically used to: obtain the capacitance change of each area of ​​the touch screen; determine a second area whose capacitance change of each area is greater than or equal to a first threshold; and determine the first area based on the second area.

[0197] In some embodiments of the present application, the target element includes an under-screen distance sensor of an electronic device; the processor 1210 is specifically used to: detect a touch body through the under-screen distance sensor of the electronic device; if a touch body is detected and the distance between the touch body and the screen is less than or equal to a second threshold, determine the screen area corresponding to the under-screen distance sensor as the first area.

[0198] In some embodiments of the present application, the target element includes a camera of an electronic device; the processor 1210 is specifically used to: capture a first image through a first camera of the electronic device; if the first image includes an image of a touch body, determine a third area in the first image where the image of the touch body is located; and determine an area on the screen corresponding to the third area as the first area.

[0199] In some embodiments of the present application, the target element includes a camera of an electronic device; the processor 1210 is specifically used to: obtain the user's gaze information through a second camera of the electronic device; based on the gaze information, determine the user's gaze area on the screen; and determine the gaze area as the first area.

[0200] In some embodiments of the present application, the display unit 1206 is further used to: after locking the display of the first control according to the current display parameters of the first control, update the display of the first control based on the first display parameters in the first page update request when the touch body is not detected in the first area, wherein the first display parameters are the display parameters of the first control.

[0201] In some embodiments of the present application, the processor 1210 is specifically used to: determine a target control corresponding to the first area, the target control is a control that does not contain a sub-control in the second control, and the second control is a control contained in the first page; if the target control is a movable control, then the third control containing the target control is determined as the first control, and the third control is an immovable control; if the target control is an immovable control, then the target control is determined as the first control.

[0202] In some embodiments of the present application, the current display parameter is the current display position; the display unit 1206 is specifically used to: when receiving a second page update request, lock the display of the first control according to the current display position of the first control, and update the display of the content of the first control based on the second page update request.

[0203] In the electronic device provided in the present application, the electronic device determines the first area on the screen corresponding to the touch body when there is a content refresh on the first page displayed on the screen and a touch body is detected above the screen; when it is determined that the first area includes the refreshed content of the first page, the first control corresponding to the first area is determined from the first page displayed on the screen; the first control is locked and displayed according to the current display parameters of the first control, and the current display parameters include at least one of the current display position and the current display content of the first control. In this way, when there is a content refresh on the first page displayed on the screen, the electronic device can lock and display the first control corresponding to the first area according to the current display parameters when the touch body is about to touch the first area of ​​the screen. Even if the content of the first area on the first page is refreshed, the touch body will not mistakenly operate other controls on the first page or other content of the first control, thereby improving the operation accuracy of the electronic device.

[0204] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0205] The memory 1209 can be used to store software programs and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1209 may include a volatile memory or a non-volatile memory, or the memory 1209 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0206] The processor 1210 may include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1210.

[0207] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0208] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0209] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0210] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0211] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0212] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0213] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0214] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control display method, characterized in that: The method comprises: When content of a first page displayed on a screen of the electronic device is refreshed and a touch object is detected above the screen, determining a first area on the screen corresponding to the touch object; When it is determined that the first area includes refreshed content of the first page, determining a first control corresponding to the first area from the first page displayed on the screen; The first control is locked and displayed according to a current display parameter of the first control, where the current display parameter includes at least one of a current display position and a current display content of the first control.

2. The method according to claim 1, characterized in that The determining the first area corresponding to the touch object on the screen includes: The first area is determined by a target element, wherein the target element includes at least one of the following: Touch screens of electronic devices, under-screen distance sensors of electronic devices, and cameras of electronic devices.

3. The method according to claim 2, characterized in that The target element includes a touch screen of an electronic device; Determining the first area through the target element includes: Obtaining capacitance changes of various areas of the touch screen; Determine a second region among the regions where the capacitance change is greater than or equal to the first threshold; Based on the second area, the first area is determined.

4. The method according to claim 2, characterized in that: The target element includes an under-screen distance sensor of an electronic device; Determining the first area through the target element includes: Detecting the touch object through the distance sensor under the screen of the electronic device; If a touch body is detected and the distance between the touch body and the screen is less than or equal to a second threshold, the screen area corresponding to the under-screen distance sensor is determined as the first area.

5. The method according to claim 2, characterized in that: The target element includes a camera of an electronic device; Determining the first area through the target element includes: Acquire a first image through a first camera of the electronic device; If the first image includes an image of a touch object, determining a third area in the first image where the image of the touch object is located; An area on the screen corresponding to the third area is determined as the first area.

6. The method according to claim 2, characterized in that The target element includes a camera of an electronic device; Determining the first area through the target element includes: Acquiring gaze information of the user through a second camera of the electronic device; Based on the gaze information, determining a gaze area of ​​the user on the screen; The gaze area is determined as the first area.

7. The method according to claim 1, characterized in that After locking and displaying the first control according to the current display parameter of the first control, the method further includes: In a case where the touch body is not detected in the first area, the first control is updated and displayed based on a first display parameter in the first page update request, where the first display parameter is a display parameter of the first control.

8. The method according to claim 1, characterized in that: The determining a first control corresponding to the first area includes: Determine a target control corresponding to the first area, the target control being a control that does not contain a sub-control in a second control, and the second control being a control contained in the first page; If the target control is a movable control, a third control including the target control is determined as the first control, and the third control is an immovable control; If the target control is an immovable control, the target control is determined as the first control.

9. The method according to claim 1, characterized in that: The current display parameter is the current display position; The locking and displaying of the first control according to the current display parameter of the first control includes: When the second page update request is received, the first control is locked and displayed according to the current display position of the first control, and the content of the first control is updated and displayed based on the second page update request.

10. A control display device, characterized in that: The device comprises: A determination module, configured to determine a first area on the screen corresponding to the touch-sensitive body when content of the first page displayed on the screen of the electronic device is refreshed and a touch-sensitive body is detected above the screen; The determining module is further configured to determine, when it is determined that the first area includes refreshed content of the first page, a first control corresponding to the first area from the first page displayed on the screen; The display module is used to lock and display the first control according to the current display parameters of the first control, where the current display parameters include at least one of the current display position and the current display content of the first control.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control display method as described in any one of claims 1 to 9 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the control display method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Method and device for refreshing page

    CN104951179A

  • Refresh rate adjustment method and device, electronic equipment and storage medium

    CN116301535A

  • Touch area determination method and device, electronic equipment and storage medium

    CN118092749A

  • Method and apparatus for automatically locking and unlocking screen during chat, mobile client, and computer client

    US20180341382A1