Page rendering method and device, electronic equipment and storage medium
By using the aging-friendly configuration information and interface information to render the target page when the aging-friendly function of the application is turned on, the problem of adapting and modifying each page in the prior art is solved, and the efficiency of page display is improved and flexibility.
Patent Information
- Application Number
- CN202411212368.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, optimizing the application interface for the elderly requires a large number of modifications to each page in advance, resulting in inefficiency and low flexibility.
When the aging-friendly function of the application is turned on, the target page is rendered using the preset aging-friendly configuration information and application program interface information, and the page is displayed based on this information, avoiding the pre-emption of each page. Make adaptation modifications.
Improves the efficiency and flexibility of page display, simplifies the rendering process, and solves the problems of inefficiency and low flexibility.
Smart Images

Figure CN119105834A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a page rendering method, device, electronic device and storage medium. Background Art
[0002] With the development of society, the functions of applications in various electronic devices are constantly increasing, resulting in more and more content displayed on each page of the application. With the increase in the aging population, the demand for the elderly to use electronic devices is also increasing. However, due to poor eyesight, it is very difficult for the elderly to view the numerous and small information displayed on the screen interface, which makes it difficult for the elderly to view the information displayed on the application interface.
[0003] In the existing related technologies, in order to enable the elderly to clearly view the content displayed on each interface, interface modifications are usually made in advance for each display page of the application to adapt to the elderly, so as to obtain an enlarged page that the elderly can clearly view. However, since there are a large number of interactive pages in the application now, and the display content in each page is also large, it takes a lot of time and manpower to modify, that is, to adapt and modify each page in advance, which will result in low efficiency and low flexibility. Summary of the invention
[0004] In order to solve the problem in the prior art that each page needs to be adapted and modified in advance, which is complicated and has low flexibility, the present application provides a page rendering method, device, electronic device and storage medium.
[0005] In a first aspect, the present application provides a page rendering method, comprising:
[0006] Determine the target page to be rendered by the application;
[0007] When the aging-friendly function of the application is turned on, according to preset aging-friendly configuration information corresponding to the application, the target page is rendered using application program interface information configured corresponding to the application to obtain page rendering information;
[0008] The target page is displayed based on the page rendering information.
[0009] Optionally, rendering the target page according to the preset aging-friendly configuration information corresponding to the application program and using the application program interface information configured corresponding to the application program to obtain the page rendering information includes:
[0010] Obtaining the preset aging-friendly configuration information corresponding to the application;
[0011] Extracting a target aging-adaptive amplification factor from the aging-adaptive configuration information;
[0012] According to the target aging-friendly magnification factor, the target page is rendered using the application program interface information corresponding to the configuration of the application program to obtain page rendering information.
[0013] Optionally, extracting a target aging-friendly amplification factor from the aging-friendly configuration information includes:
[0014] Extracting at least one aging-adaptive amplification factor and a factor identifier corresponding to each aging-adaptive amplification factor from the aging-adaptive configuration information;
[0015] Determine a page identifier of the target page;
[0016] Determine the factor identifier that matches the page identifier as a target factor identifier;
[0017] The aging-friendly amplification factor corresponding to the target factor identifier is determined as the target aging-friendly amplification factor.
[0018] Optionally, according to the target aging-friendly magnification factor, the target page is rendered using application program interface information corresponding to the configuration of the application program to obtain page rendering information, including:
[0019] Determining a rendering magnification factor according to the target aging-friendly magnification factor;
[0020] The target page is rendered corresponding to the rendering magnification by utilizing the application program interface information to obtain page rendering information.
[0021] Optionally, before determining the target page to be rendered by the application, the method further includes:
[0022] When the application is started, obtaining interface method configuration information corresponding to the application;
[0023] The interface method configuration information is used to configure the interface method of the system environment where the application is located, and the application interface information is generated.
[0024] Optionally, the using the interface method configuration information to configure the interface method of the system environment in which the application is located to generate the application interface information includes:
[0025] Based on the interface method configuration information, determine a font creation interface method and a button creation interface method;
[0026] Based on the interface method information of the system environment, configuration is performed according to the font creation interface method and the button creation interface method to obtain the application program interface information.
[0027] Optionally, rendering the target page using the application program interface information configured corresponding to the application program to obtain page rendering information includes:
[0028] Based on the application program interface information, determine a font interface creation method and a button interface creation method;
[0029] Rendering the font in the target page according to the font creation interface method to generate font rendering information;
[0030] Rendering the button in the target page according to the button interface creation method to generate button rendering information;
[0031] The font rendering information and the button rendering information are determined as the page rendering information.
[0032] In a second aspect, the present application provides a page rendering device, comprising:
[0033] A determination module is used to determine a target page to be rendered by the application;
[0034] A rendering module, configured to render the target page using application program interface information configured corresponding to the application program according to preset aging-friendly configuration information corresponding to the application program when the aging-friendly function of the application program is turned on, so as to obtain page rendering information;
[0035] A display module is used to display the target page based on the page rendering information.
[0036] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0037] Memory, used to store computer programs;
[0038] The processor is used to implement the page rendering method described in any one of the first aspects when executing the program stored in the memory.
[0039] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the page rendering method as described in any one of the first aspects is implemented.
[0040] The embodiment of the present application determines the target page to be rendered by the application, and when the aging-friendly function of the application is turned on, renders the target page according to the preset aging-friendly configuration information corresponding to the application and the application interface information configured accordingly to obtain page rendering information, and then displays the target page based on the page rendering information, thereby eliminating the need to adapt and modify each page in advance, thereby achieving the purpose of directly rendering to obtain the page rendering information corresponding to the aging-friendly configuration information, solving the problems of low efficiency and low flexibility in the existing related technology that require pre-adaptation and modification of each page, and can effectively improve the display efficiency and flexibility of the target page. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1 A schematic diagram of a flow chart of a page rendering method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of an application scenario of a page rendering method provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of another application scenario of a page rendering method provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of the structure of a page rendering device provided in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0049] For many applications in the existing related technologies, if it is necessary to add a magnified interface that adapts to the viewing mode of the elderly to the application, it is necessary to enlarge each interface in the application in advance to obtain its corresponding magnified image, and then display the magnified image during the operation of the application to meet the viewing needs of elderly users; however, there are a large number of interfaces in the application, and each interface displays a lot of content, such as text, buttons, etc., which all need to be enlarged, so that each page needs to be adapted and modified for the enlargement processing. This method is very labor-intensive, because developers have to adapt fonts and expand touch areas of display components one by one, and the process steps are very cumbersome and prone to omissions, that is, there is a need to adapt and modify each page in advance, which will result in low efficiency and low flexibility.
[0050] In order to solve the problem of low efficiency and low flexibility in the prior art of pre-adapting and modifying each page, the present application provides a page rendering method, device, electronic device and storage medium. By determining the target page to be rendered by the application, and when the aging-friendly function of the application is turned on, the target page is rendered according to the preset aging-friendly configuration information corresponding to the application, using the application interface information configured accordingly to obtain the page rendering information, and then displaying the target page based on the page rendering information, thereby eliminating the need to pre-adapt and modify each page, and achieving the purpose of directly rendering to obtain the page rendering information corresponding to the aging-friendly configuration information. This solves the problem of low efficiency and low flexibility in the prior related technology of needing to pre-adapt and modify each page, and can effectively improve the display efficiency and flexibility of the target page.
[0051] Figure 1 A flow chart of a method for determining a verification method provided for an embodiment of the present application. The method can be applied to one or more electronic devices such as an application, a client, and a server. In addition, the execution subject of the method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute the method, or a plurality of electronic devices can cooperate with each other to execute the method. When the above-mentioned execution subject is software, the method can be implemented as a plurality of software or software modules, or as a single software or software module. No specific limitation is made herein.
[0052] like Figure 1 As shown, the present application discloses an embodiment, and provides a page rendering method, which may specifically include the following steps:
[0053] Step S110: Determine the target page to be rendered by the application.
[0054] Among them, the application represents the program that currently needs to render and display the page, and the target page represents the page that currently needs to be rendered. That is, during the running of the application, it can be detected in real time whether there is a page that needs to be rendered and displayed. If there is a page that needs to be rendered and displayed, the page can be determined as the target page. Of course, the target page can also be determined in other ways, and this embodiment does not make specific limitations on this.
[0055] Step S120: when the aging-friendly function of the application is turned on, the target page is rendered according to the preset aging-friendly configuration information corresponding to the application and the application program interface information configured corresponding to the application to obtain page rendering information.
[0056] Specifically, after determining the target page, it can be determined whether the aging-friendly function of the application is turned on, wherein the aging-friendly function can represent a switching function of the page display method pre-configured in the application to adapt to the elderly user group. When the aging-friendly function of the application is turned on, it can mean that the current application has turned on the switch of the page display method to a method that is adapted to the elderly user group. At this time, the target page can be rendered according to the preset aging-friendly configuration information corresponding to the application and the application interface information configured accordingly to obtain the page rendering information, wherein the aging-friendly configuration information represents the aging-friendly magnification information pre-configured according to the application, such as the magnification factor. It should be noted that different applications or different pages may correspond to different aging-friendly magnification information; and the application interface information can represent the application pre-configured The completed interface information, it should be noted that the application interface information may specifically refer to the interface information used to perform rendering. For example, if the rendering is performed based on the rendering interface of the system environment, the application interface information may be the rendering interface corresponding to the system environment. If the rendering is performed based on the rendering interface of the application, the application interface information may be the rendering interface corresponding to the application. Of course, it may also be other interfaces, and this embodiment does not specifically limit this. Thus, the application interface information corresponding to the configuration of the application may be used, combined with the aging-friendly configuration information, to render the target page to obtain page rendering information, that is, the rendering interface represented by the application interface information is used, combined with the magnification represented by the aging-friendly configuration information, to render the target page to obtain page rendering information. The page rendering information may represent the page information obtained after rendering the target page.
[0057] It can be seen that in this embodiment, when the aging-friendly function of the application is turned on, the magnification factor of the target page can be determined according to the preset aging-friendly configuration information corresponding to the application, and the target page can be rendered at the magnification factor corresponding to the aging-friendly configuration information using the application interface information configured corresponding to the application, thereby obtaining the page rendering information of the enlarged target page. In other words, there is no need to adapt and modify each page in the application in advance, so as to achieve the purpose of directly rendering and obtaining the page rendering information corresponding to the aging-friendly configuration information. This solves the problems of low efficiency and low flexibility in the existing related technology that requires pre-adaptation and modification of each page, and can effectively improve the display efficiency and flexibility of the target page.
[0058] Step S130: displaying the target page based on the page rendering information.
[0059] Specifically, after obtaining the page rendering information, the page content corresponding to the target page can be displayed based on the page rendering information. More specifically, since the target page contains multiple contents, such as text and buttons, the page rendering information at this time includes rendering information corresponding to the text and buttons, so that the output can be based on the rendering information corresponding to the text and buttons, thereby achieving the purpose of displaying the text and buttons in the target page.
[0060] In an optional embodiment of the present application, step S120 renders the target page according to the preset aging-friendly configuration information corresponding to the application, using the application interface information configured corresponding to the application, to obtain page rendering information, which may specifically include the following sub-steps: obtaining the preset aging-friendly configuration information corresponding to the application; extracting the target aging-friendly amplification factor from the aging-friendly configuration information; rendering the target page according to the target aging-friendly amplification factor, using the application interface information configured corresponding to the application, to obtain page rendering information.
[0061] In this embodiment, when the aging-friendly function of the application is turned on, the preset aging-friendly configuration information corresponding to the application can be obtained. The specific acquisition method can be obtained from the server corresponding to the application. For example, when the application is started or when the aging-friendly function is turned on, the application sends an acquisition request to the server, and the server sends the aging-friendly configuration information corresponding to the application to the application based on the acquisition request, thereby obtaining the preset aging-friendly configuration information corresponding to the application. Of course, other acquisition methods can also be used, and this embodiment does not specifically limit this; then the target aging-friendly magnification factor can be extracted from the aging-friendly configuration information. The target aging-friendly magnification factor represents the parameters corresponding to the rendering and magnification of the target page, so that the target page can be enlarged and rendered corresponding to the target aging-friendly magnification factor based on the target aging-friendly magnification factor and the application interface information corresponding to the configuration of the application to obtain page rendering information.
[0062] In an optional embodiment of the present application, a target aging-adaptive amplification factor is extracted from the aging-adaptive configuration information, which may specifically include the following sub-steps: extracting at least one aging-adaptive amplification factor and a factor identifier corresponding to each aging-adaptive amplification factor from the aging-adaptive configuration information; determining a page identifier of a target page; determining a factor identifier that matches the page identifier as a target factor identifier; and determining the aging-adaptive amplification factor corresponding to the target factor identifier as the target aging-adaptive amplification factor.
[0063] In this embodiment, since an application usually includes multiple pages, and different pages in specific scenarios can use different magnification multiples, that is, after obtaining the aging-friendly configuration information, at least one aging-friendly magnification factor and a factor identifier corresponding to each aging-friendly magnification factor can be extracted from the aging-friendly configuration information, wherein the aging-friendly magnification factor represents a multiple parameter for magnifying and rendering the page, and the factor identifier can be used to mark the identifier corresponding to the aging-friendly magnification factor used to adapt the page; then the page identifier of the target page to be rendered can be determined, and the page identifier represents the identifier used to mark the target page; thereby, the page identifier can be matched with each factor identifier, and the factor identifier matched with the page identifier can be determined as the target factor identifier, wherein the specific matching method can be to match the matching relationship table corresponding to the pre-configured page identifier and the factor identifier; and then the aging-friendly magnification factor corresponding to the target factor identifier can be determined as the target aging-friendly magnification factor, thereby achieving the purpose of determining the target aging-friendly magnification factor corresponding to the target page from the numerous aging-friendly magnification factors in the aging-friendly configuration information, that is, the application can use different target aging-friendly magnification factors for magnification rendering when displaying different target pages.
[0064] In one example, the aging-friendly amplification factor and factor identifier extracted from the aging-friendly configuration information include: the aging-friendly amplification factor 1.8 and the factor identifier corresponding to the aging-friendly amplification factor 1.8 are homepage, the aging-friendly amplification factor 1.6 and the factor identifier corresponding to the aging-friendly amplification factor 1.6 are channels, the aging-friendly amplification factor 2.0 and the factor identifier corresponding to the aging-friendly amplification factor 2.0 are play, the aging-friendly amplification factor 1.6 and the factor identifier corresponding to the aging-friendly amplification factor 1.6 are lists, the aging-friendly amplification factor 1.5 and the factor identifier corresponding to the aging-friendly amplification factor 1.5 are default, and the page identifier can be the homepage. , channel, play, list and default, that is, when the page is marked as homepage, the aging-friendly amplification factor of 1.8 can be determined as the target aging-friendly amplification factor, when the page is marked as channel, the aging-friendly amplification factor of 1.6 can be determined as the target aging-friendly amplification factor, when the page is marked as play, the aging-friendly amplification factor of 2.0 can be determined as the target aging-friendly amplification factor, when the page is marked as list, the aging-friendly amplification factor of 1.6 can be determined as the target aging-friendly amplification factor, when the page is marked as default, the aging-friendly amplification factor of 1.5 can be determined as the target aging-friendly amplification factor.
[0065] In an optional embodiment of the present application, based on the target aging-friendly magnification factor, the target page is rendered using the application interface information configured corresponding to the application to obtain page rendering information, which may specifically include the following sub-steps: based on the target aging-friendly magnification factor, determining the rendering magnification; using the application interface information, rendering the target page corresponding to the rendering magnification to obtain page rendering information.
[0066] In this embodiment, after determining the target aging-friendly magnification factor, the rendering magnification can be determined based on the target aging-friendly magnification factor. The rendering magnification indicates the magnification factor at which the target page needs to be rendered. Thus, the target page can be rendered corresponding to the rendering magnification using the application interface information to obtain page rendering information, thereby rendering and magnifying the target page in real time without the need to adapt and modify each page in advance, thus avoiding the problems of low efficiency and low flexibility, and being able to effectively simplify the rendering steps and improve flexibility.
[0067] In an optional embodiment of the present application, before step S110 determines the target page to be rendered by the application, it may further include the following sub-steps: when the application starts, obtaining the interface method configuration information corresponding to the application; using the interface method configuration information, configuring the interface method of the system environment in which the application is located, and generating application interface information.
[0068] In this embodiment, before determining the target page, the interface method configuration information corresponding to the application can be obtained when the application is started. The specific acquisition method can be to obtain it from the server corresponding to the application. For example, when the application is started, the application sends an interface method request to the server, and the server sends the interface method configuration information corresponding to the application to the application based on the interface method request. That is, different applications can use different interface method configuration information. Since page rendering usually depends on the interface of the system environment, the interface method configuration information can be used at this time to configure the interface method of the system environment in which the application is located to generate application interface information. The specific configuration method can be to replace the interface method in the system environment with the interface method in the interface method configuration information, so that the interface method of the configured system environment is determined as the application interface information.
[0069] In an optional embodiment of the present application, interface method configuration information is used to configure the interface method of the system environment in which the application is located to generate application interface information, which may specifically include the following sub-steps: based on the interface method configuration information, determine the font creation interface method and the button creation interface method; based on the interface method information of the system environment, configure according to the font creation interface method and the button creation interface method to obtain the application interface information.
[0070] In one example, the application is configured according to the interface method information of the system environment, the font creation interface method and the button creation interface method, and after obtaining the application interface information, if it is determined that the aging-friendly function of the application is turned on, the application performs uniform magnification rendering according to the rendering magnification factor corresponding to the aging-friendly configuration information. For example, the magnification factor of the home page waterfall flow page is configured to be 1.5. Then, when the application needs to display the home page waterfall flow, the home page waterfall flow is the target page, and all fonts are created on the target page. If the original standard mode, that is, the non-large font aging-friendly page, has a font size of 10 pixels, then when the aging-friendly function is turned on, the font size of the home page waterfall flow page becomes 10x1.5=15 pixels; similarly, the button size is also enlarged using this magnification factor. If the original standard button size is 100x 40 pixels in length and width, it will become 150x 60 pixels after enlargement; of course, the above is only an example for illustration, and this embodiment is not specifically limited.
[0071] In this embodiment, since the process of rendering a page usually includes the rendering of two types of data, namely fonts and buttons, in the process of configuring the interface method of the system environment, the font creation interface method and the button creation interface method can be determined based on the interface method configuration information. The font creation interface method represents an interface method for creating font size-related interfaces, and the button creation interface method represents an interface method for creating button size-related interfaces. Therefore, based on the interface method information of the system environment, the font creation interface method and the button creation interface method can be configured to obtain application interface information. Specifically, the system font interface method in the environment system can be replaced with the font creation interface method, and the system button interface method in the environment system can be replaced with the button creation interface method, thereby generating application interface information based on the replaced interface methods.
[0072] In one example, in the interface of the environmental system, the system font interface method and the system button interface method are determined. When the application is started, the system font interface method can be replaced with the font creation interface method, and the system button interface method in the environmental system can be replaced with the button creation interface method. For example, the system font interface method is [UIFontfontWithName], and the font creation interface method becomes [UIFont ql_fontWithName] when replaced. The interface method prefix "ql" is added to distinguish the exchanged interface method, and the original system interface method does not have this prefix. At this time, when the application needs to call the system method to create a font, it calls the font creation interface method [UIFont ql_fontWithName] with the "ql" prefix. Of course, in order to achieve the purpose of replacing the system font interface method with the font creation interface method, multiple interface methods can be replaced during implementation, such as Figure 2 As shown, the left side is the system font interface method, and the right side is the font creation interface method; similarly, the system button interface method is replaced with the button creation interface method. Multiple interface methods can also be replaced during implementation, such as Figure 3 As shown, the left side is the system button interface method, and the right side is the create button interface method.
[0073] In an optional embodiment of the present application, the target page is rendered using the application interface information configured corresponding to the application to obtain page rendering information, including: determining a font interface creation method and a button interface creation method based on the application interface information; rendering the font in the target page according to the font interface creation method to generate font rendering information; rendering the button in the target page according to the button interface creation method to generate button rendering information; and determining the font rendering information and the button rendering information as page rendering information.
[0074] In this embodiment, during the process of rendering the target page, a font creation interface method and a button creation interface method may be determined based on the application program interface information. Specifically, the font creation interface method and the button creation interface method may be extracted from the application program interface information, or the font creation interface method and the button creation interface method may be generated based on the application program interface information. This embodiment does not specifically limit this. Then, the font in the target page may be rendered according to the font creation interface method to generate font rendering information. Specifically, the rendering process may be to use the font creation interface method in combination with the rendering magnification corresponding to the aging-friendly configuration information to enlarge the font in the target page by rendering magnification corresponding to the rendering magnification. Then, the buttons in the target page may be rendered according to the button creation interface method to generate button rendering information. Specifically, the rendering process may be to use the button creation interface method in combination with the rendering magnification corresponding to the aging-friendly configuration information to enlarge the buttons in the target page by rendering magnification corresponding to the rendering magnification. Then, the font rendering information and the button rendering information may be determined as page rendering information.
[0075] like Figure 4 As shown, the present application also discloses an embodiment, providing a page rendering device, including:
[0076] A determination module 410 is used to determine a target page to be rendered by the application program;
[0077] The rendering module 420 is used to render the target page using the application program interface information configured corresponding to the application program according to the preset aging-friendly configuration information corresponding to the application program when the aging-friendly function of the application program is turned on, so as to obtain page rendering information;
[0078] The display module 430 is used to display the target page based on the page rendering information.
[0079] In an optional embodiment of the present application, the rendering module 420 may include:
[0080] A first acquisition unit, configured to acquire the preset aging-friendly configuration information corresponding to the application program;
[0081] An extraction unit, configured to extract a target aging-adaptive amplification factor from the aging-adaptive configuration information;
[0082] The first rendering unit is used to render the target page according to the target aging-friendly magnification factor and by using the application program interface information corresponding to the configuration of the application program to obtain page rendering information.
[0083] In an optional embodiment of the present application, the extraction unit may include:
[0084] An extraction subunit, configured to extract at least one aging-adaptive amplification factor and a factor identifier corresponding to each aging-adaptive amplification factor from the aging-adaptive configuration information;
[0085] A first determining subunit, used to determine the page identifier of the target page;
[0086] A second determining subunit is used to determine the factor identifier that matches the page identifier as a target factor identifier;
[0087] The third determining subunit is configured to determine the aging-friendly amplification factor corresponding to the target factor identifier as the target aging-friendly amplification factor.
[0088] In an optional embodiment of the present application, the first rendering unit may include:
[0089] The fourth determination sub-unit is used to determine the rendering magnification according to the target age-adaptive magnification factor; the first sub-rendering unit is used to use the application interface information to render the target page corresponding to the rendering magnification to obtain page rendering information.
[0090] In an optional embodiment of the present application, the page rendering device may further include:
[0091] An acquisition module, used to acquire interface method configuration information corresponding to the application when the application is started;
[0092] The configuration module is used to configure the interface method of the system environment where the application is located using the interface method configuration information to generate the application interface information.
[0093] In an optional embodiment of the present application, the configuration module may include:
[0094] A first determining unit, configured to determine a font creation interface method and a button creation interface method based on the interface method configuration information;
[0095] The configuration unit is used to configure according to the font creation interface method and the button creation interface method based on the interface method information of the system environment to obtain the application program interface information.
[0096] In an optional embodiment of the present application, the rendering module 420 may include:
[0097] A second determining unit, configured to determine a font interface creation method and a button interface creation method based on the application program interface information;
[0098] A second rendering unit, configured to render the font in the target page according to the font creation interface method, and generate font rendering information;
[0099] A third rendering unit, configured to render the button in the target page according to the button interface creation method, and generate button rendering information;
[0100] The third determining unit is used to determine the font rendering information and the button rendering information as the page rendering information.
[0101] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0102] like Figure 5 As shown, an embodiment of the present application provides an electronic device, including a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540;
[0103] A memory 530, for storing computer programs;
[0104] In one embodiment of the present application, the processor 510, when being used to execute the program stored in the memory 530, implements the page rendering method provided by any of the aforementioned method embodiments, by determining the target page to be rendered by the application, and when the aging-friendly function of the application is turned on, according to the preset aging-friendly configuration information corresponding to the application, the target page is rendered using the application interface information configured corresponding to the application, to obtain page rendering information, and then the target page is displayed based on the page rendering information, thereby eliminating the need to adapt and modify each page in advance, thereby achieving the purpose of directly rendering to obtain the page rendering information corresponding to the aging-friendly configuration information, solving the problems of low efficiency and low flexibility in the existing related technology that requires pre-adaptation and modification of each page, and can effectively improve the display efficiency and flexibility of the target page.
[0105] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the page rendering method provided in any of the aforementioned method embodiments is implemented, by determining a target page to be rendered by an application, and when the aging-friendly function of the application is turned on, the target page is rendered according to the preset aging-friendly configuration information corresponding to the application, using the application interface information configured corresponding to the application, to obtain page rendering information, and then displaying the target page based on the page rendering information, thereby eliminating the need to adapt and modify each page in advance, and achieving the purpose of directly rendering to obtain the page rendering information corresponding to the aging-friendly configuration information, solving the problems of low efficiency and low flexibility in the existing related technology that requires pre-adaptation and modification of each page, and can effectively improve the display efficiency and flexibility of the target page.
[0106] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0107] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0108] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A page rendering method, characterized in that: include: Determine the target page to be rendered by the application; When the aging-friendly function of the application is turned on, according to preset aging-friendly configuration information corresponding to the application, the target page is rendered using application program interface information configured corresponding to the application to obtain page rendering information; The target page is displayed based on the page rendering information.
2. The page rendering method according to claim 1, characterized in that: The step of rendering the target page according to the preset aging-friendly configuration information corresponding to the application program and using the application program interface information corresponding to the application program to obtain the page rendering information includes: Obtaining the preset aging-friendly configuration information corresponding to the application; Extracting a target aging-adaptive amplification factor from the aging-adaptive configuration information; According to the target aging-friendly magnification factor, the target page is rendered using the application program interface information corresponding to the configuration of the application program to obtain page rendering information.
3. The page rendering method according to claim 2, characterized in that: The step of extracting a target aging-friendly amplification factor from the aging-friendly configuration information includes: Extracting at least one aging-adaptive amplification factor and a factor identifier corresponding to each aging-adaptive amplification factor from the aging-adaptive configuration information; Determine a page identifier of the target page; Determine the factor identifier that matches the page identifier as a target factor identifier; The aging-friendly amplification factor corresponding to the target factor identifier is determined as the target aging-friendly amplification factor.
4. The page rendering method according to claim 2, characterized in that: According to the target aging-friendly magnification factor, the target page is rendered using the application program interface information corresponding to the configuration of the application program to obtain page rendering information, including: Determining a rendering magnification factor according to the target aging-friendly magnification factor; The target page is rendered corresponding to the rendering magnification by utilizing the application program interface information to obtain page rendering information.
5. The page rendering method according to claim 1, characterized in that: Before determining the target page to be rendered by the application, the method further includes: When the application is started, obtaining interface method configuration information corresponding to the application; The interface method configuration information is used to configure the interface method of the system environment where the application is located, and the application interface information is generated.
6. The page rendering method according to claim 5, characterized in that: The adopting the interface method configuration information to configure the interface method of the system environment where the application is located to generate the application interface information includes: Based on the interface method configuration information, determine a font creation interface method and a button creation interface method; Based on the interface method information of the system environment, configuration is performed according to the font creation interface method and the button creation interface method to obtain the application program interface information.
7. The page rendering method according to claim 1, characterized in that: The step of rendering the target page using the application program interface information configured corresponding to the application program to obtain page rendering information includes: Based on the application program interface information, determine a font interface creation method and a button interface creation method; Rendering the font in the target page according to the font creation interface method to generate font rendering information; Rendering the button in the target page according to the button interface creation method to generate button rendering information; The font rendering information and the button rendering information are determined as the page rendering information.
8. A page rendering device, characterized in that: include: A determination module is used to determine a target page to be rendered by the application; A rendering module, configured to render the target page using application program interface information configured corresponding to the application program according to preset aging-friendly configuration information corresponding to the application program when the aging-friendly function of the application program is turned on, so as to obtain page rendering information; A display module is used to display the target page based on the page rendering information.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the page rendering method described in any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the page rendering method according to any one of claims 1 to 7 is implemented.
