CN114647393A - Screen adaptation method, device, server and storage medium - Google Patents
Screen adaptation method, device, server and storage medium Download PDFInfo
- Publication number
- CN114647393A CN114647393A CN202210209848.XA CN202210209848A CN114647393A CN 114647393 A CN114647393 A CN 114647393A CN 202210209848 A CN202210209848 A CN 202210209848A CN 114647393 A CN114647393 A CN 114647393A
- Authority
- CN
- China
- Prior art keywords
- displayed
- screen
- subview
- display
- custom control
- 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
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/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开涉及互联网技术领域,尤其涉及一种屏幕适配方法、装置、服务器及存储介质。其中,一种屏幕适配方法,包括:创建一自定义控件;当待显示的子视图在初始化时,基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的原始构造函数;利用重写后的自定义控件计算待显示的子视图的显示尺寸,并基于显示尺寸显示待显示的子视图。本公开的方法的屏幕适配效果较好、降低了开发维护成本、实现了低代码、低侵入。
The present disclosure relates to the field of Internet technologies, and in particular, to a screen adaptation method, device, server and storage medium. Among them, a screen adaptation method includes: creating a custom control; when the subview to be displayed is initialized, rewriting based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen The original constructor of the custom control; use the rewritten custom control to calculate the display size of the subview to be displayed, and display the subview to be displayed based on the display size. The method of the present disclosure has better screen adaptation effect, reduces development and maintenance costs, and realizes low code and low intrusion.
Description
技术领域technical field
本公开涉及互联网技术领域,尤其涉及一种屏幕适配方法、装置、服务器及存储介质。The present disclosure relates to the field of Internet technologies, and in particular, to a screen adaptation method, device, server, and storage medium.
背景技术Background technique
随着终端设备厂商的增多,机型不断多样化,使得终端设备屏幕碎片化十分严重。为了达到最优的视觉效果,在开发过程中需要面临多种机型的屏幕适配工作。目前,屏幕适配主要是解决横向视图的适配问题,主要为:当终端设备的逻辑屏幕宽度小于设计稿宽度时,横向视图中可能会出现的UI重叠或者被截断的场景。With the increase of terminal equipment manufacturers and the continuous diversification of models, the screen fragmentation of terminal equipment is very serious. In order to achieve the best visual effect, it is necessary to face the screen adaptation work of various models during the development process. At present, screen adaptation mainly solves the adaptation problem of horizontal view, mainly: when the logical screen width of the terminal device is smaller than the width of the design draft, the UI may overlap or be cut off in the horizontal view.
相关技术中,解决横向视图的适配问题的方法主要为通过代码动态设置布局参数进行屏幕适配,该方法比较繁琐,增加了开发维护成本,对业务逻辑代码有一定的侵入性,并且不能在所有终端设备上完美的还原设计稿、适配效果较差。In the related art, the method for solving the adaptation problem of the horizontal view is mainly to dynamically set the layout parameters through the code for screen adaptation. This method is cumbersome, increases the development and maintenance cost, is intrusive to the business logic code, and cannot be used in The perfect restoration design draft on all terminal devices, and the adaptation effect is poor.
发明内容SUMMARY OF THE INVENTION
本公开提供一种屏幕适配方法、装置、服务器及存储介质,以至少解决相关技术中屏幕适配方法的开发维护成本很高、对业务逻辑代码有一定的侵入性、适配效果较差的问题。The present disclosure provides a screen adaptation method, a device, a server and a storage medium, so as to at least solve the problems of high development and maintenance costs of the screen adaptation method in the related art, certain intrusiveness to business logic codes, and poor adaptation effect. question.
本公开的技术方案如下:The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种屏幕适配方法,包括:According to a first aspect of the embodiments of the present disclosure, a screen adaptation method is provided, including:
创建一自定义控件,所述自定义控件继承任一布局容器;Create a custom control, the custom control inherits any layout container;
当待显示的子视图在初始化时,基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写所述自定义控件的原始构造函数;When the subview to be displayed is initialized, the original constructor of the custom control is rewritten based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen;
利用重写后的自定义控件计算所述待显示的子视图的显示尺寸,并基于所述显示尺寸显示所述待显示的子视图。The display size of the subview to be displayed is calculated by using the rewritten custom control, and the subview to be displayed is displayed based on the display size.
可选的,所述布局容器包括但不限于框架布局、线性布局、相对布局。Optionally, the layout container includes but is not limited to frame layout, linear layout, and relative layout.
可选的,所述基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写所述自定义控件的构造函数,包括:Optionally, rewriting the constructor of the custom control based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen, including:
获取所述原始构造函数的原始上下文对象对应的原始配置对象;obtaining the original configuration object corresponding to the original context object of the original constructor;
基于所述原始配置对象创建新的配置对象,并基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算所述新的配置对象的屏幕密度参数;Create a new configuration object based on the original configuration object, and calculate the screen density parameter of the new configuration object based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen;
基于所述新的配置对象创建新的上下文对象;create a new context object based on the new configuration object;
利用所述新的上下文对象替换原始上下文对象。Replace the original context object with the new context object.
可选的,所述基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算所述新的配置对象的屏幕密度参数,包括:Optionally, calculating the screen density parameter of the new configuration object based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen, including:
新的配置对象的屏幕密度参数=(屏幕分辨率宽度(px)/设计稿宽度(dp))×160。The screen density parameter of the new configuration object=(screen resolution width (px)/design draft width (dp))×160.
可选的,所述利用重写后的自定义控件计算所述待显示的子视图的显示尺寸,包括:Optionally, calculating the display size of the subview to be displayed by using the rewritten custom control includes:
利用重写后的自定义控件的构造函数中的新的上下文对象关联的屏幕密度参数计算待显示的子视图的显示尺寸。The display size of the subview to be displayed is calculated by using the screen density parameter associated with the new context object in the constructor of the rewritten custom control.
可选的,所述显示尺寸包括:待显示的子视图的宽高、间距。Optionally, the display size includes: width, height and spacing of the subview to be displayed.
根据本公开实施例的第二方面,提供一种屏幕适配装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a screen adaptation device, including:
创建单元,被配置为创建一自定义控件,所述自定义控件继承任一布局容器;The creation unit is configured to create a custom control, the custom control inherits any layout container;
处理单元,被配置为当待显示的子视图在初始化时,基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写所述自定义控件的原始构造函数;a processing unit, configured to rewrite the original constructor of the custom control based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen when the subview to be displayed is initialized;
显示单元,被配置为利用重写后的自定义控件计算所述待显示的子视图的显示尺寸,并基于所述显示尺寸显示所述待显示的子视图。The display unit is configured to calculate the display size of the sub-view to be displayed by using the rewritten custom control, and display the sub-view to be displayed based on the display size.
可选的,所述布局容器包括但不限于框架布局、线性布局、相对布局。Optionally, the layout container includes but is not limited to frame layout, linear layout, and relative layout.
可选的,所述处理单元,包括:Optionally, the processing unit includes:
获取子单元,被配置为获取所述原始构造函数的原始上下文对象对应的原始配置对象;an acquisition subunit, configured to acquire the original configuration object corresponding to the original context object of the original constructor;
计算子单元,被配置为基于所述原始配置对象创建新的配置对象,并基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算所述新的配置对象的屏幕密度参数;a calculation subunit, configured to create a new configuration object based on the original configuration object, and calculate the screen of the new configuration object based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen density parameter;
创建子单元,被配置为基于所述新的配置对象创建新的上下文对象;creating a subunit configured to create a new context object based on the new configuration object;
替换子单元,被配置为利用所述新的上下文对象替换原始上下文对象。A replacement subunit is configured to replace the original context object with the new context object.
可选的,所述计算子单元,被配置为新的配置对象的屏幕密度参数=(屏幕分辨率宽度(px)/设计稿宽度(dp))×160。Optionally, the calculation subunit is configured as the screen density parameter of the new configuration object=(screen resolution width (px)/design draft width (dp))×160.
可选的,所述显示单元,被配置为利用重写后的自定义控件的构造函数中的新的上下文对象关联的屏幕密度参数计算待显示的子视图的显示尺寸。Optionally, the display unit is configured to calculate the display size of the subview to be displayed by using the screen density parameter associated with the new context object in the constructor of the rewritten custom control.
可选的,所述显示尺寸包括:待显示的子视图的宽高、间距。Optionally, the display size includes: width, height and spacing of the subview to be displayed.
根据本申请的第三方面,提供了一种服务器,包括:According to a third aspect of the present application, a server is provided, comprising:
处理器;processor;
用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
其中,所述处理器被配置为执行所述指令,以实现如权利要求1至6中任一项所述的屏幕适配方法。Wherein, the processor is configured to execute the instructions to implement the screen adaptation method as claimed in any one of claims 1 to 6.
根据本申请的第四方面,提供了一种存储介质,当所述存储介质中的指令由服务器的处理器执行时,使得服务器能够执行如第一方面所述的屏幕适配方法。According to a fourth aspect of the present application, a storage medium is provided, when the instructions in the storage medium are executed by the processor of the server, the server can execute the screen adaptation method according to the first aspect.
本公开的实施例提供的技术方案至少带来以下有益效果:The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
在一些或者相关的实施例中,会创建一自定义控件,然后当待显示的子视图在初始化时,基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的原始构造函数,利用重写后的自定义控件计算待显示的子视图的显示尺寸,并基于显示尺寸显示待显示的子视图。由此可知,本公开实施例之中,当待显示的子视图在初始化时,具体是利用“基于待显示的子视图对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写了原始构造函数之后的自定义控件”来显示该待显示的子视图,由此可以使得该待显示的子视图能够适配于显示屏幕,适配效果较好。并且,在本公开的实施例之中,在屏幕适配显示时,具体是在按照设计稿的尺寸信息正常编写的xml布局文件的最外层使用本公开中的自定义控件包裹一层即可,而无需在业务逻辑代码中动态设置布局参数或者另外编写多套适配于不同屏幕尺寸的xml布局文件,从而降低了开发维护成本,实现了低代码、低侵入。In some or related embodiments, a custom control is created, and then when the subview to be displayed is initialized, it is rewritten based on the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen The original constructor of the custom control uses the rewritten custom control to calculate the display size of the subview to be displayed, and displays the subview to be displayed based on the display size. It can be seen from this that, in the embodiment of the present disclosure, when the subview to be displayed is initialized, the original image is rewritten by using "the size information of the design draft corresponding to the subview to be displayed and the screen resolution information of the display screen. The custom control after the constructor" is used to display the subview to be displayed, so that the subview to be displayed can be adapted to the display screen, and the adaptation effect is good. Moreover, in the embodiment of the present disclosure, when the screen is adapted to display, specifically, the outermost layer of the xml layout file normally written according to the size information of the design draft can be wrapped with the custom control in the present disclosure. , instead of dynamically setting layout parameters in the business logic code or writing multiple sets of xml layout files adapted to different screen sizes, thereby reducing development and maintenance costs and achieving low code and low intrusion.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种屏幕适配方法的流程图;FIG. 1 is a flowchart of a screen adaptation method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种屏幕适配装置框图;FIG. 2 is a block diagram of a screen adaptation apparatus according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种屏幕适配装置框图Fig. 3 is a block diagram of a screen adaptation apparatus according to an exemplary embodiment
图4是根据一示例性实施例示出的一种服务器的框图。Fig. 4 is a block diagram of a server according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种屏幕适配方法的流程图,由屏幕适配装置执行,如图1所示,该屏幕适配方法可以包括以下步骤:FIG. 1 is a flowchart of a screen adaptation method according to an exemplary embodiment, which is executed by a screen adaptation apparatus. As shown in FIG. 1 , the screen adaptation method may include the following steps:
在步骤S11中,创建一自定义控件。In step S11, a custom control is created.
在一些实施例中,该自定义控件可以继承任一布局容器,其中,该布局容器包括但不限于FrameLayout(框架布局)、LinearLayout(线性布局)、RelativeLayout(相对布局)。In some embodiments, the custom control can inherit any layout container, wherein the layout container includes but is not limited to FrameLayout (frame layout), LinearLayout (linear layout), RelativeLayout (relative layout).
在步骤S12中,当待显示的子View(视图)在初始化时,基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的原始构造函数。In step S12, when the sub-View (view) to be displayed is initialized, the original constructor of the custom control is rewritten based on the size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen.
该设计稿的尺寸信息例如可以为设计稿宽度,该设计稿宽度例如可以为360dp。The size information of the design draft may be, for example, the width of the design draft, and the width of the design draft may be, for example, 360dp.
其中,在一些实施例之中,开发人员通常会按照设计稿的尺寸信息来编写用于页面展示的xml布局文件,之后,自定义控件可以通过解析加载该xml布局文件以基于设计稿的尺寸信息来显示待显示的子View。但是,需要说明的是,可能存在部分终端设备显示屏幕的逻辑屏幕宽度(其中,逻辑屏幕宽度(dp)=屏幕分辨率宽度(px)/(densityDpi参数/160))与设计稿的尺寸信息不匹配,基于此,若每一次显示待显示的子View时,均利用原始自定义控件来解析加载该xml布局文件,则难免会出现所显示出的子View与显示屏幕不适配的问题,例如出现UI重叠或者被截断的场景。Among them, in some embodiments, the developer usually writes an xml layout file for page display according to the size information of the design draft, and then the custom control can load the xml layout file by parsing to be based on the size information of the design draft. to display the child View to be displayed. However, it should be noted that there may be some differences between the logical screen width of the display screen of some terminal devices (where logical screen width (dp) = screen resolution width (px)/(densityDpi parameter/160)) and the size information of the design draft. Matching, based on this, if the original custom control is used to parse and load the xml layout file every time the sub-View to be displayed is displayed, it is inevitable that the displayed sub-View does not fit the display screen. For example Scenarios where UI overlaps or is truncated.
由此,在一些实施例之中,由于xml布局文件在解析加载的过程中,每个子View均是通过使用自定义控件(即父布局)的原始构造函数中的Context对象(上下文对象)创建的,以及,由于子View在初始化时,自定义控件的Context对象可以动态替换,则本公开中,在利用xml布局文件初始化待显示的子View时,可以基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息创建一适配于当前显示屏幕的屏幕分辨率信息的新的Context对象,并利用该新的Context对象替换自定义控件的原始构造函数中的原始Context对象以重写自定义控件的原始构造函数。其中,由于重写后的自定义控件是基于当前显示屏幕的屏幕分辨率信息确定的,从而后续利用重写后的自定义控件基于xml布局文件显示待显示的子View时,可以自动控制子View的视图展示大小(如自动等比缩放子View的视图展示大小),可以使得子View的视图展示大小总是自适配于当前显示屏幕。Therefore, in some embodiments, since the xml layout file is being parsed and loaded, each child View is created by using the Context object (context object) in the original constructor of the custom control (ie, the parent layout). , and, since the Context object of the custom control can be dynamically replaced when the sub-View is initialized, in the present disclosure, when using the xml layout file to initialize the sub-View to be displayed, it can be based on the design draft corresponding to the sub-View to be displayed. The size information and the screen resolution information of the display screen create a new Context object adapted to the screen resolution information of the current display screen, and use the new Context object to replace the original Context object in the original constructor of the custom control to Override the original constructor of the custom control. Among them, since the rewritten custom control is determined based on the screen resolution information of the current display screen, when the rewritten custom control is subsequently used to display the sub-View to be displayed based on the xml layout file, the sub-View can be automatically controlled The display size of the view (such as automatically scaling the view display size of the child View) can make the view display size of the child View always adapt to the current display screen.
进一步地,一些实施例中,上述的基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的构造函数的方法可以包括以下步骤:Further, in some embodiments, the above-mentioned method for rewriting the constructor of the custom control based on the size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen may include the following steps:
在步骤S121中,获取原始构造函数的原始Context对象对应的原始Configuration对象(配置对象)。In step S121, the original Configuration object (configuration object) corresponding to the original Context object of the original constructor is obtained.
其中,一些实施例中,可以通过context.getResources().getConfiguration()获取context的Configuration对象configuration。Among them, in some embodiments, the Configuration object configuration of the context can be obtained through context.getResources().getConfiguration().
示例的,一些实施例中,假设原始构造函数的原始Context对象为contextA,则可以通过contextA.getResources().getConfiguration()获取contextA的Configuration对象configurationA。For example, in some embodiments, assuming that the original Context object of the original constructor is contextA, the Configuration object configurationA of contextA can be obtained through contextA.getResources().getConfiguration().
在步骤S122中,基于原始Configuration对象创建新的Configuration对象,并基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算新的Configuration对象的densityDpi参数(即屏幕密度参数)。In step S122, a new Configuration object is created based on the original Configuration object, and the densityDpi parameter (that is, the screen density parameter) of the new Configuration object is calculated based on the size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen ).
其中,一些实施例中,可以通过new Configuration(configuration)创建新的Configuration对象。Among them, in some embodiments, a new Configuration object may be created through new Configuration (configuration).
示例的,一些实施例中,可以通过new Configuration(configurationA)创建新的Configuration对象configurationB。Illustratively, in some embodiments, a new Configuration object configurationB may be created through new Configuration(configurationA).
以及,在一些实施例中,由于Configuration对象中的densityDpi属性决定着所生成的Context对应Resources对象关联的DisplayMetrics对象的屏幕密度参数,其中,该屏幕密度参数可以影响到dp、sp换算px以及drawable图片加载等。因此,在创建新的Configuration对象时,需要基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算新的Configuration对象的densityDpi参数,以便后续基于所计算出的新的Configuration对象的densityDpi参数重写自定义控件的原始构造函数之后,可以使得重写后的自定义控件能够使得子View实现的自适配显示。And, in some embodiments, since the densityDpi property in the Configuration object determines the screen density parameter of the DisplayMetrics object associated with the generated Context corresponding to the Resources object, the screen density parameter can affect dp, sp conversion px, and drawable pictures load etc. Therefore, when creating a new Configuration object, it is necessary to calculate the densityDpi parameter of the new Configuration object based on the size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen, so that the new Configuration object can be subsequently calculated based on the new After the densityDpi parameter of the Configuration object rewrites the original constructor of the custom control, the rewritten custom control can make the self-adaptive display implemented by the child View.
其中,在一些实施例之中,上述基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算新的Configuration对象的densityDpi参数的方法可以包括:Wherein, in some embodiments, the above-mentioned method for calculating the densityDpi parameter of the new Configuration object based on the size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen may include:
新的Configuration对象的densityDpi参数=(屏幕分辨率宽度(px)/设计稿宽度(dp))×160。The densityDpi parameter of the new Configuration object = (screen resolution width (px)/design draft width (dp))×160.
在步骤S123中,基于新的Configuration对象创建新的Context对象。In step S123, a new Context object is created based on the new Configuration object.
一些实施例中,可以通过Context.createConfigurationContext(ConfigurationoverrideConfiguration)接口传入configuration参数创建一个指定配置(即指定densityDpi参数)的Context对象。In some embodiments, a Context object that specifies a configuration (that is, specifies a densityDpi parameter) can be created by passing in the configuration parameter through the Context.createConfigurationContext (ConfigurationoverrideConfiguration) interface.
示例的,在一些实施例中,假设原始Context对象为contextA,新的configuration对象为configurationB,则可以通过contextA.createConfigurationContext(configurationB)基于configurationB创建新的Context对象ContextB。For example, in some embodiments, assuming that the original Context object is contextA and the new configuration object is configurationB, a new Context object ContextB can be created based on configurationB through contextA.createConfigurationContext(configurationB).
在步骤S124中,利用新的Context对象替换原始Context对象。In step S124, the original Context object is replaced with the new Context object.
其中,一些实施例中,通过利用新的Context对象替换原始Context对象可以实现对自定义控件的原始构造函数的重写。并且,需要说明的是,在一些实施例之中,当新的Context对象替换原始Context对象时,还可以通过新的Context确定出对应的Resources对象。Among them, in some embodiments, the original constructor of the custom control can be rewritten by replacing the original Context object with a new Context object. Moreover, it should be noted that, in some embodiments, when a new Context object replaces the original Context object, the corresponding Resources object may also be determined through the new Context.
在步骤S13中,利用重写后的自定义控件计算待显示的子View的显示尺寸,并基于显示尺寸显示所述待显示的子View。In step S13, the rewritten custom control is used to calculate the display size of the sub-View to be displayed, and the sub-View to be displayed is displayed based on the display size.
一些实施例中,利用重写后的自定义控件计算待显示的子View的显示尺寸的方法可以包括:利用重写后的自定义控件的构造函数中的新的Context对象关联的屏幕密度参数计算待显示的子View的显示尺寸。并且,由于本公开中的自定义控件是基于显示屏幕的屏幕分辨率信息重写的,因此利用重写后的自定义控件计算待显示的子View的显示尺寸应当是适配于当前屏幕的显示尺寸的。In some embodiments, the method for calculating the display size of the child View to be displayed by using the rewritten custom control may include: calculating the screen density parameter associated with the new Context object in the constructor of the rewritten custom control; Display size of the child View to be displayed. Moreover, since the custom control in the present disclosure is rewritten based on the screen resolution information of the display screen, the display size of the child View to be displayed should be calculated by using the rewritten custom control to be suitable for the display of the current screen. size.
以及,一些实施例中,显示尺寸可以包括待显示的子View的宽高、间距。And, in some embodiments, the display size may include the width, height and spacing of the sub-View to be displayed.
综上所述,在一些或者相关的实施例中,会创建一自定义控件,然后当待显示的子View在初始化时,基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的原始构造函数,利用重写后的自定义控件计算待显示的子View的显示尺寸,并基于显示尺寸显示待显示的子View。由此可知,本公开实施例之中,当待显示的子View在初始化时,具体是利用“基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写了原始构造函数之后的自定义控件”来显示该待显示的子View,由此可以使得该待显示的子View能够适配于显示屏幕,适配效果较好。并且,在本公开的实施例之中,在屏幕适配显示时,具体是在按照设计稿的尺寸信息正常编写的xml布局文件的最外层使用本公开中的自定义控件包裹一层即可,而无需在业务逻辑代码中动态设置布局参数或者另外编写多套适配于不同屏幕尺寸的xml布局文件,从而降低了开发维护成本,实现了低代码、低侵入。To sum up, in some or related embodiments, a custom control will be created, and then when the sub-View to be displayed is initialized, based on the size information of the design draft corresponding to the sub-View to be displayed and the screen of the display screen The resolution information rewrites the original constructor of the custom control, uses the rewritten custom control to calculate the display size of the sub-View to be displayed, and displays the sub-View to be displayed based on the display size. It can be seen from this that, in the embodiment of the present disclosure, when the sub-View to be displayed is initialized, the original image is rewritten using the “size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen”. The custom control after the constructor" is used to display the sub-View to be displayed, so that the sub-View to be displayed can be adapted to the display screen, and the adaptation effect is good. Moreover, in the embodiment of the present disclosure, when the screen is adapted to display, specifically, the outermost layer of the xml layout file normally written according to the size information of the design draft can be wrapped with the custom control in the present disclosure. , instead of dynamically setting layout parameters in the business logic code or writing multiple sets of xml layout files adapted to different screen sizes, thereby reducing development and maintenance costs and achieving low code and low intrusion.
图2是根据一示例性实施例示出的一种屏幕适配装置框图。参照图2,该屏幕适配装置包括:Fig. 2 is a block diagram of a screen adaptation apparatus according to an exemplary embodiment. Referring to Figure 2, the screen adaptation device includes:
创建单元201,被配置为创建一自定义控件,自定义控件继承任一布局容器;The
处理单元202,被配置为当待显示的子View在初始化时,基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的原始构造函数;The
显示单元203,被配置为利用重写后的自定义控件计算待显示的子View的显示尺寸,并基于所述显示尺寸显示所述待显示的子View。The
可选的,布局容器包括但不限于FrameLayout、LinearLayout、RelativeLayout。Optionally, the layout container includes but is not limited to FrameLayout, LinearLayout, and RelativeLayout.
可选的,图3是根据一示例性实施例示出的一种屏幕适配装置框图。参照图2,所述处理单元202,包括:Optionally, FIG. 3 is a block diagram of a screen adaptation apparatus according to an exemplary embodiment. 2, the
获取子单元2021,被配置为获取原始构造函数的原始Context对象对应的原始Configuration对象;Obtaining
计算子单元2022,被配置为基于原始Configuration对象创建新的Configuration对象,并基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息计算新的Configuration对象的densityDpi参数;The
创建子单元2023,被配置为基于新的Configuration对象创建新的Context对象;The
替换子单元2024,被配置为利用新的Context对象替换原始Context对象。The
可选的,计算单元2022,被配置为新的Configuration对象的densityDpi参数=(屏幕分辨率宽度(px)/设计稿宽度(dp))×160。Optionally, the
可选的,显示单元203,被配置为利用重写后的自定义控件的构造函数中的新的Context对象关联的屏幕密度参数计算待显示的子View的显示尺寸。Optionally, the
可选的,显示尺寸包括:待显示的子View的宽高、间距。Optionally, the display size includes: width, height, and spacing of the sub-View to be displayed.
综上所述,在一些或者相关的实施例中,会创建一自定义控件,然后当待显示的子View在初始化时,基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写自定义控件的原始构造函数,利用重写后的自定义控件计算待显示的子View的显示尺寸,并基于显示尺寸显示待显示的子View。由此可知,本公开实施例之中,当待显示的子View在初始化时,具体是利用“基于待显示的子View对应的设计稿的尺寸信息以及显示屏幕的屏幕分辨率信息重写了原始构造函数之后的自定义控件”来显示该待显示的子View,由此可以使得该待显示的子View能够适配于显示屏幕,适配效果较好。并且,在本公开的实施例之中,在屏幕适配显示时,具体是在按照设计稿的尺寸信息正常编写的xml布局文件的最外层使用本公开中的自定义控件包裹一层即可,而无需在业务逻辑代码中动态设置布局参数或者另外编写多套适配于不同屏幕尺寸的xml布局文件,从而降低了开发维护成本,实现了低代码、低侵入。To sum up, in some or related embodiments, a custom control will be created, and then when the sub-View to be displayed is initialized, based on the size information of the design draft corresponding to the sub-View to be displayed and the screen of the display screen The resolution information rewrites the original constructor of the custom control, uses the rewritten custom control to calculate the display size of the sub-View to be displayed, and displays the sub-View to be displayed based on the display size. It can be seen from this that, in the embodiment of the present disclosure, when the sub-View to be displayed is initialized, the original image is rewritten using the “size information of the design draft corresponding to the sub-View to be displayed and the screen resolution information of the display screen”. The custom control after the constructor" is used to display the sub-View to be displayed, so that the sub-View to be displayed can be adapted to the display screen, and the adaptation effect is good. Moreover, in the embodiment of the present disclosure, when the screen is adapted to display, specifically, the outermost layer of the xml layout file normally written according to the size information of the design draft can be wrapped with the custom control in the present disclosure. , instead of dynamically setting layout parameters in the business logic code or writing multiple sets of xml layout files adapted to different screen sizes, thereby reducing development and maintenance costs and achieving low code and low intrusion.
图4是根据一示例性实施例示出的一种服务器的框图。如图4所示,该服务器包括:存储器401和处理器402。另外,该服务器还包括电源组件403、通信组件404等必要组件。Fig. 4 is a block diagram of a server according to an exemplary embodiment. As shown in FIG. 4 , the server includes: a
存储器401,用于存储计算机程序,并可被配置为存储其它各种数据以支持在电子设备上的操作。这些数据的示例包括用于在电子设备上操作的任何应用程序或方法的指令。The
存储器401,可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
通信组件404,用于与其他设备进行数据传输。The
处理器402,可执行存储器401中存储的计算机指令,以用于执行上述方法。The
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质。当计算机可读存储介质存储计算机程序,且计算机程序被一个或多个处理器执行时,致使一个或多个处理器执行图1方法实施例中的各步骤。Correspondingly, the embodiments of the present application further provide a computer-readable storage medium storing a computer program. When the computer-readable storage medium stores a computer program, and the computer program is executed by one or more processors, the one or more processors are caused to perform each step in the method embodiment of FIG. 1 .
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is no such actual relationship or sequence between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element.
以上仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above are only specific embodiments of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not to be limited to the embodiments herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210209848.XA CN114647393A (en) | 2022-03-04 | 2022-03-04 | Screen adaptation method, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210209848.XA CN114647393A (en) | 2022-03-04 | 2022-03-04 | Screen adaptation method, device, server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114647393A true CN114647393A (en) | 2022-06-21 |
Family
ID=81994430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210209848.XA Pending CN114647393A (en) | 2022-03-04 | 2022-03-04 | Screen adaptation method, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114647393A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118733184A (en) * | 2024-09-04 | 2024-10-01 | 荣耀终端有限公司 | Method for displaying interface and electronic device |
CN119201328A (en) * | 2024-11-27 | 2024-12-27 | 上海创景信息科技股份有限公司 | Method and system for adaptive scaling of interface |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0694834A1 (en) * | 1994-06-30 | 1996-01-31 | Canon Kabushiki Kaisha | User interface for multiple child windows |
CN107015793A (en) * | 2016-12-12 | 2017-08-04 | 阿里巴巴集团控股有限公司 | Design original text adaptation method, apparatus and system |
CN108427546A (en) * | 2018-05-03 | 2018-08-21 | 深圳Tcl新技术有限公司 | Full screen adaptation method, display device and the storage medium of display device |
CN110597579A (en) * | 2019-07-08 | 2019-12-20 | 深圳大趋智能科技有限公司 | Android system-based custom control generation method, apparatus, device and medium |
CN113867701A (en) * | 2020-06-30 | 2021-12-31 | 武汉斗鱼鱼乐网络科技有限公司 | Container object instantiation method and device, storage medium and electronic equipment |
-
2022
- 2022-03-04 CN CN202210209848.XA patent/CN114647393A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0694834A1 (en) * | 1994-06-30 | 1996-01-31 | Canon Kabushiki Kaisha | User interface for multiple child windows |
CN107015793A (en) * | 2016-12-12 | 2017-08-04 | 阿里巴巴集团控股有限公司 | Design original text adaptation method, apparatus and system |
CN108427546A (en) * | 2018-05-03 | 2018-08-21 | 深圳Tcl新技术有限公司 | Full screen adaptation method, display device and the storage medium of display device |
CN110597579A (en) * | 2019-07-08 | 2019-12-20 | 深圳大趋智能科技有限公司 | Android system-based custom control generation method, apparatus, device and medium |
CN113867701A (en) * | 2020-06-30 | 2021-12-31 | 武汉斗鱼鱼乐网络科技有限公司 | Container object instantiation method and device, storage medium and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118733184A (en) * | 2024-09-04 | 2024-10-01 | 荣耀终端有限公司 | Method for displaying interface and electronic device |
CN118733184B (en) * | 2024-09-04 | 2025-01-03 | 荣耀终端有限公司 | Method for displaying interface and electronic equipment |
CN119201328A (en) * | 2024-11-27 | 2024-12-27 | 上海创景信息科技股份有限公司 | Method and system for adaptive scaling of interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112905624B (en) | Database extension method and device of low-code development platform | |
US10223698B2 (en) | Integrating a web-based CRM system with a PIM client application | |
CN114647393A (en) | Screen adaptation method, device, server and storage medium | |
CN112015399A (en) | Data processing method and device for generating intelligent contract | |
US11068507B2 (en) | Methods and systems for multi-dimensional aggregation using composition | |
CN113626308A (en) | Code debugging method and device, electronic equipment and storage medium | |
CN114139504A (en) | A method, device and medium for constructing a dynamic data flow model based on canvas | |
CN107729541A (en) | A kind of data processing method, device and computer-readable recording medium | |
CN115202652A (en) | Platform building method, system, equipment and medium for service application form on cloud | |
CN104615422A (en) | Procedure customizing method for application software interface | |
CN113253999B (en) | Plug-in data access method, data source management system and interface access method | |
TWI620134B (en) | Integration device and integration method thereof | |
CN112379871A (en) | Data processing method and device | |
CN112035156A (en) | E-commerce platform docking device, method, equipment and medium | |
CN108182199B (en) | A method and system for generating electricity transaction data graph | |
CN113918664B (en) | Data processing method and device | |
CN115016778A (en) | WebIDE-based application development method, equipment and medium | |
US20210365473A1 (en) | Cascading Data Impact Visualization Tool | |
CN113254019B (en) | Method and device for registering front-end data stream status file | |
US9552347B1 (en) | Data grid cell styling systems and methods | |
CN105229564B (en) | The visualization interface of information object system | |
CN108628630B (en) | Management method and device for software system maintenance information | |
CN111352910A (en) | Method and device for online preview of data | |
US20250103725A1 (en) | Techniques for application architecture management | |
CN112907218B (en) | A method, device and electronic equipment for generating engineering report |
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 |
Application publication date: 20220621 |