CN-121979420-A - Page component display method, device, equipment, chip and chip module
Abstract
The application relates to a page component display method, a page component display device, computer equipment, a chip and a chip module. The method comprises the steps of responding to a starting instruction of a target mode, analyzing all to-be-processed components contained in a target page from a layout file of the target page, determining the component type of each to-be-processed component based on a configuration database, wherein the component type comprises a hidden type or a non-hidden type, redrawing the to-be-processed components of the non-hidden type to obtain first display data, and displaying the target page containing the first display data. Therefore, whether the application program supports the component shielding function or not can selectively display each component to be processed in the target page based on the component type through the page drawing flow of the system layer, so that the number of components displayed in the target page is effectively reduced, and the visual effect and operability of the target page are improved.
Inventors
- WANG QINGJUN
- Rao Guoming
- YANG HE
Assignees
- 展讯通信(上海)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260129
Claims (10)
- 1. A method for displaying a page component, the method comprising: Responding to a starting instruction of a target mode, and analyzing each component to be processed included in a target page from a layout file of the target page; determining the component type of each component to be processed based on a configuration database, wherein the component type comprises a hidden type or a non-hidden type; and redrawing the to-be-processed component of the non-hidden type to obtain first display data, and displaying a target page containing the first display data.
- 2. The method of claim 1, wherein the configuration database includes a degree of interest for each of the components to be processed, wherein the determining the component type for each of the components to be processed based on the configuration database comprises: querying the configuration database, determining a first component of which the attention degree meets a preset attention degree condition from all the components to be processed, and determining the component type of the first component to be a non-hidden type; Calculating target areas of the first component and each second component in the target page according to the layout file, wherein the second components are other components of the components to be processed except the first component; In each second component, determining that the component type of the second component is a hidden type in response to the target area of the second component and the target area of the first component meeting preset shielding conditions, and determining that the component type of the second component is a non-hidden type in response to the target area of the second component and the target area of the first component not meeting the preset shielding conditions.
- 3. The method of claim 1, wherein the configuration database includes component types for each of the components to be processed, wherein the determining the component type for each of the components to be processed based on the configuration database includes: and reading the component type of each component to be processed from the configuration database.
- 4. A method according to claim 3, characterized in that the method further comprises: Responding to the triggering operation of the component setting control of the target page, and displaying selectable controls corresponding to the components to be processed in the target page; in response to a selection operation of a target selectable control, determining a component type of the component to be processed corresponding to the target selectable control as a hidden type, and determining a component type of the component to be processed corresponding to the selectable control which is not selected as a non-hidden type; and correspondingly storing the layout file, the components to be processed and the corresponding component types into the configuration database.
- 5. The method according to claim 1, wherein the method further comprises: responding to an exit instruction of the target mode, and analyzing each to-be-processed component included in the target page from a layout file of the target page; Redrawing each to-be-processed component to obtain second display data, and displaying the target page containing the second display data.
- 6. The method of claim 5, wherein the method further comprises: In the case of not being in the target mode, responding to a first trigger operation of a mode switching control of the target page, generating a starting instruction of the target mode, and/or, And under the condition of being in the target mode, responding to a second trigger operation of a mode switching control of the target page, and generating an exit instruction of the target mode.
- 7. A page assembly display device, the device comprising: The analysis module is used for responding to a starting instruction of a target mode and analyzing each component to be processed included in the target page from a layout file of the target page; The determining module is used for determining the component type of each component to be processed based on a configuration database, wherein the component type comprises a hidden type or a non-hidden type; And the display module is used for redrawing the non-hidden type to-be-processed component to obtain first display data and displaying a target page containing the first display data.
- 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
- 9. A chip comprising a processor and a communication interface, the processor being configured to cause the chip to perform the steps of the method of any one of claims 1 to 6.
- 10. The chip module is characterized by comprising a communication module, a power supply module, a storage module and a chip, wherein the power supply module is used for providing electric energy for the chip module, the storage module is used for storing data and instructions, the communication module is used for carrying out internal communication of the chip module or carrying out communication between the chip module and external equipment, and the chip is used for executing the steps of the method of any one of claims 1 to 6.
Description
Page component display method, device, equipment, chip and chip module Technical Field The present application relates to the field of computer technologies, and in particular, to a method and apparatus for displaying a page component, a computer device, a chip, and a chip module. Background In the use process of the electronic device, the display interface of each application program generally includes a plurality of components, for example, in addition to a video playing component, a praise button, a comment button, a collection button and other components for realizing an interaction function in a video browsing interface. In the traditional interface display method, if a user needs to shield a certain component, the used application program is often required to support the component shielding function, but not all application programs support the function, so that a part of components which are not concerned by the user are continuously displayed in the display interface, and even information which is concerned by the user is shielded, so that the visual effect of the display interface is disordered, and the flexibility and operability are poor. Disclosure of Invention Based on the foregoing, it is necessary to provide a method, an apparatus, a computer device, a chip and a chip module for displaying a page component, so as to improve the visual effect of a display interface and enhance the flexibility and operability of page display. In a first aspect, the present application provides a page component display method, including: Responding to a starting instruction of a target mode, and analyzing each component to be processed included in a target page from a layout file of the target page; determining the component type of each component to be processed based on a configuration database, wherein the component type comprises a hidden type or a non-hidden type; and redrawing the to-be-processed component of the non-hidden type to obtain first display data, and displaying a target page containing the first display data. In one embodiment, the configuration database comprises attention of each component to be processed, and the determining the component type of each component to be processed based on the configuration database comprises the following steps: querying the configuration database, determining a first component of which the attention degree meets a preset attention degree condition from all the components to be processed, and determining the component type of the first component to be a non-hidden type; Calculating target areas of the first component and each second component in the target page according to the layout file, wherein the second components are other components of the components to be processed except the first component; In each second component, determining that the component type of the second component is a hidden type in response to the target area of the second component and the target area of the first component meeting preset shielding conditions, and determining that the component type of the second component is a non-hidden type in response to the target area of the second component and the target area of the first component not meeting the preset shielding conditions. In one embodiment, the configuration database comprises the component types of the components to be processed, and the determining the component types of the components to be processed based on the configuration database comprises the following steps: and reading the component type of each component to be processed from the configuration database. In one embodiment, the method further comprises: Responding to the triggering operation of the component setting control of the target page, and displaying selectable controls corresponding to the components to be processed in the target page; in response to a selection operation of a target selectable control, determining a component type of the component to be processed corresponding to the target selectable control as a hidden type, and determining a component type of the component to be processed corresponding to the selectable control which is not selected as a non-hidden type; and correspondingly storing the layout file, the components to be processed and the corresponding component types into the configuration database. In one embodiment, the method further comprises: responding to an exit instruction of the target mode, and analyzing each to-be-processed component included in the target page from a layout file of the target page; Redrawing each to-be-processed component to obtain second display data, and displaying the target page containing the second display data. In one embodiment, the method further comprises: In the case of not being in the target mode, responding to a first trigger operation of a mode switching control of the target page, generating a starting instruction of the target mode, and/or, And under the condition of being in the target mode