Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page adaptation method and device

A page and original technology, applied in the computer field, can solve the problems of manpower and cost, easily causing other problems, and not being able to adapt to all models and systems, so as to achieve the effect of replacing pictures and saving adaptation costs

Pending Publication Date: 2021-07-23
BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It depends on the system version and cannot be adapted to all models and systems; two sets of theme resources need to be built in, and the APP update needs to follow the release version; all positions that need to be adapted need to modify the original code, which is labor-intensive and costly, and the original code must be modified prone to other problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Page adaptation method and device
  • Page adaptation method and device
  • Page adaptation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0047] figure 1 is a schematic diagram of the main steps of the page adaptation method according to the embodiment of the present invention.

[0048] Such as figure 1 As shown, the page adaptation method in the embodiment of the present invention mainly includes the following steps:

[0049] Step S101: Parse the layout file of the currently opened page, replace the orig...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a page adaptation method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of analyzing a layout file of a currently opened page, replacing an original control of the layout file with a new control in an analysis process, and constructing a control set by using the new control; wherein the target method of the original control is rewritten in the new control; when a switching event of the theme mode is monitored, distributing the switching event to a new control in the control set; executing the target method rewritten in the new control to determine that the theme mode indicated by the switching event is a target mode, obtaining theme resources corresponding to the target mode, and using the theme resources to render the page. According to the method, in the process of analyzing the layout file, the original control is replaced with the self-defined new control, the target method is rewritten in the new control, then when the switching event is monitored, the rewritten target method in the new control is executed, non-intrusive page adaptation is achieved, original codes are not affected, and the adaptation cost is saved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a page adaptation method and device. Background technique [0002] Currently, operating systems of terminal devices, such as iOS operating systems and Android operating systems, add a dark theme (Dark Theme). After using the dark theme, each application (Application, APP) also needs to adapt to the dark theme. Among them, the dark theme refers to a design in which a large area of ​​dark color is used in a user interface (User Interface, UI) to form an interface, and it is a supplement to the default theme of a product. [0003] There are three main ways to adapt the existing dark theme, the first is to use the system's automatic adaptation scheme; the second requires the built-in default resources and dark resources in the APP, and obtain different resources according to the theme mode; the third is in the During the development process, before setting the picture or ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F8/76
CPCG06F8/38G06F8/76
Inventor 崔海洋
Owner BEIJING JINGDONG TUOXIAN TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products