[go: up one dir, main page]

CN114610195B - Icon display method, electronic device and storage medium - Google Patents

Icon display method, electronic device and storage medium Download PDF

Info

Publication number
CN114610195B
CN114610195B CN202011328980.XA CN202011328980A CN114610195B CN 114610195 B CN114610195 B CN 114610195B CN 202011328980 A CN202011328980 A CN 202011328980A CN 114610195 B CN114610195 B CN 114610195B
Authority
CN
China
Prior art keywords
icon
width
area
electronic device
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011328980.XA
Other languages
Chinese (zh)
Other versions
CN114610195A (en
Inventor
周珊如
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310329595.4A priority Critical patent/CN116450006B/en
Priority to CN202011328980.XA priority patent/CN114610195B/en
Publication of CN114610195A publication Critical patent/CN114610195A/en
Application granted granted Critical
Publication of CN114610195B publication Critical patent/CN114610195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • G06F3/04817Interaction 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 using icons
    • 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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an icon display method, electronic equipment and a storage medium, wherein in the method, notch area information and fillet area information are acquired; determining a width of an available area based on the Notch area information and the fillet area information, the available area being used to display an icon; determining a display attribute of an icon displayed in the available area based on a width of the available area; and displaying the icon in the available area according to the determined display attribute of the icon, so that the icon on the status bar can be displayed after being adapted according to the punching width of the screen, and good watching experience can be brought to a user.

Description

图标显示方法、电子设备及存储介质Icon display method, electronic device and storage medium

技术领域Technical Field

本申请涉及智能终端技术领域,特别涉及一种图标显示方法、电子设备及存储介质。The present application relates to the technical field of intelligent terminals, and in particular to an icon display method, an electronic device and a storage medium.

背景技术Background Art

随着移动终端(例如,手机)的个性化和差异化,以及移动终端的功能的不断增加,各个厂商生产的移动终端越来越多样化。目前,越来越多的厂商会在手机的屏幕上设计打孔(Notch),在该Notch上可以设置不同的模块,以实现不同的功能,例如,可以在Notch设置摄像头,以实现拍摄功能。With the personalization and differentiation of mobile terminals (e.g., mobile phones), and the continuous increase in the functions of mobile terminals, the mobile terminals produced by various manufacturers are becoming more and more diversified. At present, more and more manufacturers will design a notch on the screen of the mobile phone, and different modules can be set on the notch to achieve different functions. For example, a camera can be set on the notch to achieve a shooting function.

发明内容Summary of the invention

本申请提供了一种图标显示方法、电子设备及存储介质,以实现将状态栏上的图标按照屏幕打孔的宽度进行适配后显示,从而为用户带来良好的观看体验。The present application provides an icon display method, an electronic device, and a storage medium, so as to realize the display of icons on a status bar after being adapted according to the width of a screen hole, thereby providing a good viewing experience for users.

第一方面,本申请提供了一种图标显示方法,应用于电子设备,包括:In a first aspect, the present application provides an icon display method, which is applied to an electronic device, comprising:

获取Notch区域信息及圆角区域信息;具体地,该Notch区域信息可以包括该Notch区域在电子设备的屏幕中的位置,还可以包括该Notch区域的高度及宽度等信息。该圆角区域可以是电子设备的屏幕上方左右两个不可用于显示的圆角区域,该圆角区域信息可以包括该圆角的半径。Acquire Notch area information and rounded corner area information; specifically, the Notch area information may include the position of the Notch area on the screen of the electronic device, and may also include information such as the height and width of the Notch area. The rounded corner area may be two rounded corner areas on the left and right sides of the screen of the electronic device that are not available for display, and the rounded corner area information may include the radius of the rounded corner.

基于Notch区域信息及圆角区域信息确定可用区域的宽度,可用区域用于显示图标;具体地,该可用区域可以是用于显示图标的区域,该可用区域的高度可以预先设置,该可用区域的宽度由Notch区域信息及圆角区域信息确定,该可用区域可以包含一个区域,也可以包含两个区域,示例性的,当Notch区域位于电子设备的屏幕的最左侧或最右侧,则可用区域仅包含一个区域。The width of the available area is determined based on the Notch area information and the rounded corner area information, and the available area is used to display icons; specifically, the available area may be an area for displaying icons, the height of the available area may be set in advance, the width of the available area is determined by the Notch area information and the rounded corner area information, and the available area may include one area or two areas. Exemplarily, when the Notch area is located at the leftmost or rightmost side of the screen of the electronic device, the available area only includes one area.

基于可用区域的宽度确定在可用区域中显示的图标的显示属性;具体地,该显示属性可以包括字体图标的宽窄度及图形图标的粗细度。The display attributes of the icon displayed in the available area are determined based on the width of the available area; specifically, the display attributes may include the width of the font icon and the thickness of the graphic icon.

根据确定的图标的显示属性,在可用区域显示图标。The icon is displayed in the available area according to the determined display attributes of the icon.

本实施例中,通过Notch区域及圆角区域确定可用区域,并根据可用区域的宽度确定图标的显示属性,可以将图标的显示属性与Notch宽度动态适配,从而为用户带来良好的观看体验,提高用户的感受。In this embodiment, the available area is determined by the Notch area and the rounded corner area, and the display properties of the icon are determined according to the width of the available area. The display properties of the icon can be dynamically adapted to the Notch width, thereby bringing a good viewing experience to the user and improving the user's feeling.

其中一种可能的实现方式中,基于所述Notch区域信息及所述圆角区域信息确定可用区域的宽度,包括:In one possible implementation, determining the width of the available area based on the Notch area information and the rounded corner area information includes:

确定第一区域的宽度L1=W1-U-S;具体地,该第一区域可以是位于Notch区域左侧的区域。Determine the width L1 of the first area = W1-U-S; specifically, the first area may be an area located on the left side of the Notch area.

确定第二区域的宽度L2=W2-U-S;具体地,该第二区域可以是位于Notch区域右侧的区域。Determine the width L2 of the second area = W2-U-S; specifically, the second area may be an area located on the right side of the Notch area.

若L1大于或等于预设第一阈值,且L2大于或等于预设第一阈值,则确定可用区域的宽度L=L1+L2,可用区域包括第一区域和第二区域;其中,W1为Notch区域左边缘到电子设备左侧边缘的距离,W2为Notch区域右边缘到电子设备右侧边缘的距离,U为圆角区域的宽度,S为预设安全距离。具体地,上述圆角区域可以包括左右对称的两个圆角,因此,第一区域的宽度L1可以由W1与左侧圆角的宽度的差值确定,第二区域的宽度L2可以由W2与右侧圆角的宽度的差值确定。其中,安全距离可以是图标与Notch区域的预留距离。该预设第一阈值可以是最小图标的宽度,也就是说,若L1和L2大于或等于该预设第一阈值,则可用区域可以包括上述第一区域和第二区域。If L1 is greater than or equal to the preset first threshold, and L2 is greater than or equal to the preset first threshold, then the width of the available area L=L1+L2 is determined, and the available area includes the first area and the second area; wherein W1 is the distance from the left edge of the Notch area to the left edge of the electronic device, W2 is the distance from the right edge of the Notch area to the right edge of the electronic device, U is the width of the rounded corner area, and S is the preset safety distance. Specifically, the above-mentioned rounded corner area may include two rounded corners that are symmetrical on the left and right. Therefore, the width L1 of the first area can be determined by the difference between W1 and the width of the left rounded corner, and the width L2 of the second area can be determined by the difference between W2 and the width of the right rounded corner. Among them, the safety distance can be the reserved distance between the icon and the Notch area. The preset first threshold can be the width of the minimum icon, that is, if L1 and L2 are greater than or equal to the preset first threshold, the available area can include the above-mentioned first area and the second area.

本实施例中,根据预设第一阈值确定可用区域的个数,并进而确定可用区域的宽度,由此可以更准确的获取可用区域的宽度。In this embodiment, the number of available areas is determined according to a preset first threshold, and then the width of the available area is determined, thereby more accurately obtaining the width of the available area.

Figure BDA0002795175950000021
Figure BDA0002795175950000021

其中,R为圆角区域的半径,H为Notch区域的中心位置离电子设备的顶部的距离,h为可用区域的预设高度。Wherein, R is the radius of the rounded area, H is the distance between the center of the Notch area and the top of the electronic device, and h is the preset height of the available area.

本实施例中,通过上述公式,可以更精确的获得圆角区域的宽度。In this embodiment, the width of the rounded corner area can be obtained more accurately through the above formula.

其中一种可能的实现方式中,上述图标包括字体图标和图形图标。In one possible implementation manner, the icons include font icons and graphic icons.

本实施例中,对图标的样式进行分类,由此可以对不同样式的图标进行区分显示,进而可以提高用户的观看体验。In this embodiment, the styles of icons are classified, so that icons of different styles can be displayed separately, thereby improving the viewing experience of users.

其中一种可能的实现方式中,上述图标为字体图标,则基于可用区域的宽度确定在可用区域中显示的图标的显示属性包括:In one possible implementation, if the icon is a font icon, then determining the display attributes of the icon displayed in the available area based on the width of the available area includes:

若可用区域的宽度大于或等于预设第二阈值,确定图标的宽窄度为第一数值;具体地,该第二阈值可以是容纳最大预设数量的图标的宽度。该第一数值可以是宽窄度中较宽的值。If the width of the available area is greater than or equal to the preset second threshold, the width of the icon is determined to be a first value; specifically, the second threshold may be a width that accommodates a maximum preset number of icons. The first value may be a wider value in the width.

若可用区域的宽度大于或等于预设第三阈值,小于第二阈值,确定图标的宽窄度为第二数值;其中,第一数值大于第二数值,第三阈值小于第二阈值。具体地,该第三阈值可以是容纳最小预设数量的图标的宽度,该第二数值可以是宽窄度中的中间值。If the width of the available area is greater than or equal to the preset third threshold and less than the second threshold, the width of the icon is determined to be the second value; wherein the first value is greater than the second value and the third threshold is less than the second threshold. Specifically, the third threshold may be the width of the icons that accommodate the minimum preset number, and the second value may be the middle value of the width.

本实施例中,通过宽窄度的数值确定字体图标的显示属性,可以提高用户对字体图标的观看体验。In this embodiment, the display attribute of the font icon is determined by the value of the width, which can improve the user's viewing experience of the font icon.

其中一种可能的实现方式中,基于可用区域的宽度确定在可用区域中显示的图标的显示属性,还包括:In one possible implementation, determining the display attribute of the icon displayed in the available area based on the width of the available area further includes:

若可用区域的宽度小于第三阈值,确定图标的宽窄度为第三数值;其中,第三数值小于第二数值。具体地,该第三数值可以是宽窄度中较窄的值。If the width of the available area is less than the third threshold, the width of the icon is determined to be a third value, wherein the third value is less than the second value. Specifically, the third value may be a narrower value in the width.

本实施例中,通过宽窄度的数值确定字体图标的显示属性,可以提高用户对字体图标的观看体验。In this embodiment, the display attribute of the font icon is determined by the value of the width, which can improve the user's viewing experience of the font icon.

其中一种可能的实现方式中,上述图标为图形图标,基于可用区域的宽度确定在可用区域中显示的图标的显示属性包括:In one possible implementation, the icon is a graphic icon, and determining the display attribute of the icon displayed in the available area based on the width of the available area includes:

若可用区域的宽度大于或等于预设第二阈值,确定图标的粗细度为第四数值;具体地,该第四数值可以是粗细度中较粗的值。If the width of the available area is greater than or equal to the preset second threshold, the thickness of the icon is determined to be a fourth value; specifically, the fourth value may be a thicker value among the thicknesses.

若可用区域的宽度大于或等于预设第三阈值,小于第二阈值,确定图标的粗细度为第五数值;其中,第四数值大于第五数值,第三阈值小于第二阈值。具体地,该第五数值可以是粗细度中的中间值。If the width of the available area is greater than or equal to the preset third threshold and less than the second threshold, the thickness of the icon is determined to be a fifth value, wherein the fourth value is greater than the fifth value and the third threshold is less than the second threshold. Specifically, the fifth value may be an intermediate value in the thickness.

本实施例中,通过粗细度的数值确定图形图标的显示属性,可以提高用户对图形图标的观看体验。In this embodiment, the display attribute of the graphic icon is determined by the value of the thickness, which can improve the user's viewing experience of the graphic icon.

其中一种可能的实现方式中,基于可用区域的宽度确定在可用区域中显示的图标的显示属性,还包括:In one possible implementation, determining the display attribute of the icon displayed in the available area based on the width of the available area further includes:

若可用区域的宽度小于第二阈值,确定图标的粗细度为第六数值;其中,第六数值小于第五数值。具体地,该第六数值可以是粗细度中较细的值。If the width of the available area is less than the second threshold, the thickness of the icon is determined to be a sixth value, wherein the sixth value is less than the fifth value. Specifically, the sixth value may be a thinner value among the thicknesses.

其中一种可能的实现方式中,上述图标包括常驻图标和可选图标,上述第二阈值由预设第一数量的常驻图标及预设第二数量的可选图标的宽度总和确定;上述第三阈值由预设第三数量的常驻图标的宽度总和确定。In one possible implementation, the icons include resident icons and optional icons, the second threshold is determined by the sum of the widths of a preset first number of resident icons and a preset second number of optional icons; the third threshold is determined by the sum of the widths of a preset third number of resident icons.

本实施例中,通过预设数量的常驻图标和可选图标确定第二阈值及第三阈值,由此可以找到与常驻图标及可选图标的匹配的显示属性,进而可以提高用户的观看体验。In this embodiment, the second threshold and the third threshold are determined by presetting a number of resident icons and optional icons, thereby finding display attributes matching the resident icons and the optional icons, thereby improving the viewing experience of the user.

其中一种可能的实现方式中,可用区域包括第一区域及第二区域,根据确定的图标的显示属性,在可用区域显示图标之前,还包括:In one possible implementation, the available area includes the first area and the second area, and according to the determined display attribute of the icon, before the icon is displayed in the available area, the following is further included:

获取电子设备中每个图标的优先级及宽度;具体地,每个图标可以包含预设的优先级,该优先级可以用于表征图标的重要程度。示例性的,系统级的图标的优先级大于应用级的图标的优先级,常驻图标的优先级大于可选图标的优先级,也可以按照其他方式划分图标的优先级,本申请实施例对此不作特殊限定。Obtain the priority and width of each icon in the electronic device; specifically, each icon may include a preset priority, which may be used to characterize the importance of the icon. Exemplarily, the priority of a system-level icon is greater than the priority of an application-level icon, and the priority of a resident icon is greater than the priority of an optional icon. The priority of icons may also be divided in other ways, and the embodiments of the present application do not specifically limit this.

按照优先级由高至低的顺序,基于图标的宽度,第一区域的宽度L1,第二区域的宽度L2依次确定每个图标位于第一区域或位于第二区域。In descending order of priority, it is determined in sequence whether each icon is located in the first area or in the second area based on the width of the icon, the width L1 of the first area, and the width L2 of the second area.

本实施例中,按照每个图标的优先级确定该图标在可用区域的位置,由此可以保证重要的图标可以优先显示。In this embodiment, the position of each icon in the available area is determined according to the priority of the icon, thereby ensuring that important icons can be displayed preferentially.

其中一种可能的实现方式中,响应于预设操作,显示悬浮状态栏,悬浮状态栏中至少包括可用区域中显示的图标。具体地,该预设操作可以是用户手指下滑操作,也可以是其他类型的操作,本申请实施例对此不作特殊限定。In one possible implementation, in response to a preset operation, a floating status bar is displayed, and the floating status bar includes at least the icons displayed in the available area. Specifically, the preset operation can be a user's finger sliding operation or other types of operations, which are not specifically limited in the embodiments of the present application.

本实施例中,通过用户唤醒悬浮状态栏,该悬浮状态栏除了包含可用区域显示的图标之外,可以包含更多图标,由此可以提高显示效率。In this embodiment, the floating status bar is awakened by the user. In addition to the icons displayed in the available area, the floating status bar may include more icons, thereby improving display efficiency.

其中一种可能的实现方式中,悬浮状态栏中的字体图标的宽窄度为第一数值;悬浮状态栏中的图形图标的粗细度为第四数值。具体地,该第一数值为宽窄度中较宽的值,该第四数值为粗细度中较粗的值。In one possible implementation, the width of the font icon in the floating status bar is a first value, and the thickness of the graphic icon in the floating status bar is a fourth value. Specifically, the first value is a wider value in the width, and the fourth value is a thicker value in the thickness.

本实施例中,通过将字体图标的宽窄度设置为较宽的值,将图形图标的粗细度设置为较粗的值,可以提高悬浮状态栏中的图标的显示质量。In this embodiment, by setting the width of the font icon to a wider value and the thickness of the graphic icon to a thicker value, the display quality of the icon in the floating status bar can be improved.

第二方面,本申请提供一种图标显示装置,包括:In a second aspect, the present application provides an icon display device, comprising:

获取模块,用于获取Notch区域信息及圆角区域信息;An acquisition module is used to obtain Notch area information and fillet area information;

计算模块,用于基于Notch区域信息及圆角区域信息确定可用区域的宽度,可用区域用于显示图标;A calculation module, used for determining a width of an available area based on the Notch area information and the rounded corner area information, where the available area is used for displaying icons;

显示模块,用于基于可用区域的宽度确定在可用区域中显示的图标的显示属性;根据确定的图标的显示属性,在可用区域显示图标。The display module is used to determine the display properties of the icon displayed in the available area based on the width of the available area; and display the icon in the available area according to the determined display properties of the icon.

当包括两个可用区域(如第一区域和第二区域)时,上述装置还可以包括:When two available areas (such as a first area and a second area) are included, the above apparatus may further include:

位置确定模块,用于获取电子设备中每个图标的优先级及宽度;按照优先级由高至低的顺序,基于图标的宽度,第一区域的宽度L1,第二区域的宽度L2依次确定每个图标位于第一区域或位于第二区域。The position determination module is used to obtain the priority and width of each icon in the electronic device; in descending order of priority, based on the width of the icon, the width L1 of the first area, and the width L2 of the second area, each icon is determined to be located in the first area or in the second area.

其中一种可能的实现方式中,上述装置还包括:In one possible implementation, the device further includes:

悬浮显示模块,用于响应于预设操作,显示悬浮状态栏,悬浮状态栏中至少包括可用区域中显示的图标。The floating display module is used to display a floating status bar in response to a preset operation, wherein the floating status bar at least includes the icons displayed in the available area.

第三方面,本申请提供一种电子设备,包括:显示屏;处理器;存储器;以及计算机程序,其中计算机程序被存储在存储器中,计算机程序包括指令,当上述指令被上述电子设备执行时,使得上述电子设备执行以下步骤:In a third aspect, the present application provides an electronic device, comprising: a display screen; a processor; a memory; and a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the electronic device, the electronic device performs the following steps:

获取Notch区域信息及圆角区域信息;Get Notch area information and fillet area information;

基于Notch区域信息及圆角区域信息确定可用区域的宽度,可用区域用于显示图标;Determine the width of the available area based on the Notch area information and the rounded corner area information, where the available area is used to display icons;

基于可用区域的宽度确定在可用区域中显示的图标的显示属性;Determining display properties of an icon displayed in the available area based on a width of the available area;

根据确定的图标的显示属性,在可用区域显示图标。The icon is displayed in the available area according to the determined display attributes of the icon.

应当理解的是,本申请第二至三方面与本申请的第一方面的技术方案可以相同,各方面及对应的可行实施方式以及其所取得的有益效果相似,不再赘述。It should be understood that the technical solutions of the second to third aspects of the present application may be the same as those of the first aspect of the present application, and the various aspects and corresponding feasible implementation methods as well as the beneficial effects achieved are similar and will not be described in detail.

第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.

第五方面,本申请提供一种计算机程序,当所述计算机程序被计算机执行时,用于执行第一方面所述的方法。In a fifth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.

在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例提供的图标显示方法的流程示意图;FIG1 is a schematic diagram of a flowchart of an icon display method provided in an embodiment of the present application;

图2为本申请实施例提供的的不可用区域的宽度U计算示意图;FIG2 is a schematic diagram of calculating the width U of the unusable area provided in an embodiment of the present application;

图3为本申请实施例提供的图标位置确定示意图;FIG3 is a schematic diagram of determining an icon position according to an embodiment of the present application;

图4为本申请提供的图标显示属性一个实施例的示意图;FIG4 is a schematic diagram of an embodiment of icon display attributes provided by the present application;

图5为本申请提供的图标显示属性另一个实施例的示意图;FIG5 is a schematic diagram of another embodiment of icon display attributes provided by the present application;

图6为本申请提供的图标显示属性再一个实施例的示意图;FIG6 is a schematic diagram of another embodiment of icon display attributes provided by the present application;

图7为本申请实施例提供的悬浮状态栏的显示示意图;FIG. 7 is a display diagram of a floating status bar provided in an embodiment of the present application;

图8为本申请实施例提供的图标显示装置的结构示意图;FIG8 is a schematic diagram of the structure of an icon display device provided in an embodiment of the present application;

图9为本申请电子设备一个实施例的结构示意图。FIG. 9 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.

现有技术中,状态栏的图标和字体都是静态样式,对于具有不同宽度Notch的手机来说,无法自动根据Notch的宽度调整状态栏图标及其显示属性。In the prior art, the icons and fonts of the status bar are all static styles. For mobile phones with Notches of different widths, it is impossible to automatically adjust the status bar icons and their display properties according to the width of the Notch.

为此,本申请实施例提出一种图标显示方法,可以基于Notch的宽度获得状态栏可显示宽度,并基于状态栏可显示宽度动态调整图标以及显示属性,从而可以为用户带来良好的观看体验。To this end, an embodiment of the present application proposes an icon display method, which can obtain the displayable width of the status bar based on the width of the Notch, and dynamically adjust the icon and display properties based on the displayable width of the status bar, thereby providing users with a good viewing experience.

如图1所示为本申请图标显示方法一个实施例的流程图,应用于电子设备100,可以包括:FIG. 1 is a flow chart of an embodiment of the icon display method of the present application, which is applied to an electronic device 100 and may include:

步骤101,获取Notch区域信息及不可用区域信息。Step 101, obtaining Notch area information and unavailable area information.

具体地,电子设备100可以是手机、平板等具有显示屏的电子设备。Specifically, the electronic device 100 may be an electronic device with a display screen, such as a mobile phone or a tablet.

Notch区域信息可以包括Notch中心位置离显示屏顶部的距离、Notch宽度和Notch高度。其中,Notch区域信息的获取可以通过获取Notch宽度、Notch高度和Notch中心位置的坐标后转换获得;示例性的,可以预先设置显示屏的平面坐标系,当获取到Notch中心位置的坐标后,可以根据该中心位置的坐标换算得到中心位置到显示屏顶部的距离;可选地,Notch区域信息的获取也可以通过获取Notch中心位置到显示屏顶部的距离、Notch左边缘到显示屏左侧的距离、Notch右边缘到显示屏右侧的距离以及Notch高度后换算得到。可以理解的是,Notch中心位置离显示屏顶部的距离可以基于Notch中心位置的坐标换算得到,Notch中心位置离显示屏顶部的距离也可以基于Notch边缘离显示屏边缘的距离换算得到,Notch中心位置离显示屏顶部的距离也可以通过获取其他类型的信息换算得到,Notch中心位置离显示屏顶部的距离也可以直接获取,例如,直接给出Notch中心位置离显示屏顶部的距离,本申请实施例对此不作特殊限定。The Notch area information may include the distance from the center of the Notch to the top of the display screen, the Notch width, and the Notch height. The Notch area information may be obtained by converting the coordinates of the Notch width, Notch height, and the center of the Notch; exemplarily, the plane coordinate system of the display screen may be pre-set, and when the coordinates of the center of the Notch are obtained, the distance from the center to the top of the display screen may be converted according to the coordinates of the center; optionally, the Notch area information may also be obtained by converting the distance from the center of the Notch to the top of the display screen, the distance from the left edge of the Notch to the left side of the display screen, the distance from the right edge of the Notch to the right side of the display screen, and the Notch height. It is understandable that the distance from the center of the Notch to the top of the display screen may be converted based on the coordinates of the center of the Notch, the distance from the center of the Notch to the top of the display screen may also be converted based on the distance from the edge of the Notch to the edge of the display screen, the distance from the center of the Notch to the top of the display screen may also be converted by obtaining other types of information, and the distance from the center of the Notch to the top of the display screen may also be directly obtained, for example, the distance from the center of the Notch to the top of the display screen is directly given, and the embodiment of the present application does not specifically limit this.

不可用区域信息可以包括显示屏中不可用圆角区的半径。可以理解的是,显示屏包含左右对称的两个不可用圆角区。The unusable area information may include the radius of the unusable rounded corner area in the display screen. It can be understood that the display screen includes two unusable rounded corner areas that are symmetrical on the left and right.

步骤102,基于Notch区域信息及不可用区域信息确定可显示区域的位置及宽度。Step 102: Determine the position and width of the displayable area based on the Notch area information and the unavailable area information.

具体地,电子设备100可以基于Notch区域信息及不可用区域信息确定不可用区域的位置及宽度,例如,可以基于Notch中心位置离显示屏顶部的距离H及不可用区域的半径R计算得到不可用区域的宽度U。Specifically, the electronic device 100 can determine the position and width of the unavailable area based on the Notch area information and the unavailable area information. For example, the width U of the unavailable area can be calculated based on the distance H from the center of the Notch to the top of the display screen and the radius R of the unavailable area.

接着,电子设备100基于不可用区域的宽度U以及Notch区域信息,可以确定可显示区域的位置及宽度。其中,可显示区域可以用于显示内容,该内容可以包括图标。Next, the electronic device 100 may determine the position and width of the displayable area based on the width U of the unavailable area and the Notch area information. The displayable area may be used to display content, which may include icons.

现结合图2进行说明,如图2所示,电子设备100的显示屏包含左侧待定区域210、右侧待定区域220、不可用区域230以及Notch区域240。其中,左侧待定区域210用于确定左侧可显示区域,该左侧待定区域210的宽度为L1;右侧待定区域220用于确定右侧可显示区域,该右侧待定区域220的宽度为L2;不可用区域230对应的圆角区的半径为R,不可用区域230的宽度为U,Notch区域240左边缘离显示屏左侧的距离为W1,Notch区域240右边缘离显示屏右侧的距离为W2,Notch区域240的中心位置离显示屏顶部的距离为H。Now, the description is made in conjunction with FIG. 2. As shown in FIG. 2, the display screen of the electronic device 100 includes a left undetermined area 210, a right undetermined area 220, an unavailable area 230, and a Notch area 240. The left undetermined area 210 is used to determine the left displayable area, and the width of the left undetermined area 210 is L1; the right undetermined area 220 is used to determine the right displayable area, and the width of the right undetermined area 220 is L2; the radius of the fillet area corresponding to the unavailable area 230 is R, the width of the unavailable area 230 is U, the distance between the left edge of the Notch area 240 and the left side of the display screen is W1, the distance between the right edge of the Notch area 240 and the right side of the display screen is W2, and the distance between the center of the Notch area 240 and the top of the display screen is H.

则不可用区域230的宽度

Figure BDA0002795175950000061
其中,h为左侧待定区域210和右侧待定区域220的预设高度;The width of the unavailable area 230 is
Figure BDA0002795175950000061
Wherein, h is the preset height of the left pending area 210 and the right pending area 220;

左侧待定区域210的宽度L1=W1-U-S;其中,S为左侧待定区域210与Notch之间预留的安全距离;The width L1 of the left undetermined area 210 = W1-U-S, where S is the safety distance reserved between the left undetermined area 210 and the Notch;

右侧待定区域220的宽度L2=W2-U-S;其中,S为右侧待定区域220与Notch之间预留的安全距离。The width L2 of the right undetermined area 220 is W2-U-S, wherein S is a safety distance reserved between the right undetermined area 220 and the Notch.

当获取到L1和L2后,电子设备100可以基于L1和L2判断左侧待定区域和右侧待定区域是否为可显示区域。例如,可以将L1与预设第一宽度阈值(例如,最小的常驻图标的宽度)进行比较,以及将L2与预设第一宽度阈值进行比较。示例性的,常驻图标可以包括信号图标(例如,宽度为20dp)、电池图标(例如,宽度为25dp)、WIFI图标(例如,宽度为20dp)以及时间图标(例如,宽度为30dp)等。因此,可以将20dp作为第一宽度阈值。在具体实现时,可以将该预设第一宽度阈值设置为最小的图标的宽度,优选地,可以将该预设第一宽度阈值设置为最小的常驻图标的宽度,其中,常驻图标为状态栏显示的必选图标,也就是说,常驻图标的优先级在所有图标中是最高的,在状态栏中显示图标时,会优先显示常驻图标。After obtaining L1 and L2, the electronic device 100 can determine whether the left undetermined area and the right undetermined area are displayable areas based on L1 and L2. For example, L1 can be compared with a preset first width threshold (e.g., the width of the smallest resident icon), and L2 can be compared with a preset first width threshold. Exemplarily, resident icons may include signal icons (e.g., with a width of 20dp), battery icons (e.g., with a width of 25dp), WIFI icons (e.g., with a width of 20dp), and time icons (e.g., with a width of 30dp), etc. Therefore, 20dp can be used as the first width threshold. In a specific implementation, the preset first width threshold can be set to the width of the smallest icon. Preferably, the preset first width threshold can be set to the width of the smallest resident icon, wherein the resident icon is a required icon displayed in the status bar, that is, the priority of the resident icon is the highest among all icons, and when the icon is displayed in the status bar, the resident icon will be displayed first.

若判断L1大于或等于该预设第一宽度阈值,则左侧待定区域210为左侧可显示区域,也就是说,该左侧待定区域210可以用于显示图标;若判断L1小于该预设第一宽度阈值,则左侧待定区域210为左侧不可显示区域,也就是说,该左侧待定区域210不可用于显示图标。If it is judged that L1 is greater than or equal to the preset first width threshold, the left undetermined area 210 is the left displayable area, that is, the left undetermined area 210 can be used to display icons; if it is judged that L1 is less than the preset first width threshold, the left undetermined area 210 is the left non-displayable area, that is, the left undetermined area 210 cannot be used to display icons.

同样地,若判断L2大于或等于该预设第一宽度阈值,则右侧待定区域220为右侧可显示区域,也就是说,该右侧待定区域220可以用于显示图标,若判断L2小于该预设第一宽度阈值,则右侧待定区域220为不可显示区域,也就是说,该右侧待定区域220不可用于显示图标。Similarly, if it is judged that L2 is greater than or equal to the preset first width threshold, the right side undetermined area 220 is the right side displayable area, that is, the right side undetermined area 220 can be used to display icons; if it is judged that L2 is less than the preset first width threshold, the right side undetermined area 220 is a non-displayable area, that is, the right side undetermined area 220 cannot be used to display icons.

步骤103,基于可显示区域的位置及宽度确定图标、显示位置及其显示属性,基于显示属性在可显示区域的显示位置显示图标。Step 103 : determining an icon, a display position and display attributes thereof based on the position and width of the displayable area, and displaying the icon at the display position of the displayable area based on the display attributes.

具体地,当获取到可显示区域的位置及宽度后,电子设备100可以基于可显示区域的宽度确定用于显示的图标及其显示属性。其中,电子设备100可以基于图标的优先级确定图标的顺序,例如,可以从优先级较高的图标开始,依次确定图标的顺序,本申请实施例对此不作限定。Specifically, after obtaining the position and width of the displayable area, the electronic device 100 can determine the icons to be displayed and their display attributes based on the width of the displayable area. The electronic device 100 can determine the order of icons based on the priority of the icons, for example, starting from the icons with higher priority, and determining the order of the icons in sequence, which is not limited in the embodiments of the present application.

示例性的,以左侧可显示区域和右侧可显示区域为例,在左侧可显示区域和右侧可显示区域确定图标时,电子设备100可以轮流在左侧可显示区域和右侧可显示区域中确定图标,例如,可以在左侧可显示区域中确定一个图标,然后在右侧可显示区域中确定下一个图标。其中,越早确定的图标优先级越高。当左侧可显示区域不能容纳任一个图标时,可在右侧可显示区域中确定剩余图标,直到左右两个可显示区域都不能容纳任一个图标为止;或当右侧可显示区域不能容纳任一个图标时,可在左侧可显示区域中确定剩余图标,直到左右两个可显示区域都不能容纳任一个图标为止。可以理解的是,上述以先确认左侧可显示区域的图标,再确认右侧可显示区域的图标为例进行说明,还可以是先确认右侧可显示区域的图标,再确认左侧可显示区域的图标,本申请实施例对此不作特殊限定。Exemplarily, taking the left displayable area and the right displayable area as examples, when determining icons in the left displayable area and the right displayable area, the electronic device 100 can determine icons in the left displayable area and the right displayable area in turn, for example, an icon can be determined in the left displayable area, and then the next icon can be determined in the right displayable area. Among them, the earlier the icon is determined, the higher the priority. When the left displayable area cannot accommodate any icon, the remaining icons can be determined in the right displayable area until both the left and right displayable areas cannot accommodate any icon; or when the right displayable area cannot accommodate any icon, the remaining icons can be determined in the left displayable area until both the left and right displayable areas cannot accommodate any icon. It can be understood that the above is explained by first confirming the icon in the left displayable area and then confirming the icon in the right displayable area as an example, and it can also be that the icon in the right displayable area is first confirmed, and then the icon in the left displayable area is confirmed, and the embodiment of the present application does not make special limitations on this.

此外,电子设备100在左侧可显示区域和右侧可显示区域确定图标后,还可以确定图标的显示位置。可以理解的是,可以在任意一个图标确定后,确定该图标的显示位置,也可以在所有图标确定后,确定所有图标的显示位置,本申请实施例对此不作特殊限定。示例性的,图标的显示位置可以基于由外至内的顺序,例如,对于左侧可显示区域来说,电子设备100可以依次将确定的图标由左至右放置在左侧可显示区域,以便等待显示;对于右侧可显示区域来说,可以依次将确定的图标由右至左放置在右侧可显示区域,以便等待显示。In addition, after the electronic device 100 determines the icon in the left displayable area and the right displayable area, it can also determine the display position of the icon. It is understandable that the display position of the icon can be determined after any one icon is determined, or the display position of all icons can be determined after all icons are determined. The embodiment of the present application does not specifically limit this. Exemplarily, the display position of the icon can be based on the order from outside to inside. For example, for the left displayable area, the electronic device 100 can sequentially place the determined icons from left to right in the left displayable area to wait for display; for the right displayable area, the determined icons can be sequentially placed from right to left in the right displayable area to wait for display.

现结合图3进行说明,如图3所示,若电子设备100判断左侧待定区域210为左侧可显示区域310,则可以基于左侧可显示区域310的宽度L1及图标的优先级确定图标及其显示位置。若电子设备100判断右侧待定区域220为右侧可显示区域320,则可以基于右侧可显示区域320的宽度L2及图标的优先级确定图标及其显示位置。Now, the description is made in conjunction with FIG. 3 . As shown in FIG. 3 , if the electronic device 100 determines that the left undetermined area 210 is the left displayable area 310, the icon and its display position can be determined based on the width L1 of the left displayable area 310 and the priority of the icon. If the electronic device 100 determines that the right undetermined area 220 is the right displayable area 320, the icon and its display position can be determined based on the width L2 of the right displayable area 320 and the priority of the icon.

示例性的,可以将优先级最高的常驻图标从左侧可显示区域310开始放置。电子设备100可以判断优先级最高的常驻图标的宽度,若左侧可显示区域310足够容纳该优先级最高的常驻图标,则电子设备100将该优先级最高的常驻图标(例如,信号图标311)放置入左侧可显示区域310中的最左侧。接着,电子设备100判断右侧可显示区域320是否足够容纳次高优先级的常驻图标(例如,时间图标321),若足够容纳,则电子设备100将该次高优先级的常驻图标放置入右侧可显示区域320中的最右侧。然后,电子设备100依次在左侧可显示区域310和右侧可显示区域320中,确定剩余的常驻图标(例如,WIFI图标312和电池图标322),例如,若左侧可显示区域310和右侧可显示区域320的宽度足够,则依次将WIFI图标312放置入左侧可显示区域210中信号图标311的右侧,将电池图标322放置入右侧可显示区域320中时间图标321的左侧。当常驻图标全部放置完毕之后,电子设备100可以进一步判断左侧可显示区域310是否有足够容纳可选图标;其中,可选图标包括与打开的应用程序对应的图标,例如,用户打开了定位应用程序,则可显示区域可以显示定位图标。可选图标也可以根据可选图标的优先级确定,例如,从较高优先级的可选图标开始,依次确定可选图标的顺序,在此不再赘述。Exemplarily, the resident icon with the highest priority can be placed starting from the left displayable area 310. The electronic device 100 can determine the width of the resident icon with the highest priority. If the left displayable area 310 is large enough to accommodate the resident icon with the highest priority, the electronic device 100 places the resident icon with the highest priority (e.g., the signal icon 311) at the far left of the left displayable area 310. Next, the electronic device 100 determines whether the right displayable area 320 is large enough to accommodate the resident icon with the second highest priority (e.g., the time icon 321). If it is large enough, the electronic device 100 places the resident icon with the second highest priority at the far right of the right displayable area 320. Then, the electronic device 100 determines the remaining resident icons (e.g., WIFI icon 312 and battery icon 322) in the left displayable area 310 and the right displayable area 320 in turn. For example, if the width of the left displayable area 310 and the right displayable area 320 is sufficient, the WIFI icon 312 is placed to the right of the signal icon 311 in the left displayable area 210, and the battery icon 322 is placed to the left of the time icon 321 in the right displayable area 320. After all the resident icons are placed, the electronic device 100 can further determine whether the left displayable area 310 is sufficient to accommodate optional icons; wherein the optional icons include icons corresponding to the opened applications, for example, if the user opens the positioning application, the displayable area can display the positioning icon. The optional icons can also be determined according to the priority of the optional icons, for example, starting from the optional icons with higher priority, the order of the optional icons is determined in turn, which will not be repeated here.

可以理解的是,由于左侧可显示区域310和右侧可显示区域320的宽度有限,在左侧可显示区域310和右侧可显示区域320中可以只容纳部分优先级高的可选图标,剩余的优先级低的可选图标可以隐藏。It is understandable that due to the limited width of the left display area 310 and the right display area 320, only some high-priority optional icons can be accommodated in the left display area 310 and the right display area 320, and the remaining low-priority optional icons can be hidden.

此外,需要说明的是,也可以将优先级最高的常驻图标从右侧可显示区域320开始放置,本申请实施例对此不作特殊限定。In addition, it should be noted that the resident icon with the highest priority may also be placed starting from the right display area 320 , and the embodiment of the present application does not specifically limit this.

进一步地,当确定图标及其显示位置后,电子设备100还可以确定图标的显示属性,由此可以使得电子设备100基于该显示属性显示上述图标。其中,显示属性可以包括粗体、细体、宽体和窄体等。基于可显示区域的宽度,电子设备100可以确定对应的显示属性。Further, after determining the icon and its display position, the electronic device 100 may also determine the display attribute of the icon, so that the electronic device 100 can display the icon based on the display attribute. The display attribute may include bold, thin, wide, and narrow. Based on the width of the displayable area, the electronic device 100 may determine the corresponding display attribute.

示例性的,可以获取左侧可显示区域和右侧可显示区域的宽度总和L,其中L=L1+L2,L1为左侧可显示区域的宽度,L2为右侧可显示区域的宽度。接着,可以将L与预设第二宽度阈值及预设第三宽度阈值进行比较。For example, the sum L of the widths of the left displayable area and the right displayable area can be obtained, where L=L1+L2, L1 is the width of the left displayable area, and L2 is the width of the right displayable area. Then, L can be compared with the preset second width threshold and the preset third width threshold.

若判断L大于或等于预设第二宽度阈值,则可以认为当前可显示区域的宽度足够宽,因此,电子设备100可以对图标以预设第一显示属性进行显示。其中,图标可以分为两种类型,例如,图形图标和字体图标。因此,预设第一显示属性可以包括:图形图标为粗体;字体图标为宽体。由此可以使得图标显示的更醒目,有利于提高图标的识别度,提高用户的体验。示例性的,第二宽度阈值可以基于4个常驻图标(例如,20dp的信号图标、25dp的电池图标、20dp的WIFI图标以及30dp的时间图标)以及4个可选图标(例如,每个可选图标宽度为15dp)的宽度确定,则第二宽度阈值=20+25+20+30+15*4=155dp,也可以通过其他常驻图标和/或可选图标的宽度确定第二宽度阈值,本申请实施例对此不作特殊限定。If it is judged that L is greater than or equal to the preset second width threshold, it can be considered that the width of the current displayable area is wide enough, so the electronic device 100 can display the icon with the preset first display attribute. Among them, icons can be divided into two types, for example, graphic icons and font icons. Therefore, the preset first display attribute may include: the graphic icon is bold; the font icon is wide. This can make the icon display more eye-catching, which is conducive to improving the recognition of the icon and improving the user experience. Exemplarily, the second width threshold can be determined based on the width of 4 resident icons (for example, a 20dp signal icon, a 25dp battery icon, a 20dp WIFI icon, and a 30dp time icon) and 4 optional icons (for example, each optional icon is 15dp wide), then the second width threshold = 20 + 25 + 20 + 30 + 15 * 4 = 155dp, and the second width threshold can also be determined by the width of other resident icons and/or optional icons, and the embodiment of the present application is not particularly limited to this.

现结合图4进行说明,如图4所示,左侧可显示区域410宽度为80dp,可以容纳信号图标411(20dp)、WIFI图标412(20dp)、可选图标413(15dp)及可选图标414(15dp);右侧可显示区域420宽度为90dp,可以容纳时间图标421(30dp)、电池图标422(25dp)、电量百分比可选图标423(15dp)及可选图标424(15dp)。左侧可显示区域410宽度与右侧可显示区域420宽度总和为80+90=170dp,也就是说,左侧可显示区域410宽度与右侧可显示区域420宽度总和大于预设第二宽度阈值155dp。信号图标411、WIFI图标412及电池图标422为图形图标,因此,信号图标411、WIFI图标412及电池图标422以粗体显示,时间图标421及电量百分比图标423为字体图标,因此,时间图标421及电量百分比图标423以宽体显示。可以使得图标显示的更醒目,提高用户的观看体验。Now, in conjunction with FIG. 4 , as shown in FIG. 4 , the width of the left displayable area 410 is 80 dp, which can accommodate the signal icon 411 (20 dp), the WIFI icon 412 (20 dp), the optional icon 413 (15 dp), and the optional icon 414 (15 dp); the width of the right displayable area 420 is 90 dp, which can accommodate the time icon 421 (30 dp), the battery icon 422 (25 dp), the battery percentage optional icon 423 (15 dp), and the optional icon 424 (15 dp). The sum of the width of the left displayable area 410 and the width of the right displayable area 420 is 80+90=170 dp, that is, the sum of the width of the left displayable area 410 and the width of the right displayable area 420 is greater than the preset second width threshold of 155 dp. Signal icon 411, WIFI icon 412 and battery icon 422 are graphic icons, so they are displayed in bold, and time icon 421 and battery percentage icon 423 are font icons, so they are displayed in wide font. This can make the icons more eye-catching and improve the user's viewing experience.

若判断L小于预设第二宽度阈值,且大于或等于第三宽度阈值,则可以认为当前可显示区域的宽度在正常范围内,因此,电子设备100可以对图标以预设第二显示属性进行显示。例如,预设第二显示属性可以包括:图形图标和字体图标都为正常体。示例性的,第三宽度阈值可以基于4个常驻图标的宽度(例如,20dp的信号图标、25dp的电池图标、20dp的WIFI图标以及30dp的时间图标)确定,则第三宽度阈值=20+25+20+30=95dp,也可以通过其他常驻图标和/或可选图标的宽度确定第三宽度阈值,本申请实施例对此不作特殊限定。If it is determined that L is less than the preset second width threshold and greater than or equal to the third width threshold, it can be considered that the width of the current displayable area is within the normal range. Therefore, the electronic device 100 can display the icon with the preset second display attribute. For example, the preset second display attribute may include: both the graphic icon and the font icon are normal. Exemplarily, the third width threshold can be determined based on the width of four resident icons (for example, a 20dp signal icon, a 25dp battery icon, a 20dp WIFI icon, and a 30dp time icon), then the third width threshold = 20 + 25 + 20 + 30 = 95dp. The third width threshold can also be determined by the width of other resident icons and/or optional icons. The embodiment of the present application does not specifically limit this.

现结合图5进行说明,如图5所示,左侧可显示区域510宽度为45dp,可以容纳信号图标511(20dp)及WIFI图标512(20dp);右侧可显示区域520宽度为95dp,可以容纳时间图标521(30dp)、电池图标522(25dp)、可选图标523(15dp)及可选图标524(15dp)。左侧可显示区域510宽度与右侧可显示区域520宽度总和为45+95=140dp,也就是说,左侧可显示区域510宽度与右侧可显示区域520宽度总和140dp小于预设第二宽度阈值155dp,且大于预设第三宽度阈值95dp。信号图标511、WIFI图标512及电池图标522为图形图标,因此,信号图标511、WIFI图标512及电池图标522以正常体显示,时间图标521及电量百分比图标523为字体图标,因此,时间图标521及电量百分比图标523以正常体显示。Now, the description is made in conjunction with FIG. 5 . As shown in FIG. 5 , the width of the left displayable area 510 is 45dp, which can accommodate the signal icon 511 (20dp) and the WIFI icon 512 (20dp); the width of the right displayable area 520 is 95dp, which can accommodate the time icon 521 (30dp), the battery icon 522 (25dp), the optional icon 523 (15dp) and the optional icon 524 (15dp). The sum of the width of the left displayable area 510 and the width of the right displayable area 520 is 45+95=140dp, that is, the sum of the width of the left displayable area 510 and the width of the right displayable area 520 is 140dp, which is less than the preset second width threshold of 155dp, and greater than the preset third width threshold of 95dp. Signal icon 511, WIFI icon 512 and battery icon 522 are graphic icons, therefore, signal icon 511, WIFI icon 512 and battery icon 522 are displayed in normal body, time icon 521 and battery percentage icon 523 are font icons, therefore, time icon 521 and battery percentage icon 523 are displayed in normal body.

若判断L小于第三宽度阈值,则可以认为当前可显示区域的宽度已在极限范围外,因此,电子设备100可以对图标以预设第三显示属性进行显示。例如,预设第三显示属性可以包括:图形图标为正常体,字体图标为窄体,由此可以缩减字体图标的宽度,容纳更多的图标,避免高优先级的图标(例如,常驻图标)无法全部显示,由此可以提高用户的观看体验。If it is determined that L is less than the third width threshold, it can be considered that the width of the current displayable area is outside the limit range, so the electronic device 100 can display the icon with a preset third display attribute. For example, the preset third display attribute may include: the graphic icon is normal body, and the font icon is narrow body, thereby reducing the width of the font icon to accommodate more icons, avoiding that high-priority icons (for example, resident icons) cannot be fully displayed, thereby improving the user's viewing experience.

现结合图6进行说明,如图6所示,左侧可显示区域610宽度为40dp,可以容纳信号图标611(20dp)及WIFI图标612(20dp);右侧可显示区域620宽度为55dp,可以容纳时间图标621(30dp)及电池图标622(25dp)。左侧可显示区域610宽度与右侧可显示区域620宽度总和为40+55=95dp,也就是说,左侧可显示区域610宽度与右侧可显示区域620宽度总和95dp正好等于预设第三宽度阈值95dp。信号图标611、WIFI图标612及电池图标622为图形图标,因此,信号图标611、WIFI图标612及电池图标622以正常体显示,时间图标621为字体图标,因此,时间图标621以窄体显示。可以保证所有常驻图标能显示。Now, let's explain it in conjunction with FIG. 6. As shown in FIG. 6, the width of the left displayable area 610 is 40dp, which can accommodate the signal icon 611 (20dp) and the WIFI icon 612 (20dp); the width of the right displayable area 620 is 55dp, which can accommodate the time icon 621 (30dp) and the battery icon 622 (25dp). The sum of the width of the left displayable area 610 and the width of the right displayable area 620 is 40+55=95dp, that is, the sum of the width of the left displayable area 610 and the width of the right displayable area 620 is 95dp, which is exactly equal to the preset third width threshold of 95dp. The signal icon 611, the WIFI icon 612 and the battery icon 622 are graphic icons, so the signal icon 611, the WIFI icon 612 and the battery icon 622 are displayed in normal font, and the time icon 621 is a font icon, so the time icon 621 is displayed in narrow font. It can be ensured that all resident icons can be displayed.

可以理解的是,上述预设第二宽度阈值及预设第三宽度阈值的取值只是举例说明,可以根据需求任意取值,本申请实施例对此不作特殊限定。It can be understood that the values of the above-mentioned preset second width threshold and the preset third width threshold are only examples, and any values can be taken according to requirements, and the embodiments of the present application do not make special limitations on this.

上述图2-图6对可显示区域位置不变的场景进行了说明,下面将对可显示区域位置变更的场景进行说明。The above-mentioned FIGS. 2 to 6 illustrate the scenario where the position of the displayable area remains unchanged. The following will illustrate the scenario where the position of the displayable area changes.

如图7所示,电子设备100的显示屏上显示界面710,该界面710包含左侧可显示区域711、右侧可显示区域712及Notch区域713。用户可以在界面710上进行操作,以得到界面720,其中,该界面720可以通过悬浮窗口的形式展现,也可以通过其他类型的界面展现形式展现,本申请实施例对此不作特殊限定。示例性的,用户可以通过下拉操作,唤醒界面710上的悬浮窗口,由此可以得到界面720。可以理解的是,也可以通过其它操作唤醒悬浮窗口,本申请对此不作特殊限定。响应于用户的操作,电子设备100唤醒悬浮窗口,得到界面720。参考界面720,该界面720包含可显示区域721及Notch区域713。其中,可显示区域721可以用于显示左侧可显示区域711的图标及右侧可显示区域712的图标。此时,可显示区域721位于Notch区域713的下方,可显示区域721的宽度为显示屏的宽度,远大于左侧可显示区域711和右侧可显示区域712的宽度的总和,由此可以使得可显示区域721可以容纳更多的图标。其中,可显示区域721的位置可以基于可显示区域的中心位置离Notch区域的下边缘的距离确定。示例性的,电子设备100可以获取左侧可显示区域711或右侧可显示区域712的中心位置离Notch区域713的下边缘的距离X,并可以将可显示区域721的下移的距离设置为大于X+h/2,其中,h为可用区域的预设高度,由此可以使得可显示区域721不被Notch区域713遮挡,也就是说,可以使得可显示区域721的宽度大于左侧可显示区域711和右侧可显示区域712的宽度的总和。As shown in FIG7 , an interface 710 is displayed on the display screen of the electronic device 100, and the interface 710 includes a displayable area 711 on the left, a displayable area 712 on the right, and a Notch area 713. The user can operate on the interface 710 to obtain an interface 720, wherein the interface 720 can be displayed in the form of a floating window, or can be displayed in other types of interface display forms, and the embodiment of the present application does not specifically limit this. Exemplarily, the user can wake up the floating window on the interface 710 by a pull-down operation, thereby obtaining the interface 720. It can be understood that the floating window can also be woken up by other operations, and the present application does not specifically limit this. In response to the user's operation, the electronic device 100 wakes up the floating window to obtain the interface 720. Referring to the interface 720, the interface 720 includes a displayable area 721 and a Notch area 713. Among them, the displayable area 721 can be used to display icons in the displayable area 711 on the left and icons in the displayable area 712 on the right. At this time, the displayable area 721 is located below the Notch area 713, and the width of the displayable area 721 is the width of the display screen, which is much larger than the sum of the widths of the left displayable area 711 and the right displayable area 712, so that the displayable area 721 can accommodate more icons. Among them, the position of the displayable area 721 can be determined based on the distance from the center of the displayable area to the lower edge of the Notch area. Exemplarily, the electronic device 100 can obtain the distance X from the center of the left displayable area 711 or the right displayable area 712 to the lower edge of the Notch area 713, and can set the downward distance of the displayable area 721 to be greater than X+h/2, where h is the preset height of the available area, so that the displayable area 721 is not blocked by the Notch area 713, that is, the width of the displayable area 721 can be greater than the sum of the widths of the left displayable area 711 and the right displayable area 712.

当电子设备100获得界面720后,可以在可显示区域721中重新确定图标,例如,可以在左侧可显示区域711和右侧可显示区域712显示的图标的基础上,增加显示的图标。示例性的,电子设备100可以获取隐藏的可选图标,接着,基于隐藏的可选图标的优先级的高低顺序依次放置入可显示区域721中,例如,从优先级较高的可选图标开始,依次放入,直至可显示区域721无法放置任一个可选图标为止。After the electronic device 100 obtains the interface 720, it can redefine the icons in the displayable area 721. For example, it can add icons to be displayed based on the icons displayed in the left displayable area 711 and the right displayable area 712. Exemplarily, the electronic device 100 can obtain hidden optional icons, and then place the hidden optional icons in the displayable area 721 in order of priority, for example, starting with optional icons with higher priorities, and placing them in order until no optional icon can be placed in the displayable area 721.

当电子设备100确定完所有显示图标后,可以按照预设第一属性显示图标,也就是说,电子设备100可以将可显示区域721中的图形图标以粗体显示,将可显示区域721中的字体图标以宽体显示。由此可以使得图标显示的更醒目,提高用户的观看体验。After the electronic device 100 has determined all the display icons, it can display the icons according to the preset first attribute, that is, the electronic device 100 can display the graphic icons in the displayable area 721 in bold, and display the font icons in the displayable area 721 in wide. This can make the icons more eye-catching and improve the user's viewing experience.

图8为本申请图标显示装置一个实施例的结构示意图,如图8所示,上述图标显示装置80可以包括:获取模块81、计算模块82及显示模块83;FIG8 is a schematic diagram of the structure of an embodiment of the icon display device of the present application. As shown in FIG8 , the icon display device 80 may include: an acquisition module 81, a calculation module 82 and a display module 83;

获取模块81,用于获取Notch区域信息及圆角区域信息;An acquisition module 81 is used to acquire Notch area information and fillet area information;

计算模块82,用于基于Notch区域信息及圆角区域信息确定可用区域的宽度,可用区域用于显示图标;A calculation module 82, used to determine the width of the available area based on the Notch area information and the rounded corner area information, where the available area is used to display icons;

显示模块83,用于基于可用区域的宽度确定在可用区域中显示的图标的显示属性;根据确定的图标的显示属性,在可用区域显示图标。The display module 83 is used to determine the display attributes of the icon displayed in the available area based on the width of the available area; and display the icon in the available area according to the determined display attributes of the icon.

其中一种可能的实现方式中,上述计算模块82还用于确定第一区域的宽度L1=W1-U-S;确定第二区域的宽度L2=W2-U-S;若L1大于或等于预设第一阈值,且L2大于或等于预设第一阈值,则确定可用区域的宽度L=L1+L2,可用区域包括第一区域和第二区域;其中,W1为Notch区域左边缘到电子设备左侧边缘的距离,W2为Notch区域右边缘到电子设备右侧边缘的距离,U为圆角区域的宽度,S为预设安全距离。In one possible implementation, the calculation module 82 is also used to determine the width of the first area L1=W1-U-S; determine the width of the second area L2=W2-U-S; if L1 is greater than or equal to the preset first threshold, and L2 is greater than or equal to the preset first threshold, then determine the width of the available area L=L1+L2, and the available area includes the first area and the second area; wherein W1 is the distance from the left edge of the Notch area to the left edge of the electronic device, W2 is the distance from the right edge of the Notch area to the right edge of the electronic device, U is the width of the rounded area, and S is the preset safety distance.

其中一种可能的实现方式中,上述圆角区域的宽度由公式In one possible implementation, the width of the rounded area is given by the formula

Figure BDA0002795175950000101
Figure BDA0002795175950000101

确定;Sure;

其中,R为圆角区域的半径,H为Notch区域的中心位置离电子设备的顶部的距离,h为可用区域的预设高度。Wherein, R is the radius of the rounded area, H is the distance between the center of the Notch area and the top of the electronic device, and h is the preset height of the available area.

其中一种可能的实现方式中,上述图标包括字体图标和图形图标。In one possible implementation manner, the icons include font icons and graphic icons.

其中一种可能的实现方式中,上述图标为字体图标,上述显示模块83还用于若可用区域的宽度大于或等于预设第二阈值,确定图标的宽窄度为第一数值;若可用区域的宽度大于或等于预设第三阈值,小于第二阈值,确定图标的宽窄为第二数值;其中,第一数值大于第二数值,第三阈值小于第二阈值。In one possible implementation, the icon is a font icon, and the display module 83 is also used to determine the width of the icon as a first value if the width of the available area is greater than or equal to a preset second threshold; if the width of the available area is greater than or equal to a preset third threshold and less than the second threshold, determine the width of the icon as a second value; wherein the first value is greater than the second value, and the third threshold is less than the second threshold.

其中一种可能的实现方式中,上述显示模块83还用于若可用区域的宽度小于第三阈值,确定图标的宽窄度为第三数值;其中,第三数值小于第二数值。In one possible implementation, the display module 83 is further configured to determine the width of the icon to be a third value if the width of the available area is less than a third threshold; wherein the third value is less than the second value.

其中一种可能的实现方式中,上述图标为图形图标,上述显示模块83还用于若可用区域的宽度大于或等于预设第二阈值,确定图标的粗细度为第四数值;若可用区域的宽度大于或等于预设第三阈值,小于第二阈值,确定图标的粗细度为第五数值;其中,第四数值大于第五数值,第三阈值小于第二阈值。In one possible implementation, the icon is a graphic icon, and the display module 83 is also used to determine the thickness of the icon as a fourth value if the width of the available area is greater than or equal to a preset second threshold; if the width of the available area is greater than or equal to a preset third threshold and less than the second threshold, determine the thickness of the icon as a fifth value; wherein the fourth value is greater than the fifth value, and the third threshold is less than the second threshold.

其中一种可能的实现方式中,上述显示模块83还用于若可用区域的宽度小于第二阈值,确定图标的粗细度为第六数值;其中,第六数值小于第五数值。In one possible implementation, the display module 83 is further configured to determine the thickness of the icon to be a sixth value if the width of the available area is less than a second threshold; wherein the sixth value is less than the fifth value.

其中一种可能的实现方式中,上述图标包括常驻图标和可选图标,上述第二阈值由预设第一数量的常驻图标及预设第二数量的可选图标的宽度总和确定;上述第三阈值由预设第三数量的常驻图标的宽度总和确定。In one possible implementation, the icons include resident icons and optional icons, the second threshold is determined by the sum of the widths of a preset first number of resident icons and a preset second number of optional icons; the third threshold is determined by the sum of the widths of a preset third number of resident icons.

其中一种可能的实现方式中,上述可用区域包括第一区域及第二区域,上述装置80还包括:位置确定模块84;In one possible implementation, the available area includes a first area and a second area, and the apparatus 80 further includes: a location determination module 84;

位置确定模块84,用于获取电子设备中每个图标的优先级及宽度;按照优先级由高至低的顺序,基于图标的宽度,第一区域的宽度L1,第二区域的宽度L2依次确定每个图标位于第一区域或位于第二区域。The position determination module 84 is used to obtain the priority and width of each icon in the electronic device; in descending order of priority, based on the width of the icon, the width L1 of the first area, and the width L2 of the second area, each icon is determined to be located in the first area or in the second area.

其中一种可能的实现方式中,上述装置还包括:悬浮显示模块85;In one possible implementation, the device further includes: a floating display module 85;

悬浮显示模块85,用于响应于预设操作,显示悬浮状态栏,悬浮状态栏中至少包括可用区域中显示的图标。The floating display module 85 is used to display a floating status bar in response to a preset operation, where the floating status bar at least includes the icons displayed in the available area.

其中一种可能的实现方式中,上述悬浮状态栏中的字体图标的宽窄度为第一数值;上述悬浮状态栏中的图形图标的粗细度为第四数值。In one possible implementation manner, the width of the font icon in the floating status bar is a first value; the thickness of the graphic icon in the floating status bar is a fourth value.

图8所示实施例提供的图标显示装置可用于执行本申请图1-图7所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。The icon display device provided in the embodiment shown in FIG8 can be used to execute the technical solutions of the method embodiments shown in FIG1 to FIG7 of the present application. Its implementation principle and technical effects can be further referred to the relevant description in the method embodiments.

应理解以上图8所示的图标显示装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be understood that the division of the various modules of the icon display device shown in Figure 8 above is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. In the implementation process, each step of the above method or the above modules can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.

例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Signal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

图9为本申请电子设备100一个实施例的结构示意图。如图9所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serialbus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG9 is a schematic diagram of the structure of an embodiment of the electronic device 100 of the present application. As shown in FIG9, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to implement the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

图9所示的电子设备100可以为电视、智慧屏、平板电脑、笔记本电脑或PC等智能电子设备,本实施例对上述电子设备100的形态不作限定。该电子设备100可以用于执行本申请实施例提供的方法中的功能/步骤,具体可参见本申请方法实施例中的描述,为避免重复,此处适当省略详细描述。The electronic device 100 shown in FIG9 can be a smart electronic device such as a TV, a smart screen, a tablet computer, a laptop computer or a PC. This embodiment does not limit the form of the above electronic device 100. The electronic device 100 can be used to perform the functions/steps in the method provided in the embodiment of the present application. For details, please refer to the description in the embodiment of the method of the present application. To avoid repetition, the detailed description is appropriately omitted here.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例提供的图标显示方法。The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the icon display method provided by the embodiment of the present application.

本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请实施例提供的图标显示方法。The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the icon display method provided by the embodiment of the present application.

本申请实施例提供的电子设备、计算机存储介质或计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The electronic device, computer storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.

本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims (21)

1. An icon display method is applied to electronic equipment and is characterized by comprising the following steps:
acquiring Notch area information and fillet area information;
determining a width of an available area based on the Notch area information and the fillet area information, the available area being used to display an icon;
determining a display attribute of an icon displayed in the available area based on a width of the available area;
displaying the icon in the available area according to the determined display attribute of the icon;
wherein the determining a width of an available area based on the Notch area information and the fillet area information comprises:
determining a width L1= W1-U-S of the first region;
determining a width L2= W2-U-S of the second region;
if the L1 is greater than or equal to a preset first threshold value and the L2 is greater than or equal to a preset first threshold value, determining that the width L = L1+ L2 of an available region, where the available region includes the first region and the second region;
wherein W1 is a distance from a left edge of the Notch region to a left edge of the electronic device, W2 is a distance from a right edge of the Notch region to a right edge of the electronic device, U is a width of the fillet region, and S is a preset safety distance;
wherein the width of the fillet area is represented by the formula
Figure FDA0003879910110000011
Determining;
wherein, R is the radius of the fillet area, H is the distance from the center position of the Notch area to the top of the electronic equipment, and H is the preset height of the usable area.
2. The method of claim 1, wherein the icons include font icons and graphical icons.
3. The method of claim 2, wherein the icon is the font icon, and wherein the determining the display property of the icon displayed in the available area based on the width of the available area comprises:
if the width of the available area is larger than or equal to a preset second threshold value, determining the width of the icon to be a first numerical value;
if the width of the available area is larger than or equal to a preset third threshold value and smaller than the second threshold value, determining the width of the icon to be a second numerical value; wherein the first value is greater than the second value, and the third threshold is less than the second threshold.
4. The method of claim 3, wherein determining display attributes of the icons displayed in the available area based on the width of the available area further comprises:
if the width of the available area is smaller than the third threshold, determining the width of the icon to be a third numerical value; wherein the third value is less than the second value.
5. The method of claim 2, wherein the icon is the graphical icon, and wherein determining the display attribute of the icon displayed in the usable area based on the width of the usable area comprises:
if the width of the available area is larger than or equal to a preset second threshold value, determining the thickness of the icon as a fourth numerical value;
if the width of the available area is larger than or equal to a preset third threshold value and smaller than the second threshold value, determining the thickness of the icon to be a fifth numerical value; wherein the fourth value is greater than the fifth value, and the third threshold is less than the second threshold.
6. The method of claim 5, wherein determining display attributes of the icons displayed in the available area based on the width of the available area further comprises:
if the width of the available area is smaller than the second threshold value, determining the thickness of the icon as a sixth numerical value; wherein the sixth numerical value is less than the fifth numerical value.
7. The method of any of claims 3-6, wherein the icons include a resident icon and a selectable icon,
the second threshold value is determined by the sum of the widths of a preset first number of resident icons and a preset second number of selectable icons;
the third threshold is determined by a sum of widths of a preset third number of resident icons.
8. The method of claim 1, wherein the available area comprises a first area and a second area, and wherein the method further comprises, before the available area displays the icon, according to the determined display attribute of the icon:
acquiring the priority and the width of each icon in the electronic equipment;
and sequentially determining that each icon is located in the first area or the second area according to the priority from high to low and based on the width of the icon, the width L1 of the first area and the width L2 of the second area.
9. The method of claim 1, further comprising:
and responding to a preset operation, and displaying a suspension state bar, wherein the suspension state bar at least comprises icons displayed in the available area.
10. The method of claim 9, wherein the font icon in the hover status bar has a width of a first value; and the thickness of the graphic icon in the suspension state column is a fourth numerical value.
11. An electronic device, comprising:
a display screen; a processor; a memory; and a computer program, wherein the computer program is stored in the memory, the computer program comprising instructions which, when executed by the electronic device, cause the electronic device to perform the steps of:
acquiring Notch area information and fillet area information;
determining a width of an available area based on the Notch area information and the fillet area information, the available area being used to display an icon;
determining display properties of icons displayed in the available area based on a width of the available area;
displaying the icon in the available area according to the determined display attribute of the icon;
wherein the determining a width of an available area based on the Notch area information and the fillet area information comprises:
determining a width of the first region L1= W1-U-S;
determining a width L2= W2-U-S of the second region;
if the L1 is greater than or equal to a preset first threshold value and the L2 is greater than or equal to a preset first threshold value, determining that the width L = L1+ L2 of an available region, where the available region includes the first region and the second region;
wherein W1 is a distance from a left edge of the Notch region to a left edge of the electronic device, W2 is a distance from a right edge of the Notch region to a right edge of the electronic device, U is a width of the fillet region, and S is a preset safety distance;
wherein the width of the fillet area is represented by the formula
Figure FDA0003879910110000031
Determining;
wherein, R is a radius of the fillet area, H is a distance from a center position of the Notch area to a top of the electronic device, and H is a preset height of the usable area.
12. The electronic device of claim 11, wherein the icons include font icons and graphical icons.
13. The electronic device of claim 12, wherein the icon is the font icon, and wherein determining the display properties of the icon displayed in the available area based on the width of the available area comprises:
if the width of the available area is larger than or equal to a preset second threshold value, determining the width of the icon to be a first numerical value;
if the width of the available area is larger than or equal to a preset third threshold value and smaller than the second threshold value, determining the width of the icon to be a second numerical value; wherein the first value is greater than the second value and the third threshold is less than the second threshold.
14. The electronic device of claim 13, wherein determining display attributes of icons displayed in the available area based on a width of the available area further comprises:
if the width of the available area is smaller than the third threshold, determining the width of the icon to be a third numerical value; wherein the third value is less than the second value.
15. The electronic device of claim 12, wherein the icon is the graphical icon, and wherein determining display attributes of the icon displayed in the available area based on the width of the available area comprises:
if the width of the available area is larger than or equal to a preset second threshold value, determining the thickness of the icon as a fourth numerical value;
if the width of the available area is larger than or equal to a preset third threshold value and smaller than the second threshold value, determining the thickness of the icon to be a fifth numerical value; wherein the fourth value is greater than the fifth value, and the third threshold is less than the second threshold.
16. The electronic device of claim 15, wherein determining display attributes of icons displayed in the available area based on the width of the available area further comprises:
if the width of the available area is smaller than the second threshold value, determining the thickness of the icon as a sixth numerical value; wherein the sixth value is less than the fifth value.
17. The electronic device according to any one of claims 13-16, wherein the icons include a resident icon and a selectable icon, and the second threshold is determined by a sum of widths of a preset first number of resident icons and a preset second number of selectable icons; the third threshold is determined by the sum of the widths of a preset third number of resident icons.
18. The electronic device of claim 11, wherein the available area comprises a first area and a second area, and wherein the instructions, when executed by the electronic device, cause the electronic device to perform the following steps prior to the step of displaying the icon in the available area:
acquiring the priority and the width of each icon in the electronic equipment;
and sequentially determining that each icon is located in the first area or the second area according to the priority from high to low and based on the width of the icon, the width L1 of the first area and the width L2 of the second area.
19. The electronic device of claim 11, wherein the instructions, when executed by the electronic device, cause the electronic device to further perform the steps of:
and responding to a preset operation, and displaying a suspension state bar, wherein the suspension state bar at least comprises icons displayed in the available area.
20. The electronic device of claim 19, wherein the font icon in the hover status bar has a width of a first numerical value; and the thickness of the graphic icon in the suspension state column is a fourth numerical value.
21. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to execute the icon display method according to any one of claims 1 to 10.
CN202011328980.XA 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium Active CN114610195B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310329595.4A CN116450006B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium
CN202011328980.XA CN114610195B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011328980.XA CN114610195B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310329595.4A Division CN116450006B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114610195A CN114610195A (en) 2022-06-10
CN114610195B true CN114610195B (en) 2023-04-07

Family

ID=81856073

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310329595.4A Active CN116450006B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium
CN202011328980.XA Active CN114610195B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310329595.4A Active CN116450006B (en) 2020-11-24 2020-11-24 Icon display method, electronic device and storage medium

Country Status (1)

Country Link
CN (2) CN116450006B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117229A (en) * 2018-08-03 2019-01-01 西安蜂语信息科技有限公司 Screen partition domain display methods and device
CN111190672A (en) * 2019-12-20 2020-05-22 深圳市优必选科技股份有限公司 UI interface adaptation method of electronic device, electronic device and storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005427A (en) * 2014-04-23 2015-10-28 中兴通讯股份有限公司 Window management method and apparatus
CN106445392A (en) * 2016-10-31 2017-02-22 维沃移动通信有限公司 Operating method of status bar icon and mobile terminal
CN106817451B (en) * 2017-02-23 2020-02-18 京东方科技集团股份有限公司 Mobile terminal touch display structure, manufacturing method thereof and mobile terminal
US9959027B1 (en) * 2017-07-03 2018-05-01 Essential Products, Inc. Displaying an image on an irregular screen
WO2019033385A1 (en) * 2017-08-18 2019-02-21 华为技术有限公司 Display method and terminal
CN107688422B (en) * 2017-09-05 2020-06-26 Oppo广东移动通信有限公司 Notification message display method and device
CN108153503B (en) * 2017-12-20 2021-04-09 Oppo广东移动通信有限公司 Display control method and related product
CN110221736B (en) * 2018-03-02 2021-02-02 Oppo广东移动通信有限公司 Icon processing method and device, mobile terminal and storage medium
CN110417984B (en) * 2018-04-27 2021-10-08 中兴通讯股份有限公司 Method, device and storage medium for realizing operation in special-shaped area of screen
CN108762613B (en) * 2018-05-24 2021-02-05 维沃移动通信有限公司 State icon display method and mobile terminal
CN109062472A (en) * 2018-07-16 2018-12-21 维沃移动通信有限公司 A kind of display control method and mobile terminal of status bar
CN109407920B (en) * 2018-09-27 2021-05-25 维沃移动通信有限公司 Status icon display method, status icon processing method and related equipment
CN110007995B (en) * 2019-03-29 2021-10-22 联想(北京)有限公司 Information processing method, electronic equipment and computer storage medium
CN110221742A (en) * 2019-06-06 2019-09-10 深圳传音制造有限公司 Mobile terminal and the method for showing notice on mobile terminals
CN111596982B (en) * 2020-04-20 2024-04-02 维沃移动通信有限公司 Display method, display device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117229A (en) * 2018-08-03 2019-01-01 西安蜂语信息科技有限公司 Screen partition domain display methods and device
CN111190672A (en) * 2019-12-20 2020-05-22 深圳市优必选科技股份有限公司 UI interface adaptation method of electronic device, electronic device and storage medium

Also Published As

Publication number Publication date
CN114610195A (en) 2022-06-10
CN116450006B (en) 2024-09-13
CN116450006A (en) 2023-07-18

Similar Documents

Publication Publication Date Title
EP4024168A1 (en) Hand gesture interaction method and apparatus, and terminal device
EP3813352B1 (en) Photographing method and electronic device
US12095941B2 (en) Message notification method and electronic device
WO2021208723A1 (en) Full-screen display method and apparatus, and electronic device
WO2021057626A1 (en) Image processing method, apparatus, device, and computer storage medium
WO2020233593A1 (en) Method for displaying foreground element, and electronic device
CN116048831B (en) Target signal processing method and electronic device
CN112527220B (en) Electronic equipment display method and electronic equipment
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN114095602B (en) Index display method, electronic device, and computer-readable storage medium
CN116048769B (en) Memory recycling method and device and terminal equipment
CN114610195B (en) Icon display method, electronic device and storage medium
CN116232959B (en) Network quality detection method and device
CN116233599B (en) Video recording mode recommendation method and electronic device
WO2023020420A1 (en) Volume display method, electronic device, and storage medium
WO2024114257A1 (en) Transition dynamic effect generation method and electronic device
WO2022105670A1 (en) Display method and terminal
CN115550714B (en) Subtitle display method and related equipment
WO2023029964A1 (en) Application component display method, electronic device, and storage medium
EP4310664A1 (en) Audio output method, media file recording method, and electronic device
WO2024055881A1 (en) Clock synchronization method, electronic device, system, and storage medium
WO2025011069A1 (en) Image processing method for camera application and related device
WO2024234730A1 (en) Fatigue reminding method and apparatus, and electronic device
CN118824115A (en) Folding screen display method, device and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China