CN113867672A - Screen adaptation method, device, computer equipment and storage medium - Google Patents
Screen adaptation method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113867672A CN113867672A CN202111065982.9A CN202111065982A CN113867672A CN 113867672 A CN113867672 A CN 113867672A CN 202111065982 A CN202111065982 A CN 202111065982A CN 113867672 A CN113867672 A CN 113867672A
- Authority
- CN
- China
- Prior art keywords
- screen
- width
- model information
- preset
- acquiring
- 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.)
- Pending
Links
- 230000006978 adaptation Effects 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 29
- 238000010586 diagram Methods 0.000 description 8
- 230000000007 visual effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,具体而言,涉及一种屏幕适配方法、装置、计算机设备和存储介质。The present application relates to the field of computer technology, and in particular, to a screen adaptation method, apparatus, computer device, and storage medium.
背景技术Background technique
移动终端设备在现今社会中扮演着越来越重要的角色,并深入到人们日常生活的各个方面,为人们的生活带来信息、乐趣以及衣食住行的便利。如今移动终端设备的屏幕分辨率尺寸与屏幕宽高比日新月异,市面上出现了刘海屏,设计师需要针对刘海屏来进行针对性的界面适配。传统方式中需要调用Android、IOS系统层接口,获取设备信息,进行屏幕适配,流程较麻烦。因此,如何简化屏幕适配流程,以提高屏幕适配效率成为目前需要解决的一个技术问题。Mobile terminal equipment plays an increasingly important role in today's society, and penetrates into all aspects of people's daily life, bringing information, fun, and convenience to people's lives. Nowadays, the screen resolution size and screen aspect ratio of mobile terminal devices are changing with each passing day, and Liu Haiping has appeared on the market. Designers need to make targeted interface adaptations for Liu Haiping. In the traditional method, it is necessary to call the Android and IOS system layer interfaces to obtain device information and perform screen adaptation, which is a cumbersome process. Therefore, how to simplify the screen adaptation process to improve the screen adaptation efficiency has become a technical problem that needs to be solved at present.
发明内容SUMMARY OF THE INVENTION
本申请的主要目的在于提供一种能够简化屏幕适配流程,以提高屏幕适配效率的屏幕适配方法、装置、计算机设备和存储介质。The main purpose of the present application is to provide a screen adaptation method, apparatus, computer equipment and storage medium that can simplify the screen adaptation process and improve the screen adaptation efficiency.
为了实现上述目的,根据本申请的一个方面,提供了一种屏幕适配方法。In order to achieve the above object, according to an aspect of the present application, a screen adaptation method is provided.
根据本申请的屏幕适配方法包括:The screen adaptation method according to the present application includes:
获取终端设备的设备型号信息;Obtain the device model information of the terminal device;
在预设配置表中获取所述设备型号信息对应的安全区宽度,以及在预设注册表中获取所述设备型号信息对应的刘海宽度;Obtain the width of the safe area corresponding to the device model information in the preset configuration table, and obtain the notch width corresponding to the device model information in the preset registry;
获取所述终端设备的屏幕尺寸;Obtain the screen size of the terminal device;
根据所述安全区宽度、所述刘海宽度以及所述屏幕尺寸,对所述终端设备的屏幕安全区进行适配处理;Perform adaptation processing on the screen safe area of the terminal device according to the safe area width, the notch width and the screen size;
对所述终端设备的屏幕异形区域进行填充。Filling the special-shaped area of the screen of the terminal device.
在其中一个实施例中,所述根据所述安全区宽度、所述刘海宽度以及所述屏幕尺寸,对所述终端设备的屏幕安全区进行适配处理包括:In one of the embodiments, the adapting the screen safe area of the terminal device according to the safe area width, the notch width and the screen size includes:
根据所述刘海宽度以及所述屏幕尺寸计算锚点信息;Calculate anchor point information according to the notch width and the screen size;
根据所述锚点信息对所述终端设备的屏幕安全区进行适配处理。The screen safe area of the terminal device is adapted according to the anchor point information.
在其中一个实施例中,所述对所述终端设备的屏幕异形区域进行填充包括:In one of the embodiments, the filling in the special-shaped area of the screen of the terminal device includes:
根据所述锚点信息新建以所述刘海宽度为宽度,以所述屏幕尺寸中的屏幕高度为高度的黑色图片;Create a black picture with the width of the bangs as the width and the height of the screen in the screen size as the height according to the anchor point information;
根据所述黑色图片填充所述终端设备的屏幕异形区域。Fill the special-shaped area of the screen of the terminal device according to the black picture.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
识别所述预设配置表中是否存在所述设备型号信息对应的安全区宽度;Identifying whether there is a security zone width corresponding to the device model information in the preset configuration table;
若存在,则获取所述设备型号信息对应的安全区宽度;If it exists, obtain the width of the security zone corresponding to the device model information;
若不存在,则调用预设引擎接口,获取所述设备型号信息对应的安全区宽度。If it does not exist, the preset engine interface is called to obtain the security zone width corresponding to the device model information.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
识别所述预设注册表中是否存在所述设备型号信息对应的刘海宽度;Identify whether there is a notch width corresponding to the device model information in the preset registry;
若存在,则获取所述设备型号信息对应的刘海宽度;If it exists, obtain the width of the bangs corresponding to the device model information;
若不存在,则调用预设引擎接口,获取所述设备型号信息对应的刘海宽度。If it does not exist, the preset engine interface is called to obtain the notch width corresponding to the device model information.
在其中一个实施例中,所述获取终端设备的设备型号信息包括:In one embodiment, the acquiring device model information of the terminal device includes:
当检测到目标应用程序启动时,获取终端设备的设备型号信息;或者,When it is detected that the target application is started, obtain the device model information of the terminal device; or,
当检测到目标应用程序完成安装时,获取终端设备的设备型号信息。When it is detected that the target application has been installed, the device model information of the terminal device is obtained.
在其中一个实施例中,在所述获取终端设备的设备型号信息之前,所述方法还包括:In one of the embodiments, before acquiring the device model information of the terminal device, the method further includes:
根据预设设备型号确定对应的安全区宽度;Determine the corresponding safety zone width according to the preset device model;
将所述预设设备型号以及对应的安全区宽度进行键值存储,生成预设配置表。The preset device model and the corresponding security zone width are key-valued to generate a preset configuration table.
为了实现上述目的,根据本申请的另一方面,提供了一种屏幕适配装置。In order to achieve the above object, according to another aspect of the present application, a screen adaptation device is provided.
根据本申请的屏幕适配装置包括:The screen adaptation device according to the present application includes:
设备型号获取模块,用于获取终端设备的设备型号信息;The device model obtaining module is used to obtain the device model information of the terminal device;
第一参数获取模块,用于在预设配置表中获取所述设备型号信息对应的安全区宽度,以及在预设注册表中获取所述设备型号信息对应的刘海宽度;a first parameter obtaining module, configured to obtain the safety zone width corresponding to the device model information in a preset configuration table, and obtain the notch width corresponding to the device model information in a preset registry;
第二参数获取模块,用于获取所述终端设备的屏幕尺寸;a second parameter acquisition module, configured to acquire the screen size of the terminal device;
屏幕适配模块,用于根据所述安全区宽度、所述刘海宽度以及所述屏幕尺寸,对所述终端设备的屏幕安全区进行适配处理;a screen adaptation module, configured to perform adaptation processing on the screen safe area of the terminal device according to the safe area width, the notch width and the screen size;
屏幕填充模块,用于对所述终端设备的屏幕异形区域进行填充。The screen filling module is used to fill the special-shaped area of the screen of the terminal device.
一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述各个方法实施例中的步骤。A computer device includes a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps in each of the foregoing method embodiments are implemented.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述各个方法实施例中的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in each of the foregoing method embodiments.
上述屏幕适配方法、装置、计算机设备和存储介质,通过在预设配置表中获取设备型号信息对应的安全区宽度以及在预设注册表中获取设备型号信息对应的刘海宽度,并在获取终端设备的屏幕尺寸后,根据安全区宽度、刘海宽度以及屏幕尺寸,对终端设备的屏幕安全区进行适配处理,进而对终端设备的屏幕异形区域进行填充。可以跳过操作系统层,通过调用预设配置表和预设注册表即可获取设备信息,进行后续的屏幕适配处理,简化了屏幕适配流程,提高了屏幕适配效率。而且预设配置表可以进行更新,方便后期开发和维护工作,更加灵活,也可以节省大量的人力和时间,进而节约成本。另外,本实施例可以兼容所有移动设备具有刘海屏的屏幕,兼容性更高。通过对终端设备的屏幕异形区域进行填充,视觉效果更好。The above-mentioned screen adaptation method, device, computer equipment and storage medium, obtain the width of the safe area corresponding to the device model information in the preset configuration table and the notch width corresponding to the device model information in the preset registry, and obtain the terminal. After the screen size of the device is determined, the screen safe area of the terminal device is adapted according to the width of the safe area, the width of the bangs, and the screen size, and then the special-shaped area of the screen of the terminal device is filled. The operating system layer can be skipped, device information can be obtained by calling the preset configuration table and the preset registry, and subsequent screen adaptation processing can be performed, which simplifies the screen adaptation process and improves the screen adaptation efficiency. Moreover, the preset configuration table can be updated, which is convenient for later development and maintenance work, more flexible, and saves a lot of manpower and time, thereby saving costs. In addition, this embodiment can be compatible with screens of all mobile devices having a notch screen, and the compatibility is higher. By filling in the special-shaped area of the screen of the terminal device, the visual effect is better.
附图说明Description of drawings
构成本申请的一部分的附图用来提供对本申请的进一步理解,使得本申请的其它特征、目的和优点变得更明显。本申请的示意性实施例附图及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The accompanying drawings, which constitute a part of this application, are used to provide a further understanding of the application and make other features, objects and advantages of the application more apparent. The accompanying drawings and descriptions of the exemplary embodiments of the present application are used to explain the present application, and do not constitute an improper limitation of the present application. In the attached image:
图1是一个实施例中屏幕适配方法的流程示意图;1 is a schematic flowchart of a screen adaptation method in one embodiment;
图2为一个实施例中终端设备的刘海屏的安全区信息示意图;2 is a schematic diagram of the safety zone information of Liu Haiping of a terminal device in one embodiment;
图3为一个实施例中终端设备的屏幕填充后的效果示意图;3 is a schematic diagram of the effect after the screen of the terminal device is filled in one embodiment;
图4为一个实施例中屏幕适配装置的结构示意图;4 is a schematic structural diagram of a screen adaptation device in one embodiment;
图5为一个实施例中计算机设备的内部结构图。FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
需要说明的是,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to expressly Instead, those steps or elements listed may include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
在一个实施例中,如图1所示,提供了一种屏幕适配方法,该方法可以应用于终端,包括如下的步骤102至步骤110:In one embodiment, as shown in FIG. 1, a screen adaptation method is provided, and the method can be applied to a terminal, including the following
步骤102,获取终端设备的设备型号信息。Step 102: Obtain device model information of the terminal device.
终端设备可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑。例如,终端设备是采用刘海屏的终端设备。刘海屏属于异形屏的一种,异形屏是指屏幕的形状,或屏幕可显示区域的形状是除矩形之外的其他形状。每个厂商在对不同机型的刘海屏进行设计时也可能存在不同,因此,刘海屏终端设备的用户界面在显示过程中需要进行用户界面适配。The terminal device can be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers. For example, the terminal device is a terminal device using Liu Haiping. Liu Haiping is a type of special-shaped screen. The special-shaped screen refers to the shape of the screen, or the shape of the displayable area of the screen is a shape other than a rectangle. Each manufacturer may also have different designs for different models of Liu Haiping. Therefore, the user interface of Liu Haiping terminal equipment needs to be adapted to the user interface during the display process.
设备型号信息可以用于标识终端设备。以智能手机为例,每台智能手机出厂时,都会有一个设备型号,根据该设备型号可以获取终端设备对应的配置信息。配置信息可以包括安全区参数、屏幕参数等。例如,获取小米8收集的设备型号信息是Xiaomi MI 8。当确定一个手机的型号信息后,该手机的安全区参数、屏幕参数等信息都会确定。当终端设备的设备型号信息确定,该终端设备的硬件信息已经确定,即屏幕显示区的大小及位置已经确定,需要将用户界面与终端设备的屏幕显示区适配。Device model information can be used to identify terminal devices. Taking a smartphone as an example, each smartphone will have a device model when it leaves the factory, and configuration information corresponding to the terminal device can be obtained according to the device model. The configuration information may include security zone parameters, screen parameters, and the like. For example, obtaining the device model information collected by Xiaomi 8 is Xiaomi MI 8. When the model information of a mobile phone is determined, the security zone parameters, screen parameters and other information of the mobile phone will be determined. When the device model information of the terminal device is determined, the hardware information of the terminal device has been determined, that is, the size and position of the screen display area have been determined, and the user interface needs to be adapted to the screen display area of the terminal device.
在其中一个实施例中,获取终端设备的设备型号信息包括:当检测到目标应用程序启动时,获取终端设备的设备型号信息;或者,当检测到目标应用程序完成安装时,获取终端设备的设备型号信息。In one of the embodiments, acquiring the device model information of the terminal device includes: when it is detected that the target application is started, acquiring the device model information of the terminal device; or, when it is detected that the target application is installed, acquiring the device of the terminal device Model information.
当终端设备的处理器上执行应用程序时,通过终端设备提供对应的图形用户界面(以下简称用户界面),用户界面可以包括操作区。目标应用程序可以是需要进行屏幕适配的应用。例如,目标应用程序可以是游戏应用程序、视频应用程序等。目标应用程序在终端设备运行时,该目标应用程序可以具备识别终端设备的设备型号信息的权限,基于该权限,可以获取终端设备的设备型号信息。具体的,当检测到目标应用程序在终端设备上完成安装时或者初次启动时,又或者每次启动应用程序时,获取终端设备的设备型号信息。在本实施例中,通过对目标应用程序的安装以及启动进行实时检测,可以快速获取终端设备的设备型号信息。When the application program is executed on the processor of the terminal device, a corresponding graphical user interface (hereinafter referred to as the user interface) is provided by the terminal device, and the user interface may include an operation area. The target application may be an application requiring screen adaptation. For example, the target application may be a game application, a video application, and the like. When the target application is running on the terminal device, the target application may have the right to identify the device model information of the terminal device, and based on the right, the device model information of the terminal device may be obtained. Specifically, when it is detected that the target application is installed on the terminal device or is started for the first time, or every time the application is started, the device model information of the terminal device is obtained. In this embodiment, by performing real-time detection on the installation and startup of the target application, the device model information of the terminal device can be quickly acquired.
步骤104,在预设配置表中获取设备型号信息对应的安全区宽度,以及在预设注册表中获取设备型号信息对应的刘海宽度。Step 104: Obtain the width of the safe area corresponding to the device model information in the preset configuration table, and obtain the notch width corresponding to the device model information in the preset registry.
在本实施例中,终端中预先存储有预设配置表(本地配置表),预设配置表中记录有终端设备的设备型号信息以及设备型号信息对应的安全区参数。安全区参数可以包括安全区宽度。其中,安全区参数可以是由技术人员预先设置并填写到预设配置表中的。终端中还存储有预设注册表(本地注册表),预设注册表中记录有终端设备的设备型号信息以及设备型号信息对应的刘海宽度。In this embodiment, a preset configuration table (local configuration table) is pre-stored in the terminal, and the preset configuration table records device model information of the terminal device and security zone parameters corresponding to the device model information. Safe area parameters may include safe area width. The parameters of the safety zone may be preset by the technician and filled in the preset configuration table. A preset registry (local registry) is also stored in the terminal, and the device model information of the terminal device and the notch width corresponding to the device model information are recorded in the preset registry.
示例性的,终端设备的刘海屏的安全区信息示意图可以如图2所示。其中,安全区信息可以表示为Rect(X,Y,width,height),X表示刘海宽度,Y表示刘海高度,width表示安全区宽度,height表示安全区高度。终端设备的屏幕安全区为矩形区域。Exemplarily, a schematic diagram of the security zone information of Liu Haiping of the terminal device may be as shown in FIG. 2 . The safe area information may be represented as Rect(X, Y, width, height), where X represents the width of the bangs, Y represents the height of the bangs, width represents the width of the safe area, and height represents the height of the safe area. The screen safe area of the terminal device is a rectangular area.
在获取到终端设备的设备型号信息后,可以通过调用引擎接口SystemInfo.deviceModel,读取预先存储的预设配置表,以获取设备型号信息对应的安全区宽度。同时,通过调用引擎接口PlayerPrefs接口,访问预设注册表,以获取设备型号信息对应的刘海宽度。After the device model information of the terminal device is obtained, the pre-stored preset configuration table can be read by calling the engine interface SystemInfo.deviceModel to obtain the security zone width corresponding to the device model information. At the same time, by calling the PlayerPrefs interface of the engine interface, the preset registry is accessed to obtain the notch width corresponding to the device model information.
在其中一个实施例中,上述方法还包括:识别预设注册表中是否存在设备型号信息对应的安全区宽度;若存在,则获取设备型号信息对应的安全区宽度;若不存在,则调用预设引擎接口,获取设备型号信息对应的安全区宽度。In one embodiment, the above method further includes: identifying whether there is a security zone width corresponding to the device model information in the preset registry; if so, acquiring the security zone width corresponding to the device model information; if not, calling the preset Set the engine interface to obtain the security zone width corresponding to the device model information.
终端设备可以调用引擎接口SystemInfo.deviceModel,读取预先存储的预设配置表,识别预设配置表中是否存在设备型号信息对应的安全区宽度,若存在,则使用该安全区宽度进行安全区自适应。若不存在,则通过引擎接口Screen.SafeArea获取设备型号信息对应的安全区宽度。The terminal device can call the engine interface SystemInfo.deviceModel, read the pre-stored preset configuration table, and identify whether there is a security zone width corresponding to the device model information in the preset configuration table. adapt. If it does not exist, the width of the safe area corresponding to the device model information is obtained through the engine interface Screen.SafeArea.
在其中一个实施例中,上述方法还包括:识别预设配置表中是否存在设备型号信息对应的刘海宽度;若存在,则获取设备型号信息对应的刘海宽度;若不存在,则调用预设引擎接口,获取设备型号信息对应的刘海宽度。In one embodiment, the above method further includes: identifying whether there is a notch width corresponding to the device model information in the preset configuration table; if so, acquiring the notch width corresponding to the device model information; if not, calling a preset engine interface to obtain the notch width corresponding to the device model information.
终端设备通过调用引擎接口PlayerPrefs接口,访问预设注册表,识别预设注册表中是否存在当前设备型号对应的刘海宽度,如果存在,则若存在,则使用该刘海宽度进行安全区自适应,如果不存在,则通过引擎接口Screen.SafeArea接口获取设备型号信息对应的刘海宽度。The terminal device accesses the preset registry by calling the PlayerPrefs interface of the engine interface, and identifies whether there is a notch width corresponding to the current device model in the preset registry. If it does not exist, the notch width corresponding to the device model information is obtained through the engine interface Screen.SafeArea interface.
在其中一个实施例中,在获取终端设备的设备型号信息之前,上述方法还包括生成预设配置表的步骤,该步骤包括:根据预设设备型号确定对应的安全区宽度;将预设设备型号以及对应的安全区宽度进行键值存储,生成预设配置表。In one embodiment, before acquiring the device model information of the terminal device, the above-mentioned method further includes the step of generating a preset configuration table, and the step includes: determining the corresponding security zone width according to the preset device model; and the corresponding security zone width for key-value storage to generate a preset configuration table.
终端设备可以获取预设设备型号,根据预设设备型号确定对应的安全区宽度。从而将预设设备型号以及对应的安全区宽度进行键值存储,具体的,创建一张key为预设设备型号(例如,Xiaomi Mi 8),value为安全区宽度的预设配置表,方便后续查找配置使用。The terminal device can obtain the preset device model, and determine the corresponding security zone width according to the preset device model. In this way, the preset device model and the corresponding security zone width are stored as key values. Specifically, a preset configuration table with the key as the preset device model (for example, Xiaomi Mi 8) and the value as the security zone width is created, which is convenient for follow-up. Find the configuration to use.
步骤106,获取终端设备的屏幕尺寸。Step 106: Obtain the screen size of the terminal device.
屏幕尺寸用于表示屏幕显示区的形状大小。屏幕尺寸包括屏幕宽度和屏幕高度。具体的,在本实施例中,可以通过调用Screen.width接口,获取终端设备的刘海屏的屏幕宽度,通过调用Screen.height接口,获取终端设备的刘海屏的屏幕高度。Screen size is used to represent the shape size of the screen display area. Screen size includes screen width and screen height. Specifically, in this embodiment, the screen width of the notch of the terminal device can be obtained by calling the Screen.width interface, and the screen height of the notch of the terminal device can be obtained by calling the Screen.height interface.
步骤108,根据安全区宽度、刘海宽度以及屏幕尺寸,对终端设备的屏幕安全区进行适配处理。Step 108: Perform adaptation processing on the screen safe area of the terminal device according to the safe area width, the notch width and the screen size.
屏幕安全区是指终端设备的刘海屏中的安全区。由于刘海屏贴近贴近屏幕边缘的用户界面(User Interface,简称UI)显示不全,需要将用户界面与终端设备的屏幕显示区适配。具体的,需要将用户界面的操作区与终端设备的屏幕安全区进行适配处理,在终端设备的屏幕安全区显示用户界面的操作区。The screen safe area refers to the safe area in the notch of the terminal device. Because the user interface (User Interface, UI for short) that is close to the edge of the screen is not fully displayed, the user interface needs to be adapted to the screen display area of the terminal device. Specifically, the operation area of the user interface needs to be adapted to the screen safe area of the terminal device, and the operation area of the user interface is displayed in the screen safe area of the terminal device.
在其中一个实施例中,根据安全区宽度、刘海宽度以及屏幕尺寸,对所述终端设备的屏幕安全区进行适配处理包括:根据刘海宽度以及屏幕尺寸计算锚点信息;根据锚点信息对终端设备的屏幕安全区进行适配处理。In one embodiment, adapting the screen safe area of the terminal device according to the width of the safe area, the width of the notch and the screen size includes: calculating anchor point information according to the width of the notch and the screen size; The screen safe area of the device is adapted.
根据获取到的刘海宽度以及屏幕尺寸,来计算锚点信息。锚点信息可以表示为(AnchorMin x,AnchorMin y,AnchorMax x,AnchorMax y)。其中,x=刘海宽度,y=0,w=屏幕宽度–x,h=屏幕高度–y,AnchorMin x=x/屏幕宽度,AnchorMin y=y/屏幕高度,AnchorMax x=(x+w)/屏幕宽度,AnchorMax y=(y+h)/屏幕高度。从而可以将刘海宽度以及屏幕尺寸代入上述公式,计算得到锚点信息。之后,将锚点信息赋值给UI画布,即做到了安全区自适应,实现将用户界面的操作区与终端设备的屏幕安全区进行适配处理。进一步的,将用户界面的操作区按照锚点信息,进行缩放处理,实现用户界面的操作区与终端设备的屏幕安全区进行适配处理。在本实施例中,根据刘海宽度以及屏幕尺寸计算锚点信息,根据锚点信息对终端设备的屏幕安全区进行适配处理,能够将用户界面的操作区与终端设备的屏幕安全区进行适配,解决了贴近屏幕边缘的用户界面显示不全的问题。The anchor point information is calculated according to the obtained bangs width and screen size. The anchor point information can be expressed as (AnchorMin x, AnchorMin y, AnchorMax x, AnchorMax y). Among them, x=bang width, y=0, w=screen width-x, h=screen height-y, AnchorMin x=x/screen width, AnchorMin y=y/screen height, AnchorMax x=(x+w)/ Screen width, AnchorMax y=(y+h)/screen height. Therefore, the width of the bangs and the screen size can be substituted into the above formula to calculate the anchor point information. After that, the anchor point information is assigned to the UI canvas, that is, the self-adaptation of the safe area is realized, and the operation area of the user interface is adapted to the screen safe area of the terminal device. Further, the operation area of the user interface is scaled according to the anchor point information, so as to realize the adaptation processing of the operation area of the user interface and the screen safe area of the terminal device. In this embodiment, the anchor point information is calculated according to the width of the bangs and the screen size, and the screen safe area of the terminal device is adapted according to the anchor point information, so that the operation area of the user interface can be adapted to the screen safe area of the terminal device. , which resolves an issue where the UI near the edge of the screen is not fully displayed.
步骤110,对终端设备的屏幕异形区域进行填充。
在锚点信息赋值结束后,可以通过新建黑色图片对终端设备的刘海屏的异形区域进行填充。After the assignment of the anchor point information is completed, the special-shaped area of the notch of the terminal device can be filled by creating a new black image.
在其中一个实施例中,对终端设备的屏幕异形区域进行填充包括:根据锚点信息新建以刘海宽度为宽度,以屏幕尺寸中的屏幕高度为高度的黑色图片;根据黑色图片填充终端设备的屏幕异形区域。In one of the embodiments, filling the special-shaped area of the screen of the terminal device includes: creating a black image with the width of the bangs as the width and the height of the screen in the screen size as the height according to the anchor point information; filling the screen of the terminal device according to the black image Alien area.
将锚点信息赋值给UI画布后,通过UI画新建两个黑色图片,也可以称为UI Image。黑色图片的形状大小是以刘海宽度为宽度,以屏幕尺寸中的屏幕高度为高度。终端设备的屏幕异形区域是指矩形区域以外的区域,包括刘海屏的刘海区域以及与刘海区域相对称的屏幕右侧区域。将黑色图片填充至终端设备的屏幕异形区域,终端设备的屏幕填充后的效果示意图可以如图3所示。其中,屏幕空白区域中的框表示安全区。空白区域中安全区以外的区域为屏幕边界区域。通过对刘海屏进行填充处理,提高了视觉效果。After assigning the anchor point information to the UI canvas, create two black images through UI painting, which can also be called UI Image. The shape size of the black picture is the width of the bangs and the height of the screen in the screen size. The special-shaped area of the screen of the terminal device refers to the area other than the rectangular area, including the notch area of Liu Haiping and the area on the right side of the screen that is symmetrical with the notch area. Fill the black picture into the screen special-shaped area of the terminal device, and a schematic diagram of the effect after filling the screen of the terminal device may be as shown in FIG. 3 . Among them, the box in the blank area of the screen represents the safe area. The area outside the safe area in the blank area is the screen boundary area. By filling the bangs screen, the visual effect is improved.
在本实施例中,通过在预设配置表中获取设备型号信息对应的安全区宽度以及在预设注册表中获取设备型号信息对应的刘海宽度,并在获取终端设备的屏幕尺寸后,根据安全区宽度、刘海宽度以及屏幕尺寸,对终端设备的屏幕安全区进行适配处理,进而对终端设备的屏幕异形区域进行填充。可以跳过操作系统层,通过调用预设配置表和预设注册表即可获取设备信息,进行后续的屏幕适配处理,简化了屏幕适配流程,提高了屏幕适配效率。而且预设配置表可以进行更新,方便后期开发和维护工作,更加灵活,也可以节省大量的人力和时间,进而节约成本。另外,本实施例可以兼容所有移动设备具有刘海屏的屏幕,兼容性更高。通过对终端设备的屏幕异形区域进行填充,视觉效果更好。In this embodiment, the width of the security zone corresponding to the device model information is obtained from the preset configuration table and the notch width corresponding to the device model information is obtained from the preset registry, and after obtaining the screen size of the terminal device, according to the security Area width, bangs width and screen size, adapt the screen safe area of the terminal device, and then fill the screen special-shaped area of the terminal device. The operating system layer can be skipped, device information can be obtained by calling the preset configuration table and the preset registry, and subsequent screen adaptation processing can be performed, which simplifies the screen adaptation process and improves the screen adaptation efficiency. Moreover, the preset configuration table can be updated, which is convenient for later development and maintenance work, more flexible, and saves a lot of manpower and time, thereby saving costs. In addition, this embodiment can be compatible with screens of all mobile devices having a notch screen, and the compatibility is higher. By filling in the special-shaped area of the screen of the terminal device, the visual effect is better.
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowcharts of the accompanying drawings may be executed in a computer system, such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowcharts, in some cases, Steps shown or described may be performed in an order different from that herein.
在一个实施例中,如图4所示,提供了一种屏幕适配装置,包括:设备型号获取模块402、第一参数获取模块404、第二参数获取模块406、屏幕适配模块408和屏幕填充模块410,其中:In one embodiment, as shown in FIG. 4, a screen adaptation apparatus is provided, including: a device
设备型号获取模块402,用于获取终端设备的设备型号信息。The device
第一参数获取模块404,用于在预设配置表中获取设备型号信息对应的安全区宽度,以及在预设注册表中获取设备型号信息对应的刘海宽度。The first
第二参数获取模块406,用于获取终端设备的屏幕尺寸。The second
屏幕适配模块408,用于根据安全区宽度、刘海宽度以及屏幕尺寸,对终端设备的屏幕安全区进行适配处理。The
屏幕填充模块410,用于对终端设备的屏幕异形区域进行填充。The
在一个实施例中,屏幕适配模块408还用于根据刘海宽度以及屏幕尺寸计算锚点信息;根据锚点信息对终端设备的屏幕安全区进行适配处理。In one embodiment, the
在一个实施例中,屏幕填充模块410还用于根据锚点信息新建以刘海宽度为宽度,以屏幕尺寸中的屏幕高度为高度的黑色图片;根据黑色图片填充终端设备的屏幕异形区域。In one embodiment, the
在一个实施例中,上述装置还包括:In one embodiment, the above-mentioned apparatus further comprises:
第一参数获取模块404还用于识别预设配置表中是否存在设备型号信息对应的安全区宽度;若存在,则获取设备型号信息对应的安全区宽度;The first
系统接口模块,用于若不存在,则调用预设引擎接口,获取设备型号信息对应的安全区宽度。The system interface module is used to call the preset engine interface if it does not exist to obtain the security zone width corresponding to the device model information.
在一个实施例中,上述装置还包括:In one embodiment, the above-mentioned apparatus further comprises:
第一参数获取模块404还用于识别预设注册表中是否存在设备型号信息对应的刘海宽度;若存在,则获取设备型号信息对应的刘海宽度;The first
系统接口模块,用于若不存在,则调用预设引擎接口,获取设备型号信息对应的刘海宽度。The system interface module is used to call the preset engine interface if it does not exist to obtain the notch width corresponding to the device model information.
在一个实施例中,设备型号获取模块402还用于当检测到目标应用程序启动时,获取终端设备的设备型号信息;或者,当检测到目标应用程序完成安装时,获取终端设备的设备型号信息。In one embodiment, the device
在一个实施例中,上述装置还包括:配置表生成模块,用于根据预设设备型号确定对应的安全区宽度;将预设设备型号以及对应的安全区宽度进行键值存储,生成预设配置表。In one embodiment, the above-mentioned device further includes: a configuration table generation module, configured to determine the corresponding security zone width according to the preset device model; key-value storage of the preset device model and the corresponding security zone width to generate a preset configuration surface.
关于屏幕适配装置的具体限定可以参见上文中对于屏幕适配方法的限定,在此不再赘述。上述屏幕适配装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the screen adaptation device, reference may be made to the above definition of the screen adaptation method, which will not be repeated here. Each module in the above-mentioned screen adaptation device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种屏幕适配方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 5 . The computer equipment includes a processor, memory, a network interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by a processor, implements a screen adaptation method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取终端设备的设备型号信息;Obtain the device model information of the terminal device;
在预设配置表中获取设备型号信息对应的安全区宽度,以及在预设注册表中获取设备型号信息对应的刘海宽度;Obtain the safety zone width corresponding to the device model information in the preset configuration table, and obtain the notch width corresponding to the device model information in the preset registry;
获取终端设备的屏幕尺寸;Get the screen size of the terminal device;
根据安全区宽度、刘海宽度以及屏幕尺寸,对终端设备的屏幕安全区进行适配处理;Adapt the screen safe area of the terminal device according to the width of the safe area, the width of the bangs and the screen size;
对终端设备的屏幕异形区域进行填充。Fill in the special-shaped area of the screen of the terminal device.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据刘海宽度以及屏幕尺寸计算锚点信息;根据锚点信息对终端设备的屏幕安全区进行适配处理。In one embodiment, the processor further implements the following steps when executing the computer program: calculating anchor point information according to the notch width and screen size; and performing adaptation processing on the screen safe area of the terminal device according to the anchor point information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据锚点信息新建以刘海宽度为宽度,以屏幕尺寸中的屏幕高度为高度的黑色图片;根据黑色图片填充终端设备的屏幕异形区域。In one embodiment, the processor also implements the following steps when executing the computer program: creating a black image with the width of the bangs as the width and the height of the screen in the screen size as the height according to the anchor point information; filling the screen profile of the terminal device according to the black image area.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:识别预设配置表中是否存在设备型号信息对应的安全区宽度;若存在,则获取设备型号信息对应的安全区宽度;若不存在,则调用预设引擎接口,获取设备型号信息对应的安全区宽度。In one embodiment, the processor also implements the following steps when executing the computer program: identifying whether there is a security zone width corresponding to the device model information in the preset configuration table; if so, acquiring the security zone width corresponding to the device model information; If it exists, call the preset engine interface to obtain the security zone width corresponding to the device model information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:识别预设注册表中是否存在设备型号信息对应的刘海宽度;若存在,则获取设备型号信息对应的刘海宽度;若不存在,则调用预设引擎接口,获取设备型号信息对应的刘海宽度。In one embodiment, the processor also implements the following steps when executing the computer program: identifying whether there is a notch width corresponding to the device model information in the preset registry; if so, acquiring the notch width corresponding to the device model information; if not, Then call the preset engine interface to obtain the width of the bangs corresponding to the device model information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:当检测到目标应用程序启动时,获取终端设备的设备型号信息;或者,当检测到目标应用程序完成安装时,获取终端设备的设备型号信息。In one embodiment, when the processor executes the computer program, the following steps are further implemented: when it is detected that the target application is started, the device model information of the terminal device is obtained; or when it is detected that the target application is installed, the information of the terminal device is obtained. Device model information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据预设设备型号确定对应的安全区宽度;将预设设备型号以及对应的安全区宽度进行键值存储,生成预设配置表。In one embodiment, the processor also implements the following steps when executing the computer program: determining the corresponding security zone width according to the preset device model; key-value storage of the preset device model and the corresponding security zone width to generate a preset configuration table .
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取终端设备的设备型号信息;Obtain the device model information of the terminal device;
在预设配置表中获取设备型号信息对应的安全区宽度,以及在预设注册表中获取设备型号信息对应的刘海宽度;Obtain the safety zone width corresponding to the device model information in the preset configuration table, and obtain the notch width corresponding to the device model information in the preset registry;
获取终端设备的屏幕尺寸;Get the screen size of the terminal device;
根据安全区宽度、刘海宽度以及屏幕尺寸,对终端设备的屏幕安全区进行适配处理;Adapt the screen safe area of the terminal device according to the width of the safe area, the width of the bangs and the screen size;
对终端设备的屏幕异形区域进行填充。Fill in the special-shaped area of the screen of the terminal device.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据刘海宽度以及屏幕尺寸计算锚点信息;根据锚点信息对终端设备的屏幕安全区进行适配处理。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: calculating anchor point information according to the notch width and screen size; and performing adaptation processing on the screen safe area of the terminal device according to the anchor point information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据锚点信息新建以刘海宽度为宽度,以屏幕尺寸中的屏幕高度为高度的黑色图片;根据黑色图片填充终端设备的屏幕异形区域。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: creating a black picture with the width of the bangs as the width and the height of the screen in the screen size as the height according to the anchor point information; filling the screen of the terminal device according to the black picture Alien area.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:识别预设配置表中是否存在设备型号信息对应的安全区宽度;若存在,则获取设备型号信息对应的安全区宽度;若不存在,则调用预设引擎接口,获取设备型号信息对应的安全区宽度。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: identifying whether there is a security zone width corresponding to the device model information in the preset configuration table; if so, acquiring the security zone width corresponding to the device model information; If it does not exist, call the preset engine interface to obtain the width of the security zone corresponding to the device model information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:识别预设注册表中是否存在设备型号信息对应的刘海宽度;若存在,则获取设备型号信息对应的刘海宽度;若不存在,则调用预设引擎接口,获取设备型号信息对应的刘海宽度。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: identifying whether there is a notch width corresponding to the device model information in the preset registry; if so, acquiring the notch width corresponding to the device model information; if not , the preset engine interface is called to obtain the notch width corresponding to the device model information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当检测到目标应用程序启动时,获取终端设备的设备型号信息;或者,当检测到目标应用程序完成安装时,获取终端设备的设备型号信息。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when it is detected that the target application program is started, the device model information of the terminal device is acquired; or, when it is detected that the target application program has been installed, the terminal device is acquired device model information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据预设设备型号确定对应的安全区宽度;将预设设备型号以及对应的安全区宽度进行键值存储,生成预设配置表。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the corresponding security zone width according to the preset device model; key-value storage of the preset device model and the corresponding security zone width to generate a preset configuration surface.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111065982.9A CN113867672A (en) | 2021-09-10 | 2021-09-10 | Screen adaptation method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111065982.9A CN113867672A (en) | 2021-09-10 | 2021-09-10 | Screen adaptation method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113867672A true CN113867672A (en) | 2021-12-31 |
Family
ID=78995336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111065982.9A Pending CN113867672A (en) | 2021-09-10 | 2021-09-10 | Screen adaptation method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113867672A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110874177A (en) * | 2018-08-29 | 2020-03-10 | 中兴通讯股份有限公司 | Display method of display screen, electronic equipment and storage medium |
CN111190672A (en) * | 2019-12-20 | 2020-05-22 | 深圳市优必选科技股份有限公司 | UI interface adaptation method of electronic device, electronic device and storage medium |
CN111198629A (en) * | 2018-11-19 | 2020-05-26 | 青岛海信移动通信技术股份有限公司 | Method for processing touch operation by mobile terminal and mobile terminal |
CN111258704A (en) * | 2020-02-20 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Application screen display method and device, storage medium and electronic device |
CN111552530A (en) * | 2020-04-22 | 2020-08-18 | 北京赤金智娱科技有限公司 | Terminal screen adapting method, device and equipment for user interface |
CN111949360A (en) * | 2020-09-01 | 2020-11-17 | 网易(杭州)网络有限公司 | User interface adaptation method and device, electronic equipment and storage medium |
CN112019891A (en) * | 2020-08-28 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Multimedia content display method and device, terminal and storage medium |
-
2021
- 2021-09-10 CN CN202111065982.9A patent/CN113867672A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110874177A (en) * | 2018-08-29 | 2020-03-10 | 中兴通讯股份有限公司 | Display method of display screen, electronic equipment and storage medium |
CN111198629A (en) * | 2018-11-19 | 2020-05-26 | 青岛海信移动通信技术股份有限公司 | Method for processing touch operation by mobile terminal and mobile terminal |
CN111190672A (en) * | 2019-12-20 | 2020-05-22 | 深圳市优必选科技股份有限公司 | UI interface adaptation method of electronic device, electronic device and storage medium |
CN111258704A (en) * | 2020-02-20 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Application screen display method and device, storage medium and electronic device |
CN111552530A (en) * | 2020-04-22 | 2020-08-18 | 北京赤金智娱科技有限公司 | Terminal screen adapting method, device and equipment for user interface |
CN112019891A (en) * | 2020-08-28 | 2020-12-01 | 北京达佳互联信息技术有限公司 | Multimedia content display method and device, terminal and storage medium |
CN111949360A (en) * | 2020-09-01 | 2020-11-17 | 网易(杭州)网络有限公司 | User interface adaptation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10958850B2 (en) | Electronic device and method for capturing image by using display | |
CN108304243B (en) | Interface generation method and device, computer equipment and storage medium | |
CN108376094B (en) | Notification message display method and device, computer equipment and storage medium | |
CN110119352A (en) | UI adjustment method, device, computer equipment and the storage medium of application program | |
WO2019085598A1 (en) | Method and apparatus for calculating above-the-fold rendering duration of page, and electronic device | |
CN111782492A (en) | Page first screen loading duration testing method and device, computer equipment and medium | |
CN111428570A (en) | Detection method and device for non-living human face, computer equipment and storage medium | |
CN107608609B (en) | Event object sending method and device | |
CN110597709B (en) | Interactive debugging method and device for mixed-mode mobile application and computer equipment | |
KR20190047142A (en) | Method and apparatus for setting background of ui control, and terminal | |
CN112015378A (en) | Skeleton screen page generation method and device, computer equipment and storage medium | |
WO2016107229A1 (en) | Icon displaying method and device, and computer storage medium | |
CN109871205B (en) | Interface code adjustment method, device, computer device and storage medium | |
CN108876713B (en) | Mapping method and device of two-dimensional template image, terminal equipment and storage medium | |
CN113867672A (en) | Screen adaptation method, device, computer equipment and storage medium | |
CN109787746A (en) | A kind of device-fingerprint generation method based on hardware characteristics | |
WO2019090691A1 (en) | Monkey testing method and terminal | |
CN110134475B (en) | Method and device for displaying interface parameter configuration, computer equipment and storage medium | |
CN111427652B (en) | Display method, device, medium and computer equipment of custom button | |
CN110598142A (en) | Webpage calibration method and device, computer equipment and storage medium | |
CN110175117A (en) | Test method, system, device, terminal and readable storage medium storing program for executing | |
CN111190574B (en) | Method, device, equipment and storage medium for selecting options of multi-stage linkage assembly | |
CN111803939B (en) | Image rendering method and device and electronic equipment | |
CN113507500A (en) | Terminal control method, terminal control device, computer equipment and computer-readable storage medium | |
CN114332297A (en) | Image rendering method, device, computer equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211231 |