CN112000336A - Interface rendering method, electronic device and computer-readable storage medium - Google Patents

Interface rendering method, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN112000336A
CN112000336A CN202010776243.XA CN202010776243A CN112000336A CN 112000336 A CN112000336 A CN 112000336A CN 202010776243 A CN202010776243 A CN 202010776243A CN 112000336 A CN112000336 A CN 112000336A
Authority
CN
China
Prior art keywords
interface
rendering data
specified type
rendering
interface element
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
Application number
CN202010776243.XA
Other languages
Chinese (zh)
Inventor
杨华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN202010776243.XA priority Critical patent/CN112000336A/en
Publication of CN112000336A publication Critical patent/CN112000336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The application provides an interface rendering method, an electronic device and a computer readable storage medium. The embodiment of the application intercepts the original rendering data of the specified type interface elements on the interface by responding to the detection of the interface to be rendered and adjusting the mark information according to the rendering, and then, adjusts and processes the original rendering data of each interface element in the specified type interface elements to obtain the dynamic rendering data of each interface element in the specified type interface elements, so that the dynamic rendering data of each interface element in the specified type interface elements can be utilized, and the interface is rendered without additionally realizing multiple sets of applied development codes by only realizing one set of applied development codes, thereby realizing the interface presentation style of multiple application modes and avoiding the reduction of the applied development efficiency.

Description

Interface rendering method, electronic device and computer-readable storage medium
[ technical field ] A method for producing a semiconductor device
The present application relates to the field of interface processing technologies, and in particular, to a rendering technology, and in particular, to an interface rendering method, an electronic device, and a computer-readable storage medium.
[ background of the invention ]
With the deep development of the internet, Applications (APPs) applied to terminals are in the endlessly. To accommodate different display requirements of a user for the same application, some applications provide interface presentation styles in multiple modes, such as day mode and night mode, for selection by the user.
However, the interface presentation style in multiple modes requires multiple sets of development codes for respective applications, which results in a reduction in development efficiency of the applications.
[ summary of the invention ]
Aspects of the present disclosure provide a rendering method of an interface, an electronic device, and a computer-readable storage medium.
In one aspect of the present application, a method for rendering an interface is provided, including:
in response to the detection of the interface to be rendered, intercepting original rendering data of interface elements of a specified type on the interface according to rendering adjustment mark information;
adjusting the original rendering data of each interface element in the interface elements of the specified type to obtain dynamic rendering data of each interface element in the interface elements of the specified type;
and rendering each interface element in the interface of the specified type by using the dynamic rendering data of each interface element in the interface of the specified type.
In another aspect of the present application, there is provided an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of rendering an interface as provided in an aspect above.
In another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements a rendering method of an interface as provided in the above aspect.
According to the technical scheme, the original rendering data of the interface elements of the designated type on the interface are intercepted according to the rendering adjustment mark information in response to the detection of the interface to be rendered, and then the original rendering data of all the interface elements in the interface elements of the designated type are adjusted to obtain the dynamic rendering data of all the interface elements in the interface elements of the designated type, so that the dynamic rendering data of all the interface elements in the interface elements of the designated type can be utilized to render all the interface elements in the interface elements of the designated type on the interface, multiple sets of development codes of application are not needed to be additionally realized, the interface presentation styles of multiple modes can be realized only by realizing one set of development codes of the application, and the reduction of the development efficiency of the application is avoided.
In addition, by adopting the technical scheme provided by the application, the rendering data of the application interface can be replaced by one key only by configuring the value of the specific flag bit for indicating whether the rendering data needs to be adjusted, so that the rendering efficiency of the application interface is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to the drawings without inventive labor.
Fig. 1 is a schematic flowchart of a rendering method of an interface according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an implementation of the embodiment shown in FIG. 1;
FIG. 3 is a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a mobile phone, a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a Personal Computer (PC), an MP3 player, an MP4 player, a wearable device (e.g., smart glasses, smart watch, smart bracelet, etc.), and the like.
In addition, the term "and/or" in the embodiment of the present application is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the embodiment of the present application generally indicates that the preceding and following related objects are in an "or" relationship.
Fig. 1 is a schematic flowchart of an interface rendering method according to an embodiment of the present disclosure, as shown in fig. 1.
101. And in response to the detection of the interface to be rendered, intercepting original rendering data of the interface element of the specified type on the interface according to the rendering adjustment mark information.
102. And adjusting the original rendering data of each interface element in the interface elements of the specified type to obtain the dynamic rendering data of each interface element in the interface elements of the specified type.
103. And rendering each interface element in the interface of the specified type by using the dynamic rendering data of each interface element in the interface of the specified type.
The specified type interface elements may be all type interface elements on the application interface, or may also be some specific type interface elements on the application interface, for example, a View class (i.e., a base class of all visual controls) and a control of a subclass thereof on the android application interface, a control of a TextView (text View control) class and a subclass thereof inherited from the View class, a control of an ImageView (image View control) class and a subclass thereof inherited from the View class, and the like, which is not particularly limited in this embodiment.
101-103 can be executed for interface elements of a specified type on an interface, and then 101-103 is not executed for interface elements of other types except for the interface elements of the specified type on the interface, and the existing flow can be directly utilized to perform rendering processing, namely, the original rendering data of the interface elements of other types except for the interface elements of the specified type on the interface is utilized to perform rendering processing on the interface elements of other types.
It should be noted that part or all of the execution subjects 101 to 103 may be an application located in the terminal, or may also be a functional unit such as a plug-in or Software Development Kit (SDK) set in the application located in the terminal, or may also be a processing engine located in a network side server, which is not particularly limited in this embodiment.
It is to be understood that the application may be a native app (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment.
In this way, in response to the detection of the interface to be rendered, the original rendering data of the interface elements of the designated type on the interface is intercepted according to the rendering adjustment flag information, and then the original rendering data of each interface element in the interface elements of the designated type is adjusted to obtain the dynamic rendering data of each interface element in the interface elements of the designated type, so that the interface rendering styles of multiple modes can be applied by using the dynamic rendering data of each interface element in the interface elements of the designated type to render each interface element in the interface elements of the designated type without additionally realizing multiple sets of development codes of the application but only realizing one set of development codes of the application, thereby avoiding the reduction of the development efficiency of the application.
In the application, before the application can be started, a specific flag bit for indicating whether the rendering data needs to be adjusted or not can be configured, and a user configures a value of the specific flag bit according to needs. The value of the specific flag bit used for indicating whether the rendering data needs to be adjusted is configured, so that the rendering data of the application interface can be replaced by one key, and the rendering efficiency of the application interface is improved.
Specifically, the configured value of the specific flag bit may be stored in a storage device of the terminal.
In a specific implementation process, the storage device of the terminal may be a slow storage device, specifically, a hard disk of a computer system, or may also be a non-operating Memory of a mobile phone, that is, a physical Memory, such as a Read-Only Memory (ROM), a Memory card, and the like, which is not limited in this embodiment.
In another specific implementation process, the storage device of the terminal may also be a fast storage device, specifically, a Memory of a computer system, or may also be a running Memory of a mobile phone, that is, a system Memory, for example, a Random Access Memory (RAM), and the like, which is not particularly limited in this embodiment.
Optionally, in a possible implementation manner of this embodiment, the rendering adjustment flag information may be a value of a specific flag bit configured in advance. In 101, a response operation of detecting the interface to be rendered may be specifically executed according to a value of a pre-configured specific flag.
If the value of the specific flag bit indicates that the rendering data needs to be adjusted, a response operation of detecting the interface to be rendered in 101 may be further performed, that is, the original rendering data of the interface element of the specified type on the interface is intercepted.
If the value of the specific flag bit indicates that the rendering data does not need to be adjusted, the response operation of detecting the interface to be rendered in 101 may not be executed any more, but may be executed directly according to the existing flow, that is, the original rendering data of all types of interface elements on the interface are used to perform rendering processing on each type of interface element on the interface.
Optionally, in a possible implementation manner of this embodiment, as a trigger condition for executing 101, that is, when an interface to be rendered is detected, it may be specifically detected that a system starts a first interface, and the first interface is determined as the interface to be rendered.
The first interface refers to a current application interface of an application started by the system, and is not particularly specific to a certain specific interface, for example, when an android operating system starts a window (Activity), the window (Activity) is determined as an interface to be rendered.
Optionally, in a possible implementation manner of this embodiment, in 101, raw rendering data of an interface element of a specified type on the interface may be intercepted specifically by using a Java Reflection (Reflection) mechanism.
Specifically, a Java Reflection (Reflection) mechanism may be implemented by using a Hook (Hook) function to intercept original rendering data of an interface element of a specified type on the interface, so as to implement functions of dynamically acquiring class information and dynamically calling an object method.
In this application, the adjustment processing performed on the original rendering data may be adjustment processing of a color value, or may also be adjustment processing of transparency, or may also be adjustment processing of saturation, or may also be adjustment processing of brightness, or may also be adjustment processing of any two or more data, which is not particularly limited in this embodiment.
Optionally, in a possible implementation manner of this embodiment, in 102, a preset parameter index table may be specifically queried by using the original rendering data of each interface element in the interface elements of the specified type, so as to obtain dynamic rendering data of each interface element.
In this implementation manner, a parameter index table, for example, a color inversion value index table, may be preset, so as to perform query by using the original rendering data to obtain corresponding dynamic rendering data.
After the parameter index table is set, the set parameter index table may be further subjected to storage processing.
Specifically, the set parameter index table may be stored in a storage device of the terminal.
In a specific implementation process, the storage device of the terminal may be a slow storage device, specifically, a hard disk of a computer system, or may also be a non-operating Memory of a mobile phone, that is, a physical Memory, such as a Read-Only Memory (ROM), a Memory card, and the like, which is not limited in this embodiment.
In another specific implementation process, the storage device of the terminal may also be a fast storage device, specifically, a Memory of a computer system, or may also be a running Memory of a mobile phone, that is, a system Memory, for example, a Random Access Memory (RAM), and the like, which is not particularly limited in this embodiment.
Optionally, in a possible implementation manner of this embodiment, in 102, the original rendering data of each interface element in the interface elements of the specified type may be specifically adjusted by using the environment data of the terminal where the terminal is located, so as to obtain the dynamic rendering data of each interface element.
Specifically, the dynamic rendering data calculation may be specifically performed according to the environment data of the terminal where the terminal is located and the original rendering data of each interface element in the interface elements of the specified type, so as to obtain corresponding dynamic rendering data.
In this embodiment, in response to detection of an interface to be rendered, according to rendering adjustment flag information, original rendering data of interface elements of a specified type on the interface is intercepted, and then the original rendering data of each interface element in the interface elements of the specified type is adjusted to obtain dynamic rendering data of each interface element in the interface elements of the specified type, so that the interface presentation styles of multiple modes can be applied only by implementing a set of development codes instead of implementing multiple sets of development codes of an application by using the dynamic rendering data of each interface element in the interface elements of the specified type.
In addition, by adopting the technical scheme provided by the application, the rendering data of the application interface can be replaced by one key only by configuring the value of the specific flag bit for indicating whether the rendering data needs to be adjusted, so that the rendering efficiency of the application interface is improved.
The specific implementation of the present embodiment will be further described in detail through a specific application scenario for adjusting color values in the original rendering data, as shown in fig. 2.
201. And when the application is started, reading the configuration from the storage device of the terminal to obtain the value of the specific zone bit.
Wherein, the value of the specific flag bit can indicate whether the rendering data needs to be adjusted. For example, a value of 1 indicates that the rendering data needs to be adjusted; a value of 0 indicates that no adjustment of the rendering data is required.
202. When an operating system starts a window (Activity), whether the rendering data needs to be adjusted is determined according to the value of the specific flag bit. If the rendering data needs to be adjusted, executing 203; if it is determined that no adjustment of the rendering data is needed, 205 is performed.
203. Traversing all controls (VIEW) of the window, if the controls belong to any specified type of controls among controls of a View class and subclasses thereof, controls of a TextView class and subclasses thereof, and controls of an ImageView class and subclasses thereof, intercepting original rendering data of the controls by using a Java reflection mechanism, querying a preset color reversal color value index table by using color values in the original rendering data, adjusting the color values, and obtaining dynamic rendering data of the controls, wherein the dynamic rendering data contains the adjusted color values.
For a control belonging to any specified type, after a color value which only needs to be set in an original logic code of the control is obtained, the color value can be adjusted by inquiring a preset color reversal color value index table, and a reversed color value is obtained. For example, white 0 xfffffff, by looking up the color inversion value index table, black 0x000000 is obtained. And after the reverse color value after the color value adjustment is finished is obtained, further calling an operating system color setting method, and finally finishing the dynamic replacement of the color value into the reverse color value.
204. And rendering each control in the specified type of control by using the dynamic rendering data which belongs to each control of any specified type and contains the adjusted color value.
If the control does not belong to any specified type control in the controls of the View class and subclass thereof, the controls of the TextView class and subclass thereof, and the controls of the ImageView class and subclass thereof, rendering each control in other types of controls by using the original rendering data of each control.
205. And rendering each control by using the original rendering data of each control of the window.
By this time, each control in the window has completed the rendering process.
In the embodiment, when the controls belonging to any specified type are created, the original rendering method of each control is intercepted by directly using the own code, so that the method for setting the color in the created controls becomes the own code. All relevant controls of the window are created after being intercepted, and the logic codes of the controls are intercepted when setting the color and are all created through the intercepted method.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Another embodiment of the present application further provides an apparatus, including: one or more processors; a storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, enable the one or more processors to implement the interface rendering method provided in any embodiment corresponding to fig. 1 or fig. 2.
FIG. 3 illustrates a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application. The computer system/server 12 shown in FIG. 3 is only one example and should not be taken to limit the scope of use or functionality of embodiments of the present application.
As shown in FIG. 3, computer system/server 12 is in the form of a general purpose computing device. The components of computer system/server 12 may include, but are not limited to: one or more processors or processing units 16, a storage device or system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The computer system/server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
The computer system/server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the computer system/server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system/server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 44. Also, the computer system/server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown, network adapter 20 communicates with the other modules of computer system/server 12 via bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer system/server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a rendering method of an interface provided in any of the embodiments corresponding to fig. 1 or fig. 2.
Another embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the interface rendering method provided in any embodiment corresponding to fig. 1 or fig. 2.
In particular, any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or page components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for rendering an interface, comprising:
in response to the detection of the interface to be rendered, intercepting original rendering data of interface elements of a specified type on the interface according to rendering adjustment mark information;
adjusting the original rendering data of each interface element in the interface elements of the specified type to obtain dynamic rendering data of each interface element in the interface elements of the specified type;
and rendering each interface element in the interface of the specified type by using the dynamic rendering data of each interface element in the interface of the specified type.
2. The method of claim 1, wherein the detecting the interface to be rendered comprises:
detecting that a system starts a first interface, and determining the first interface as the interface to be rendered.
3. The method according to claim 1, wherein the rendering adjustment flag information is a value of a specific flag bit; the intercepting of the original rendering data of the interface element of the specified type on the interface according to the rendering adjustment mark information comprises the following steps:
and if the value of the specific flag bit indicates that rendering data needs to be adjusted, intercepting and capturing original rendering data of the interface element of the specified type on the interface.
4. The method of claim 3, further comprising:
and if the value of the specific flag bit indicates that the rendering data does not need to be adjusted, rendering each type of interface element on the interface by using the original rendering data of all types of interface elements on the interface.
5. The method of claim 1, wherein intercepting raw rendering data for a specified type of interface element on the interface comprises:
and intercepting original rendering data of the interface elements of the specified type on the interface by using a Java reflection mechanism.
6. The method according to any one of claims 1 to 5, wherein the adjusting the raw rendering data of each interface element in the interface elements of the specified type to obtain the dynamic rendering data of each interface element in the interface elements of the specified type comprises:
and querying a preset parameter index table by using the original rendering data of each interface element in the specified type of interface elements to obtain the dynamic rendering data of each interface element.
7. The method according to any one of claims 1 to 5, wherein the adjusting the raw rendering data of each interface element in the interface elements of the specified type to obtain the dynamic rendering data of each interface element in the interface elements of the specified type comprises:
and adjusting the original rendering data of each interface element in the interface elements of the specified type by using the environment data of the terminal to obtain the dynamic rendering data of each interface element.
8. The method according to any one of claims 1 to 5, further comprising:
and rendering each other type of interface element on the interface by using the original rendering data of other types of interface elements except the interface element of the specified type on the interface.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
CN202010776243.XA 2020-08-05 2020-08-05 Interface rendering method, electronic device and computer-readable storage medium Pending CN112000336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010776243.XA CN112000336A (en) 2020-08-05 2020-08-05 Interface rendering method, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010776243.XA CN112000336A (en) 2020-08-05 2020-08-05 Interface rendering method, electronic device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN112000336A true CN112000336A (en) 2020-11-27

Family

ID=73463085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010776243.XA Pending CN112000336A (en) 2020-08-05 2020-08-05 Interface rendering method, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112000336A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467663A (en) * 2021-09-06 2021-10-01 北京达佳互联信息技术有限公司 Interface configuration method and device, computer equipment and medium
WO2022142793A1 (en) * 2020-12-31 2022-07-07 Oppo广东移动通信有限公司 Interface rendering method and apparatus, wearable device, and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142793A1 (en) * 2020-12-31 2022-07-07 Oppo广东移动通信有限公司 Interface rendering method and apparatus, wearable device, and readable storage medium
CN113467663A (en) * 2021-09-06 2021-10-01 北京达佳互联信息技术有限公司 Interface configuration method and device, computer equipment and medium
CN113467663B (en) * 2021-09-06 2023-09-05 北京达佳互联信息技术有限公司 Interface configuration method, device, computer equipment and medium

Similar Documents

Publication Publication Date Title
US20200026335A1 (en) Electronic apparatus having a hole area within screen and control method thereof
CN107463627B (en) Picture loading method and terminal
CN107515759B (en) Screen capture method and device, electronic equipment and readable storage medium
CN107925749B (en) Method and apparatus for adjusting resolution of electronic device
US9888061B2 (en) Method for organizing home screen and electronic device implementing the same
US9804767B2 (en) Light dismiss manager
EP3734435A1 (en) Electronic device having hole area and method of controlling hole area thereof
US10235945B2 (en) Apparatus and method for controlling display in electronic device having processors
KR102343990B1 (en) Device For Controlling Respectively Multiple Areas of Display and Method thereof
US20190102925A1 (en) System, method, and electronic device for information duplication and machine-readable storage medium
CN111866577B (en) Screen recording method, electronic device and computer readable storage medium
CN112000336A (en) Interface rendering method, electronic device and computer-readable storage medium
CN109857573B (en) Data sharing method, device, equipment and system
US20210191580A1 (en) Method and Apparatus for Displaying Application Program, Terminal Device, and Storage Medium
CN110750664A (en) Picture display method and device
US20200034101A1 (en) Data displaying method and electronic device
CN110018978B (en) Data transmission method and system
US20190096022A1 (en) Watermark image processing method and apparatus, device and computer readable storage medium
CN107862010B (en) Method and device for acquiring information of application system of Internet of things and mobile terminal
CN109559319B (en) Normal map processing method and terminal
US20150293679A1 (en) Method and Device for Controlling Switching of Virtual Navigation Bar
CN112905931B (en) Page information display method and device, electronic equipment and storage medium
US20190065474A1 (en) Synonymy tag obtaining method and apparatus, device and computer readable storage medium
CN106294143B (en) Debugging method and device for chip register
EP3139266A1 (en) Apparatus and method for providing information in electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination