WO2021042886A1 - 一种被遮挡或被误触的控件的调整方法及装置 - Google Patents

一种被遮挡或被误触的控件的调整方法及装置 Download PDF

Info

Publication number
WO2021042886A1
WO2021042886A1 PCT/CN2020/102859 CN2020102859W WO2021042886A1 WO 2021042886 A1 WO2021042886 A1 WO 2021042886A1 CN 2020102859 W CN2020102859 W CN 2020102859W WO 2021042886 A1 WO2021042886 A1 WO 2021042886A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
touched
screen
degree
hole
Prior art date
Application number
PCT/CN2020/102859
Other languages
English (en)
French (fr)
Inventor
吴练起
黄德才
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021042886A1 publication Critical patent/WO2021042886A1/zh

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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

Definitions

  • the present application relates to the field of smart terminals, and in particular to a method and device for adjusting a control that is blocked or touched by mistake.
  • the location of the holes may obscure the function buttons; on products with curved screens, the function buttons on the edge may be touched by mistake, which will affect the user experience.
  • the position of the hole occludes a function button, which may cause the user to not know how to log out or operate.
  • a mobile phone with a curved screen a user opens an application to browse a webpage, and his finger accidentally touches a function button on the edge of the curved surface, causing the webpage being browsed to jump to another page.
  • the present application provides a method and device for adjusting a control that is blocked or touched by mistake, so that the control is not covered or touched by mistake.
  • a method for adjusting a shaded or touched control includes: obtaining the position and size of the shaded or touched area on the screen, and the position and size of at least one control on the interface. Size; according to the location and size of the occluded or accidentally touched area, and the position and size of the at least one control, determine the occluded or accidentally touched control, and the occluded or accidentally touched control and The degree of overlap of the blocked or accidentally touched area; and when the degree of overlap is greater than a first degree of overlap threshold, adjusting the position of the blocked or accidentally touched control.
  • the blocked or accidentally touched area includes the square of the hole on the digging screen
  • the obtaining the position and size of the blocked or accidentally touched area on the screen includes: obtaining at least one of the holes Parameters
  • at least one parameter of the hole includes: the distance from the leftmost side of the square where the hole is located to the left side of the screen, the distance from the uppermost square where the hole is located to the top of the screen, the hole The distance from the rightmost side of the square to the left side of the screen, and the distance from the bottom of the square where the hole is to the top of the screen; and calculating the square where the hole is based on at least one parameter of the hole Location and size.
  • the public application program interface API provided by the manufacturer can be used to obtain the parameters of the hole on the digging screen, and the position and size of the hole can be accurately obtained according to the parameters of the hole.
  • the occluded or accidentally touched area includes an edge area of a curved screen
  • acquiring the position and size of the occluded or accidentally touched area on the screen includes: acquiring the curvature of the curved screen; and According to the curvature of the curved screen, the position and size of the edge area of the curved screen are calculated.
  • the curvature of the curved screen can be obtained using the API provided by the manufacturer, so that the position and size of the edge area of the curved screen can be accurately obtained.
  • the determining the occluded or erroneously touched control according to the position and size of the occluded or accidentally touched area and the position and size of the at least one control includes: when the at least When the position of any control in a control overlaps with the position of the covered or touched area, it is determined that the any control is covered or touched by mistake.
  • adjusting the position of the shaded or accidentally touched control includes: when the coincidence degree is greater than the first coincidence degree threshold, According to the degree of coincidence, the adjustment amount of the position of the shaded or touched control corresponding to the degree of coincidence is determined; and the adjustment amount of the position of the shaded or touched control is adjusted according to the degree of coincidence. Describe the position of the control that is blocked or touched by mistake.
  • the corresponding relationship between the degree of coincidence and the adjustment amount of the position of the control can be preset, and the corresponding adjustment amount can be determined according to the actual degree of coincidence, which is simple to implement.
  • the adjusting the position of the occluded or erroneously touched control according to the adjustment amount of the position of the occluded or erroneously touched control includes: when the degree of coincidence is greater than the first coincidence When the degree threshold is set, move the shaded or accidentally touched control to the left or right of the screen according to the adjustment amount.
  • a device for adjusting a shaded or accidentally touched control has the function of realizing the above method.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the device includes: an acquiring unit, configured to acquire the position and size of the occluded or accidentally touched area on the screen, and the position and size of at least one control on the interface; and the determining unit, configured to According to the position and size of the covered or touched area, and the position and size of the at least one control, determine the covered or touched control, and the covered or touched control and the The overlap degree of the blocked or accidentally touched area; and an adjustment unit, configured to adjust the position of the blocked or accidentally touched control when the overlap degree is greater than the first overlap threshold.
  • the occluded or accidentally touched area includes an edge area of a curved screen
  • the acquisition unit is configured to: acquire the curvature of the curved screen; and calculate the curvature of the curved screen according to the curvature of the curved screen. The location and size of the edge area.
  • the determining unit is configured to: when the position of any control in the at least one control overlaps with the position of the occluded or accidentally touched area, determine that the any control is occluded or Controls that were touched by mistake.
  • the blocked or accidentally touched area includes the square where the hole on the digging screen is located
  • the processor executing the step of obtaining the position and size of the blocked or accidentally touched area on the screen includes: obtaining At least one parameter of the hole
  • the at least one parameter of the hole includes: the distance from the leftmost side of the square where the hole is located to the left side of the screen, and the uppermost side of the square where the hole is located to the top of the screen The distance from the rightmost side of the square where the hole is located to the left side of the screen, and the distance from the lowermost side of the square where the hole is located to the top of the screen; and according to at least one parameter of the hole, Calculate the position and size of the square where the hole is located.
  • the occluded or accidentally touched area includes an edge area of a curved screen
  • the processor executes the step of acquiring the position and size of the occluded or accidentally touched area on the screen, including: acquiring all The curvature of the curved screen; and calculating the position and size of the edge area of the curved screen according to the curvature of the curved screen.
  • the processor executes the step of determining the occluded or erroneously touched control based on the position and size of the occluded or accidentally touched area and the position and size of the at least one control , Including: when there is an overlap between the position of any control in the at least one control and the position of the covered or touched area, determining that the any control is covered or touched by mistake.
  • the processor executes the step of adjusting the position of the occluded or erroneously touched control according to the adjustment amount of the position of the occluded or erroneously touched control, including: When the coincidence degree is greater than the first coincidence degree threshold, according to the adjustment amount, move the shaded or accidentally touched control to the left or right of the screen.
  • the implementation of the device can refer to the implementation of the method, and the repetition will not be omitted. Go into details.
  • a computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute the first aspect or any one of the implementations of the first aspect. The method described.
  • a computer program product containing instructions which when run on a computer, causes the computer to execute the method described in the first aspect or any one of the first aspects.
  • FIG. 2 is a schematic flowchart of a method for adjusting a shaded control provided by the second embodiment of the application;
  • Figure 3 is a schematic diagram of obtaining the parameters of the hole
  • Figure 4 is a schematic diagram of an exemplary full-screen playback video interface "back" button being blocked
  • FIG. 6 is a schematic flowchart of a method for adjusting a wrongly touched control provided by the third embodiment of this application;
  • Figure 7 is a schematic diagram of an example control displayed on the edge of a curved screen causing accidental touch
  • FIG. 8 is a schematic structural diagram of a device for adjusting a wrongly touched control provided by the fourth embodiment of the application.
  • FIG. 1 is a schematic flowchart of a method for adjusting a shaded or accidentally touched control provided by the first embodiment of this application.
  • the method may include the following steps:
  • the terminal equipment manufacturer can provide the location and size of the blocked or accidentally touched area.
  • the location and size of the occluded or accidentally touched area can be obtained through the public application interface provided by the manufacturer. Generally, there can be one or more blocked positions.
  • control includes all layout elements on the software interface, such as function buttons.
  • one or more controls that are blocked or accidentally touched in the current interface can be determined.
  • the one or more controls determined above will be covered or touched by mistake, and the covered or touched one or more controls have a certain degree of overlap with the covered or touched area. According to the position and size of one or more controls that are occluded or touched by mistake, and the position and size of the occluded or touched area, determine the occluded or touched control and the occluded or wrongly touched control. The degree of overlap of the touch area.
  • the shaded or mistakenly touched control can be adjusted, so that the control is not shaded or touched by mistake, which is convenient for users to use.
  • FIG. 2 is a schematic flowchart of a method for adjusting an obscured control according to a second embodiment of this application.
  • the method may include the following steps:
  • At least one parameter of the hole includes: the distance from the leftmost side of the square where the hole is located to the left side of the screen, and the distance from the uppermost square of the square where the hole is located to the left side of the screen. The distance from the top, the distance from the far right of the square where the hole is located to the left side of the screen, and the distance from the bottom of the square where the hole is located to the top of the screen.
  • the blocked area includes the square where the hole on the digging screen is located.
  • the square can be described by four parameters: the distance between the leftmost side of the square where the hole is located and the left side of the screen (left), and the distance between the uppermost square where the hole is located and the left side of the screen. The distance from the top (top), the distance from the far right of the square where the hole is located to the left side of the screen (right), and the distance from the bottom of the square where the hole is located to the top of the screen (bottom).
  • the above-mentioned parameters of the digging screen can be obtained through the public API provided by the manufacturer.
  • S202 Calculate the position and size of the square where the hole is located according to at least one parameter of the hole.
  • the above four parameters of the hole describe the coordinates of the square where the hole is located, that is, the position of the square where the hole is located.
  • the position and size of one or more controls on the current software interface can be obtained through the API provided by the third-party application platform. All the controls of the current software interface can be called view.
  • any control overlaps with the position of the shaded area, it can be determined that the control is a shaded control.
  • the existence of overlap can be full overlap or partial overlap.
  • the “return” button of the full-screen video interface is blocked.
  • control 1 is blocked by hole 1.
  • the control 1 can be a "back” button. Since the "return” button is blocked by hole 1, when the user wants to return to the previous interface, the operation cannot be successful.
  • FIG. 5 a schematic diagram of the "menu" button of the full-screen playback video interface being blocked.
  • the control 2 is blocked by the hole 2.
  • the control 2 can be a "menu” button. Since the "menu” button is hidden by the hole 2, when the user wants to operate the "menu” button, it cannot be operated.
  • S205 Determine the degree of overlap between the shaded control and the shaded area.
  • the degree of overlap between the shaded control and the shaded area can be determined.
  • the coincidence degree is 54%.
  • the first coincidence degree threshold may be preset according to the usage situation of the user.
  • the corresponding relationship between the degree of coincidence and the adjustment amount of the position of the control can be configured in advance.
  • the corresponding relationship can be configured as shown in Table 1 below:
  • the adjustment amount is one third of the width of the square where the hole is located ( width/3); when the coincidence degree is greater than 60% and less than 70%, the adjustment amount is width/3; when the coincidence degree is greater than 70% and less than 80%, the adjustment amount is width/2; when the coincidence degree When it is greater than 80% and less than 90%, the adjustment amount is width/2; when the coincidence degree is greater than 80%, the adjustment amount is width.
  • the adjustment amount can be obtained by looking up the table. For example, assuming that the calculated coincidence degree is 54%, the adjustment amount of the control is width/3.
  • S207 Adjust the position of the shaded control according to the adjustment amount of the position of the shaded control.
  • the adjustment of the shaded control can be realized, so that the control is not shaded, and it is convenient for users to use.
  • FIG. 6 is a schematic flowchart of a method for adjusting a wrongly touched control provided by the third embodiment of this application.
  • the method may include the following steps:
  • the curvature of the curved screen can be obtained through the API provided by the manufacturer.
  • S302 Calculate the position and size of the edge area of the curved screen according to the curvature of the curved screen.
  • the position of the edge area of the curved screen is where the user holds.
  • the size of the edge area of the curved screen is the area occupied by the slopes on both sides.
  • the position and size of one or more controls on the current software interface can be obtained through the API provided by the third-party application platform.
  • any control overlaps with the position of the accidentally touched area (such as the edge area of a curved screen), it can be determined that the control is accidentally touched.
  • the existence of overlap can be full overlap or partial overlap.
  • the control shown in Figure 7 shows a schematic diagram of accidentally touching the edge of the curved screen.
  • the software interface includes three short video interfaces: the first short video interface, the second short video interface and The third short video interface. Among them, the first short video interface and the third short video interface both extend beyond the edge of the curved screen and are controls that may be touched by mistake.
  • S305 Determine the degree of coincidence of the control that was touched by mistake and the area that was touched by mistake.
  • the degree of coincidence of the wrongly touched control and the wrongly touched area can be determined.
  • the coincidence degree is 54%.
  • step S206 of the foregoing embodiment reference may be made to step S206 of the foregoing embodiment.
  • S307 Adjust the position of the control that was touched by mistake according to the adjustment amount of the position of the control that was touched by mistake.
  • step S207 of the foregoing embodiment refer to step S207 of the foregoing embodiment.
  • control it should be noted that it can also be recognized whether the user wants to operate the control, and for the control that the user does not operate, the control may not be adjusted.
  • an embodiment of the present application also provides an adjustment device 1000 for a shaded or mistakenly touched control.
  • the adjustment device 1000 may be a device, a component or a chip in a terminal.
  • the device can be a mobile phone, a TV, a tablet, a computer, etc.
  • the adjustment device 1000 may include: an acquisition unit 11, a determination unit 12, and an adjustment unit 13; wherein:
  • the obtaining unit 11 is configured to obtain the position and size of the area that is blocked or touched by mistake on the screen, and the position and size of at least one control on the interface;
  • the determining unit 12 is configured to determine the occluded or erroneously touched control, and the occluded or erroneously touched control according to the position and size of the occluded or erroneously touched area, and the position and size of the at least one control. The degree of overlap between the touched control and the covered or accidentally touched area;
  • the adjustment unit 13 is configured to adjust the position of the shaded or accidentally touched control when the degree of coincidence is greater than the first degree of coincidence threshold.
  • the occluded or accidentally touched area includes the square where the hole on the digging screen is located, and the acquiring unit 11 is configured to:
  • the at least one parameter of the hole includes: the distance from the leftmost side of the square where the hole is to the left side of the screen, and the distance from the uppermost square of the square where the hole is to the left side of the screen The distance from the top, the distance from the far right of the square where the hole is located to the left side of the screen, and the distance from the bottom of the square where the hole is located to the top of the screen;
  • the position and size of the square where the hole is located are calculated.
  • the occluded or accidentally touched area includes an edge area of a curved screen
  • the acquiring unit 11 is configured to:
  • the position and size of the edge area of the curved screen are calculated.
  • the determining unit 12 is configured to:
  • the adjustment unit 13 is used to:
  • the adjustment unit 13 is used to:
  • the degree of coincidence is greater than the first degree of coincidence threshold, according to the adjustment amount, the shaded or accidentally touched control is moved to the left or right of the screen.
  • the adjustment of the hidden or accidentally touched control can be realized, so that the control is not blocked or accidentally touched, which is convenient for users to use.
  • An embodiment of the present application also provides an adjustment device for a shaded or accidentally touched control, and the device is used to implement the aforementioned adjustment method for a shaded or accidentally touched control. Part or all of the above methods can be implemented by hardware or software.
  • the device may be a chip or an integrated circuit in specific implementation.
  • the device when part or all of the method for adjusting the shaded or accidentally touched control of the foregoing embodiment is implemented by software, the device includes: a memory for storing a program; a processor for executing the memory storage When the program is executed, the device can realize the adjustment method of the shaded or accidentally touched control provided by the embodiment shown in FIG. 1, FIG. 2 or FIG. 6.
  • the foregoing memory may be a physically independent unit, or may be integrated with the processor.
  • the device may also only include a processor.
  • the memory for storing the program is located outside the device, and the processor is connected to the memory through a circuit/wire for reading and executing the program stored in the memory.
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
  • CPU central processing unit
  • NP network processor
  • the processor may further include a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
  • CPLD complex programmable logic device
  • FPGA field-programmable gate array
  • GAL generic array logic
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) , Hard disk drive (HDD) or solid-state drive (solid-state drive, SSD); the memory may also include a combination of the above types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • HDD Hard disk drive
  • SSD solid-state drive
  • Fig. 9 shows a simplified structural diagram of a device for adjusting a control that is blocked or touched by mistake. It is easy to understand and easy to illustrate.
  • the device uses a mobile phone as an example.
  • the device includes a processor, a memory, a radio frequency circuit, an antenna, and an input and output device.
  • the processor is mainly used to adjust the shaded or accidentally touched controls, to control the device, to execute the software program, and to process the data of the software program.
  • the memory is mainly used to store software programs and data.
  • the radio frequency circuit is mainly used for the conversion of baseband signal and radio frequency signal and the processing of radio frequency signal.
  • the antenna is mainly used to send and receive radio frequency signals in the form of electromagnetic waves.
  • Input and output devices, such as touch screens, are mainly used to receive data input by users and output data to users.
  • the processor When data needs to be sent, the processor performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit.
  • the radio frequency circuit performs radio frequency processing on the baseband signal and sends the radio frequency signal to the outside in the form of electromagnetic waves through the antenna.
  • the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor, and the processor converts the baseband signal into data and processes the data.
  • FIG. 9 only one memory and processor are shown in FIG. 9. In an actual device product, there may be one or more processors and one or more memories.
  • the memory may also be referred to as a storage medium or storage device.
  • the memory may be set independently of the processor, or may be integrated with the processor, which is not limited in the embodiment of the present application.
  • the antenna and radio frequency circuit with the transceiver function can be regarded as the receiving unit and the transmitting unit (also collectively referred to as the transceiver unit) of the device, and the processor with the processing function can be regarded as the processing unit of the device.
  • the device includes a transceiver unit 31 and a processing unit 32.
  • the transceiver unit 31 may also be referred to as a receiving/transmitting (transmitter) device, a receiving/transmitting machine, a receiving/transmitting circuit, and the like.
  • the processing unit 32 may also be referred to as a processor, a processing board, a processing module, a processing device, and the like.
  • the processing unit 32 is configured to execute steps S101 to S103 in the embodiment shown in FIG. 1.
  • the processing unit 32 is configured to execute steps S201 to S207 in the embodiment shown in FIG. 2.
  • the processing unit 32 is configured to execute steps S301 to S307 in the embodiment shown in FIG. 6.
  • the disclosed system, device, and method may be implemented in other ways.
  • the division of the unit is only a logical function division. In actual implementation, there can be other divisions.
  • multiple units or components can be combined or integrated into another system, or some features can be ignored or not. carried out.
  • the displayed or discussed mutual coupling, or direct coupling, or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions can be sent from a website, computer, server, or data center to another via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) A website, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium can be read-only memory (ROM), or random access memory (RAM), or magnetic media, such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, such as , Digital versatile disc (DVD), or semiconductor media, for example, solid state disk (SSD), etc.

Abstract

本申请公开了一种被遮挡或被误触的控件的调整方法及装置。在本申请中,通过获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;根据被遮挡或被误触区域的位置和大小,以及至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及被遮挡或被误触的控件与被遮挡或被误触区域的重合度;并且当重合度大于第一重合度阈值时,调整被遮挡或被误触的控件的位置。采用本申请的方案,可以实现对被遮挡或被误触的控件的调整,使控件不被遮挡或误触,方便用户的使用。

Description

一种被遮挡或被误触的控件的调整方法及装置
本申请要求于2019年09月02日提交中国国家知识产权局、申请号为201910822349.6、发明名称为“一种被遮挡或被误触的控件的调整方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能终端领域,尤其涉及一种被遮挡或被误触的控件的调整方法及装置。
背景技术
随着全面屏手机的快速发展和兴起,水滴屏、刘海屏、折叠屏、曲面屏、屏下挖孔等各种屏幕上的创新不断涌出。除了手机,平板、电脑、电视等大屏幕产品也有向挖孔屏、曲面屏发展的趋势,而用户使用挖孔屏和曲面屏产品也越来越多。
在有挖孔屏的产品上,孔所在的位置可能会遮挡功能按钮;在曲面屏的产品上,边缘部分的功能按钮可能会被误触,这些都会给用户的体验造成影响。具体地,比如使用挖孔屏的手机,打开一个应用全屏时,正好孔的位置遮挡了一个功能按钮,可能会造成用户不知道如何退出或者操作。比如使用曲面屏的手机,用户打开一个应用浏览网页,手指不小心碰到了曲面边缘的一个功能按钮,造成正在浏览的网页跳转到其他页面。这些情况都会给用户体验造成负面影响。
为了不遮挡或者防误触,需要各设备厂商(手机/平板/电脑/电视生产商)推动第三方应用厂家进行适配。如调整按钮或者控件位置防止被遮挡或者误触。在安卓(Android)生态中,第三方应用厂家成千上万,逐个推动很浪费资源,并且处理周期也会很长。
发明内容
本申请提供一种被遮挡或被误触的控件的调整方法及装置,以使控件不被遮挡或误触。
第一方面,提供了一种被遮挡或被误触的控件的调整方法,所述方法包括:获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度;以及当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。在该方面中,可以实现对被遮挡或被误触的控件的调整,使控件不被遮挡或误触,方便用户的使用。
在一个实现中,所述被遮挡或被误触区域包括挖孔屏上的孔所在方块,所述获取屏幕上被遮挡或被误触区域的位置和大小,包括:获取所述孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离;以及根据所述孔的至少一个参数,计 算所述孔所在方块的位置和大小。在该实现中,使用厂商提供的公共应用程序接口API可以获取挖孔屏上孔的参数,根据孔的参数可以准确地获得孔的位置和大小。
在又一个实现中,所述被遮挡或被误触区域包括曲面屏的边缘区域,所述获取屏幕上被遮挡或被误触区域的位置和大小,包括:获取所述曲面屏的弧度;以及根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。在该实现中,使用厂商提供的API可以获取曲面屏的弧度,从而可以准确地获得曲面屏的边缘区域的位置和大小。
在又一个实现中,所述根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,包括:当所述至少一个控件中任一控件的位置与所述被遮挡或被误触区域的位置存在重叠时,确定所述任一控件为被遮挡或被误触的控件。
在又一个实现中,所述当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置,包括:当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡或被误触的控件的位置的调整量;以及根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置。在该实现中,可以预先设置重合度与控件的位置的调整量的对应关系,根据实际的重合度,确定相应的调整量,实现简单。
在又一个实现中,所述根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置,包括:当所述重合度大于第一重合度阈值时,根据所述调整量,向所述屏幕的左侧或右侧移动所述被遮挡或被误触的控件。
第二方面,提供了一种被遮挡或被误触的控件的调整装置,该装置具有实现上述方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
一种可能的实现方式中,所述装置包括:获取单元,用于获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;确定单元,用于根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度;以及调整单元,用于当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。
可选地,所述被遮挡或被误触区域包括挖孔屏上的孔所在方块,所述获取单元用于:获取所述孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离;以及根据所述孔的至少一个参数,计算所述孔所在方块的位置和大小。
可选地,所述被遮挡或被误触区域包括曲面屏的边缘区域,所述获取单元用于:获取所述曲面屏的弧度;以及根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。
可选地,所述确定单元用于:当所述至少一个控件中任一控件的位置与所述被遮挡或被误触区域的位置存在重叠时,确定所述任一控件为被遮挡或被误触的控件。
可选地,所述调整单元用于:当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡或被误触的控件的位置的调整量;以及根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置。
可选地,所述调整单元用于:当所述重合度大于第一重合度阈值时,根据所述调整量,向所述屏幕的左侧或右侧移动所述被遮挡或被误触的控件。
另一种可能的实现方式中,所述装置包括:输入装置、输出装置、存储器和处理器;其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度;以及当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。
可选地,所述被遮挡或被误触区域包括挖孔屏上的孔所在方块,所述处理器执行所述获取屏幕上被遮挡或被误触区域的位置和大小的步骤,包括:获取所述孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离;以及根据所述孔的至少一个参数,计算所述孔所在方块的位置和大小。
在又一个实现中,所述被遮挡或被误触区域包括曲面屏的边缘区域,所述处理器执行所述获取屏幕上被遮挡或被误触区域的位置和大小的步骤,包括:获取所述曲面屏的弧度;以及根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。
在又一个实现中,所述处理器执行所述根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件的步骤,包括:当所述至少一个控件中任一控件的位置与所述被遮挡或被误触区域的位置存在重叠时,确定所述任一控件为被遮挡或被误触的控件。
在又一个实现中,所述处理器执行所述当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置的步骤,包括:当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡或被误触的控件的位置的调整量;以及根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置。
在又一个实现中,所述处理器执行所述根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置的步骤,包括:当所述重合度大于第一重合度阈值时,根据所述调整量,向所述屏幕的左侧或右侧移动所述被遮挡或被误触的控件。
基于同一申请构思,由于该装置解决问题的原理以及有益效果可以参见上述各可能的装置的方法实施方式以及所带来的有益效果,因此该装置的实施可以参见方法的实施,重复之处不再赘述。
第三方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任一个实现所述的方 法。
第四方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任一个实现所述的方法。
附图说明
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。
图1为本申请第一实施例提供的一种被遮挡或被误触的控件的调整方法的流程示意图;
图2为本申请第二实施例提供的一种被遮挡的控件的调整方法的流程示意图;
图3为获取孔的参数的示意图;
图4为示例的全屏播放视频界面“返回”按钮被遮挡的示意图;
图5为示例的全屏播放视频界面“菜单”按钮被遮挡的示意图;
图6为本申请第三实施例提供的一种被误触的控件的调整方法的流程示意图;
图7为示例的控件显示在曲面屏边缘造成被误触的示意图;
图8为本申请第四实施例提供的一种被误触的控件的调整装置的结构示意图;
图9为本申请第五实施例提供的一种被误触的控件的调整装置的结构示意图。
具体实施方式
下面结合本申请实施例中的附图对本申请实施例进行描述。
请参阅图1,为本申请第一实施例提供的一种被遮挡或被误触的控件的调整方法的流程示意图,该方法可以包括以下步骤:
S101、获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小。
屏幕上如果存在缺口部分,例如,挖孔屏上的孔,可能会遮挡终端设备软件界面上的控件;对于曲面屏,边缘部分也被做成屏幕,边缘部分显示的控件可能会被用户误触,这些都会给用户的体验造成影响。
因此,可以获取屏幕上被遮挡或被误触区域的位置和大小。终端设备制造厂商可以提供被遮挡或被误触区域的位置和大小。可以通过厂商提供的公共应用程序接口(application interface)获取被遮挡或被误触区域的位置和大小。一般地,被遮挡的位置可以为一个或多个。
终端设备的软件界面上存在一个或多个控件在上述被遮挡或被误触区域的位置上,或接近被遮挡或被误触区域的位置。因此,获取当前界面上的一个或多个控件的位置和大小。可以通过第三方应用平台提供的API获取当前界面上的一个或多个控件的位置和大小。其中,控件包括软件界面上的所有布局元素,例如功能按钮等。
S102、根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度。
获得了被遮挡或被误触区域的位置和大小,以及当前界面上的一个或多个控件的位置和大小之后,可以确定在当前界面中被遮挡或被误触的一个或多个控件。
上述确定的一个或多个控件会被遮挡或被误触,则该被遮挡或被误触的一个或多个控件与被遮挡或被误触区域存在一定的重合度。可以根据上述确定的被遮挡或被误触的一个或多个控件的位置和大小,以及被遮挡或被误触区域的位置和大小,确定被遮挡或被误触的控件与被遮挡或被误触区域的重合度。
S103、当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。
当重合度大于第一重合度阈值时,说明控件被遮挡或被误触区域较大,会影响用户的使用,因此,可以调整被遮挡或被误触的控件的位置。该第一重合度阈值可以是根据用户使用情况预设的。具体地,可以移动被遮挡或被误触的控件,使得被遮挡或被误触的控件与被遮挡或被误触区域的重合度较小或为零。
根据本申请实施例提供的一种被遮挡或被误触的控件的调整方法,可以实现对被遮挡或被误触的控件的调整,使控件不被遮挡或误触,方便用户的使用。
请参阅图2,为本申请第二实施例提供的一种被遮挡的控件的调整方法的流程示意图,该方法可以包括以下步骤:
S201、获取孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离。
被遮挡区域包括挖孔屏上的孔所在方块。如图3所示,可以通过四个参数描述该方块:所述孔所在的方块最左侧到所述屏幕的左侧的距离(left),所述孔所在的方块最上面到所述屏幕的上方的距离(top),所述孔所在的方块最右侧到所述屏幕的左侧的距离(right),以及所述孔所在的方块最下面到所述屏幕的上方的距离(bottom)。可以通过厂商提供的公共API获取挖孔屏孔的上述参数。
S202、根据所述孔的至少一个参数,计算所述孔所在方块的位置和大小。
孔的上述四个参数,描述了孔所在的方块的坐标,即孔所在方块的位置。
另外,还可以根据孔的上述四个参数计算孔所在方块的大小。具体地,孔的长(length)=bottom-top;孔的宽(width)=right-left。
S203、获取界面上的至少一个控件的位置和大小。
可以通过第三方应用平台提供的API获取当前软件界面上的一个或多个控件的位置和大小。当前软件界面的所有控件可以称为view。
S204、当所述至少一个控件中任一控件的位置与所述被遮挡区域的位置存在重叠时,确定所述任一控件为被遮挡的控件。
当前软件界面上的一个或多个控件中,如果任一控件的位置与被遮挡区域的位置存在重叠时,可以确定该控件为被遮挡的控件。存在重叠可以是全部重叠或部分重叠。
如图4示例的全屏播放视频界面“返回”按钮被遮挡的示意图,在图4的左侧图中,控件1被孔1遮挡。该控件1可以是“返回”按钮。由于“返回”按钮被孔1遮挡,用户 想要返回上一个界面时,则无法操作成功。
又如图5示例的全屏播放视频界面“菜单”按钮被遮挡的示意图,在图5的左侧图中,控件2被孔2遮挡。该控件2可以是“菜单”按钮。由于“菜单”按钮被孔2遮挡,用户想要操作该“菜单”按钮时,无法操作。
上述“返回”按钮、“菜单”按钮被孔遮挡仅为示例,还可以是其它功能按钮被孔遮挡,本申请实施例对此不做限定。
S205、确定所述被遮挡的控件与所述被遮挡区域的重合度。
根据上述获得的孔的位置和大小,以及被遮挡区域的位置和大小,可以确定被遮挡的控件与被遮挡区域的重合度。例如,重合度为54%。
S206、当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡的控件的位置的调整量。
当重合度大于第一重合度阈值时,说明控件被遮挡或被误触区域较大,会影响用户的使用,因此,可以调整被遮挡或被误触的控件的位置。该第一重合度阈值可以是根据用户使用情况预设的。
可以预先配置重合度与控件的位置的调整量的对应关系,例如配置其对应关系如下表1所示:
表1
重合度(%) 调整量
50 width/3
60 width/3
70 width/2
80 width/2
90 width
100 width
由于一般地是向屏幕的左侧或右侧移动控件,因此,在表1中,当重合度大于50%,且小于60%时,则调整量为孔所在方块的宽度的三分之一(width/3);当重合度大于60%,且小于70%时,则调整量为width/3;当重合度大于70%,且小于80%时,则调整量为width/2;当重合度大于80%,且小于90%时,则调整量为width/2;当重合度大于80%,则调整量为width。
因此,根据实际计算出的重合度,可以通过查表获得其调整量。例如,假设计算出的重合度为54%,则控件的调整量为width/3。
S207、根据所述被遮挡的控件的位置的调整量,调整所述被遮挡的控件的位置。
具体地,向屏幕的左侧或右侧以获得调整量移动控件。
仍然参考图4,在图4的右侧图中,将“返回”按钮向右移动一定的调整量,则“返回”按钮不被孔1遮挡,用户可以操作该“返回”按钮。
再参考图5,在图5的右侧图中,将“菜单”按钮向左移动一定的调整量,则“菜单” 按钮不被孔2遮挡,用户可以操作该“菜单”按钮。
根据本申请实施例提供的一种被遮挡的控件的调整方法,可以实现对被遮挡的控件的调整,使控件不被遮挡,方便用户的使用。
请参阅图6,为本申请第三实施例提供的一种被误触的控件的调整方法的流程示意图,该方法可以包括以下步骤:
S301、获取曲面屏的弧度。
可以通过厂商提供的API获得曲面屏的弧度。
S302、根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。
其中,曲面屏的边缘区域的位置是用户手握的地方。曲面屏的边缘区域的大小是两边的斜面所占的面积。
首先,根据曲面屏的弧度计算出斜面的角度,然后根据斜面的角度计算出斜面所占的面积,即得到曲面屏的边缘区域的大小。
S303、获取界面上的至少一个控件的位置和大小。
可以通过第三方应用平台提供的API获取当前软件界面上的一个或多个控件的位置和大小。
S304、当所述至少一个控件中任一控件的位置与所述被误触区域的位置存在重叠时,确定所述任一控件为被误触的控件。
当前软件界面上的一个或多个控件中,如果任一控件的位置与被误触区域(如曲面屏的边缘区域)的位置存在重叠时,可以确定该控件为被误触的控件。存在重叠可以是全部重叠或部分重叠。
如图7示例的控件显示在曲面屏边缘造成被误触的示意图,在图7的左侧图中,该软件界面上包括三个短视频界面:第一短视频界面、第二短视频界面和第三短视频界面。其中,第一短视频界面和第三短视频界面均超出曲面屏边缘,是可能被误触的控件。
S305、确定所述被误触的控件与所述被误触区域的重合度。
根据上述获得的被误触控件的位置和大小,以及被误触区域的位置和大小,可以确定被误触的控件与被误触区域的重合度。例如,重合度为54%。
S306、当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被误触的控件的位置的调整量。
该步骤的具体实现可参考上述实施例的步骤S206。
需要说明的是,可以参考表1,设置被误触的控件与被误触区域的重合度对应的控件的位置的调整量,设置被误触的控件与被误触区域的重合度一般为10%~30%,本申请对此不作限制。
S307、根据所述误触的控件的位置的调整量,调整所述被误触的控件的位置。
该步骤的具体实现可参考上述实施例的步骤S207。
仍参考图7,假设第一短视频界面与曲面屏边缘区域的重合度为20%,如图7的右侧图中,将第一短视频界面向右移动width/3;假设第三短视频界面与曲面屏边缘区域的重合度也为20%,将第三短视频界面向左移动width/3。调整后的第一短视频界面和第三短视频 界面均未超出曲面屏边缘,则不会影响用户操作。
需要说明的是,也可以识别用户是否要对控件进行操作,对于用户不操作的控件,也可以不调整该控件。
根据本申请实施例提供的一种被误触的控件的调整方法,可以实现对被误触的控件的调整,使控件不被误触,方便用户的使用。
上面描述了本申请实施例的方法,下面对本申请实施例的装置进行描述。
基于上述被遮挡或被误触的控件的调整方法的同一构思,如图8所示,本申请实施例还提供了一种被遮挡或被误触的控件的调整装置1000。该调整装置1000可以是装置,也可以是终端中的一个部件或一个芯片。该装置可以是手机、电视、平板、电脑等。该调整装置1000可以包括:获取单元11、确定单元12和调整单元13;其中:
获取单元11,用于获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;
确定单元12,用于根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度;
调整单元13,用于当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。
在一个实现中,所述被遮挡或被误触区域包括挖孔屏上的孔所在方块,所述获取单元11用于:
获取所述孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离;
根据所述孔的至少一个参数,计算所述孔所在方块的位置和大小。
在又一个实现中,所述被遮挡或被误触区域包括曲面屏的边缘区域,所述获取单元11用于:
获取所述曲面屏的弧度;
根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。
在又一个实现中,所述确定单元12用于:
当所述至少一个控件中任一控件的位置与所述被遮挡或被误触区域的位置存在重叠时,确定所述任一控件为被遮挡或被误触的控件。
在又一个实现中,所述调整单元13用于:
当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡或被误触的控件的位置的调整量;
根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置。
在又一个实现中,所述调整单元13用于:
当所述重合度大于第一重合度阈值时,根据所述调整量,向所述屏幕的左侧或右侧移动所述被遮挡或被误触的控件。
有关上述获取单元11、确定单元12和调整单元13的具体实现可参考上述图1、图2或图6所示实施例中的描述。
根据本申请实施例提供的一种被遮挡或被误触的控件的调整装置,可以实现对被遮挡或被误触的控件的调整,使控件不被遮挡或误触,方便用户的使用。
本申请实施例中还提供一种被遮挡或被误触的控件的调整装置,该装置用于执行上述被遮挡或被误触的控件的调整方法。上述方法中的部分或全部可以通过硬件来实现,也可以通过软件来实现。
可选的,该装置在具体实现时可以是芯片或者集成电路。
可选的,当上述实施例的被遮挡或被误触的控件的调整方法中的部分或全部通过软件来实现时,该装置包括:存储器,用于存储程序;处理器,用于执行存储器存储的程序,当程序被执行时,使得该装置可以实现上述图1、图2或图6所示实施例提供的被遮挡或被误触的控件的调整方法。
可选的,上述存储器可以是物理上独立的单元,也可以与处理器集成在一起。
可选的,当上述实施例的被遮挡或被误触的控件的调整方法中的部分或全部通过软件实现时,该装置也可以只包括处理器。用于存储程序的存储器位于该装置之外,处理器通过电路/电线与存储器连接,用于读取并执行存储器中存储的程序。
处理器可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。
处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。
存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。
图9示出了一种简化的被遮挡或被误触的控件的调整装置的结构示意图。便于理解和图示方便,图9中,该装置以手机作为例子。如图9所示,该装置包括处理器、存储器、射频电路、天线以及输入输出装置。处理器主要用于对被遮挡或被误触的控件进行调整,以及对装置进行控制,执行软件程序,处理软件程序的数据等。存储器主要用于存储软件程序和数据。射频电路主要用于基带信号与射频信号的转换以及对射频信号的处理。天线主要用于收发电磁波形式的射频信号。输入输出装置,例如触摸屏等主要用于接收用户输入的数据以及对用户输出数据。
当需要发送数据时,处理器对待发送的数据进行基带处理后,输出基带信号至射频电 路,射频电路将基带信号进行射频处理后将射频信号通过天线以电磁波的形式向外发送。当有数据发送到装置时,射频电路通过天线接收到射频信号,将射频信号转换为基带信号,并将基带信号输出至处理器,处理器将基带信号转换为数据并对该数据进行处理。为便于说明,图9中仅示出了一个存储器和处理器。在实际的装置产品中,可以存在一个或多个处理器和一个或多个存储器。存储器也可以称为存储介质或者存储设备等。存储器可以是独立于处理器设置,也可以是与处理器集成在一起,本申请实施例对此不做限制。
在本申请实施例中,可以将具有收发功能的天线和射频电路视为装置的接收单元和发送单元(也可以统称为收发单元),将具有处理功能的处理器视为装置的处理单元。如图9所示,装置包括收发单元31和处理单元32。收发单元31也可以称为接收/发送(发射)器、接收/发送机、接收/发送电路等。处理单元32也可以称为处理器,处理单板,处理模块、处理装置等。
例如,在一个实施例中,处理单元32用于执行图1所示实施例中的步骤S101~S103。
又例如,在一个实施例中,处理单元32用于执行图2所示实施例中的步骤S201~S207。
又例如,在一个实施例中,处理单元32用于执行图6所示实施例中的步骤S301~S307。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。所显示或讨论的相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者通过该计算机可读存储介质进行传输。该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是只读存储器(read-only memory,ROM),或随机存取存储器(random access memory,RAM),或磁性介质,例如,软盘、硬盘、磁带、磁碟、或光介质,例如,数字通用光盘(digital versatile disc,DVD)、或者半导体介质,例如,固态硬盘(solid state disk,SSD)等。

Claims (13)

  1. 一种被遮挡或被误触的控件的调整方法,所述方法包括:
    获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;
    根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度;
    当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。
  2. 根据权利要求1所述的方法,所述被遮挡或被误触区域包括挖孔屏上的孔所在方块,所述获取屏幕上被遮挡或被误触区域的位置和大小,包括:
    获取所述孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离;
    根据所述孔的至少一个参数,计算所述孔所在方块的位置和大小。
  3. 根据权利要求1所述的方法,所述被遮挡或被误触区域包括曲面屏的边缘区域,所述获取屏幕上被遮挡或被误触区域的位置和大小,包括:
    获取所述曲面屏的弧度;
    根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。
  4. 根据权利要求1~3任一项所述的方法,所述根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,包括:
    当所述至少一个控件中任一控件的位置与所述被遮挡或被误触区域的位置存在重叠时,确定所述任一控件为被遮挡或被误触的控件。
  5. 根据权利要求1~4任一项所述的方法,所述当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置,包括:
    当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡或被误触的控件的位置的调整量;
    根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置。
  6. 根据权利要求5所述的方法,所述根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置,包括:
    当所述重合度大于第一重合度阈值时,根据所述调整量,向所述屏幕的左侧或右侧移动所述被遮挡或被误触的控件。
  7. 一种被遮挡或被误触的控件的调整装置,所述装置包括:
    获取单元,用于获取屏幕上被遮挡或被误触区域的位置和大小,以及界面上的至少一个控件的位置和大小;
    确定单元,用于根据所述被遮挡或被误触区域的位置和大小,以及所述至少一个控件的位置和大小,确定被遮挡或被误触的控件,以及所述被遮挡或被误触的控件与所述被遮挡或被误触区域的重合度;
    调整单元,用于当所述重合度大于第一重合度阈值时,调整所述被遮挡或被误触的控件的位置。
  8. 根据权利要求7所述的装置,所述被遮挡或被误触区域包括挖孔屏上的孔所在方块,所述获取单元用于:
    获取所述孔的至少一个参数,所述孔的至少一个参数包括:所述孔所在的方块最左侧到所述屏幕的左侧的距离,所述孔所在的方块最上面到所述屏幕的上方的距离,所述孔所在的方块最右侧到所述屏幕的左侧的距离,以及所述孔所在的方块最下面到所述屏幕的上方的距离;
    根据所述孔的至少一个参数,计算所述孔所在方块的位置和大小。
  9. 根据权利要求7所述的装置,所述被遮挡或被误触区域包括曲面屏的边缘区域,所述获取单元用于:
    获取所述曲面屏的弧度;
    根据所述曲面屏的弧度,计算所述曲面屏的边缘区域的位置和大小。
  10. 根据权利要求7~9任一项所述的装置,所述确定单元用于:
    当所述至少一个控件中任一控件的位置与所述被遮挡或被误触区域的位置存在重叠时,确定所述任一控件为被遮挡或被误触的控件。
  11. 根据权利要求7~10任一项所述的装置,所述调整单元用于:
    当所述重合度大于第一重合度阈值时,根据所述重合度,确定与所述重合度对应的所述被遮挡或被误触的控件的位置的调整量;
    根据所述被遮挡或被误触的控件的位置的调整量,调整所述被遮挡或被误触的控件的位置。
  12. 根据权利要求11所述的装置,所述调整单元用于:
    当所述重合度大于第一重合度阈值时,根据所述调整量,向所述屏幕的左侧或右侧移动所述被遮挡或被误触的控件。
  13. 一种被遮挡或被误触的控件的调整装置,包括:输入装置、输出装置、存储器和处理器;其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,执行如权利要求1~6中任一项所述的方法。
PCT/CN2020/102859 2019-09-02 2020-07-17 一种被遮挡或被误触的控件的调整方法及装置 WO2021042886A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910822349.6A CN110750186A (zh) 2019-09-02 2019-09-02 一种被遮挡或被误触的控件的调整方法及装置
CN201910822349.6 2019-09-02

Publications (1)

Publication Number Publication Date
WO2021042886A1 true WO2021042886A1 (zh) 2021-03-11

Family

ID=69275971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/102859 WO2021042886A1 (zh) 2019-09-02 2020-07-17 一种被遮挡或被误触的控件的调整方法及装置

Country Status (2)

Country Link
CN (1) CN110750186A (zh)
WO (1) WO2021042886A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750186A (zh) * 2019-09-02 2020-02-04 华为终端有限公司 一种被遮挡或被误触的控件的调整方法及装置
CN112162672A (zh) * 2020-10-19 2021-01-01 腾讯科技(深圳)有限公司 信息流的显示处理方法、装置、电子设备及存储介质
CN115097980B (zh) * 2022-08-24 2022-12-02 成都智暄科技有限责任公司 一种小面积重叠透明控件选中方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017154114A1 (ja) * 2016-03-08 2017-09-14 楽天株式会社 表示制御システム、表示制御方法及び表示制御プログラム
CN107943551A (zh) * 2017-11-14 2018-04-20 维沃移动通信有限公司 一种屏幕显示方法及移动终端
CN109857659A (zh) * 2019-01-23 2019-06-07 广州云测信息技术有限公司 一种控件的操作方法和装置
CN110750186A (zh) * 2019-09-02 2020-02-04 华为终端有限公司 一种被遮挡或被误触的控件的调整方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399959A (zh) * 2013-08-21 2013-11-20 珠海市魅族科技有限公司 一种网页的交互控件的显示方法及终端
CN103995668B (zh) * 2014-05-14 2023-05-02 联想(北京)有限公司 一种信息处理方法和电子设备
US9924006B2 (en) * 2014-10-31 2018-03-20 Hand Held Products, Inc. Adaptable interface for a mobile computing device
CN106293444B (zh) * 2015-06-25 2020-07-03 小米科技有限责任公司 移动终端、显示控制方法及装置
CN106681637B (zh) * 2016-12-16 2019-10-22 Oppo广东移动通信有限公司 一种触摸屏显示方法、装置及移动终端
CN107272956A (zh) * 2017-06-23 2017-10-20 维沃移动通信有限公司 一种显示方法、移动终端及计算机可读存储介质
JP6511499B2 (ja) * 2017-10-18 2019-05-15 華為技術有限公司Huawei Technologies Co.,Ltd. サイドメニュー表示方法、装置及び端末
CN107729298A (zh) * 2017-10-31 2018-02-23 努比亚技术有限公司 屏幕遮挡区域处理方法、移动终端及计算机可读存储介质
CN108170346A (zh) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 电子装置、游戏界面显示方法及相关产品

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017154114A1 (ja) * 2016-03-08 2017-09-14 楽天株式会社 表示制御システム、表示制御方法及び表示制御プログラム
CN107943551A (zh) * 2017-11-14 2018-04-20 维沃移动通信有限公司 一种屏幕显示方法及移动终端
CN109857659A (zh) * 2019-01-23 2019-06-07 广州云测信息技术有限公司 一种控件的操作方法和装置
CN110750186A (zh) * 2019-09-02 2020-02-04 华为终端有限公司 一种被遮挡或被误触的控件的调整方法及装置

Also Published As

Publication number Publication date
CN110750186A (zh) 2020-02-04

Similar Documents

Publication Publication Date Title
WO2021042886A1 (zh) 一种被遮挡或被误触的控件的调整方法及装置
US10969903B2 (en) Method, device and mobile terminal for preventing false-touch on touch screen
US10831314B2 (en) Method and electronic device for preventing touch button from being false triggered
CN109891379B (zh) 一种防误触方法及终端
CN115357178B (zh) 一种应用于投屏场景的控制方法以及相关设备
WO2018107898A1 (zh) 防止触摸按键误触发的方法、装置、终端及存储介质
US9965158B2 (en) Touch screen hover input handling
CN106681635B (zh) 一种分屏防误触方法、装置及移动终端
US10884550B2 (en) Method, mobile terminal and non-transitory computer-readable storage medium for response control of touch screen
US10466849B2 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
EP2565752A2 (en) Method of providing a user interface in portable terminal and apparatus thereof
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
AU2012302448A1 (en) Method of providing a user interface in portable terminal and apparatus thereof
CN108874341A (zh) 屏幕投影方法及终端设备
CN103699292A (zh) 一种进入文本选择模式的方法和装置
TW201516844A (zh) 一種物件選擇的方法和裝置
US20150177957A1 (en) Method and apparatus for processing object provided through display
WO2018107899A1 (zh) 一种弹出菜单的响应方法、装置、移动终端及存储介质
CN103631493A (zh) 图片显示方法、装置及电子设备
CN103885623A (zh) 一种将滑动事件处理成编辑手势的方法、系统及移动终端
US11656761B2 (en) Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device
KR20170042953A (ko) 디스플레이 장치 및 이의 제어 방법
WO2022062624A1 (zh) 触控屏的触控信息处理方法、装置及电子设备
KR20160096645A (ko) 컴퓨팅 디바이스에 대한 장치의 결합
US10996794B2 (en) Method and apparatus for processing edge of touch screen

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20861574

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20861574

Country of ref document: EP

Kind code of ref document: A1