CN110035181B - Method and terminal for setting theme of quick application card - Google Patents
Method and terminal for setting theme of quick application card Download PDFInfo
- Publication number
- CN110035181B CN110035181B CN201910294525.3A CN201910294525A CN110035181B CN 110035181 B CN110035181 B CN 110035181B CN 201910294525 A CN201910294525 A CN 201910294525A CN 110035181 B CN110035181 B CN 110035181B
- Authority
- CN
- China
- Prior art keywords
- card
- theme
- fast application
- information
- loaded
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method and a terminal for setting a theme of a quick application card, and relates to the technical field of communication. The fast application card theme setting method comprises the following steps: acquiring attribute information of a fast application card to be loaded; downloading the card body of the fast application card to be loaded according to the attribute information; analyzing the card packet body, and obtaining an analysis result, wherein the analysis result comprises card page element information; and setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information. According to the embodiment of the invention, whether the card component uses the theme is judged according to the analysis result of the card body, and after the theme used by the component is determined, the card theme is set by using the target theme information, so that the cards can be displayed in the theme of a uniform style in different application scenes, the cards can be displayed in different themes in interfaces of different application scenes, and the setting of the card theme has higher flexibility.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method and a terminal for setting a theme of a quick application card.
Background
The quick application is a novel mobile phone application form jointly released by ten mobile phone manufacturers, the quick application does not need to be downloaded and installed, the quick application can be used on demand, and the card belongs to a page defined in the quick application and is an information carrier which is embedded into other applications to be displayed as a representation mode. A fast application can correspond to a plurality of cards, and each card can only correspond to one page. Cards may be embedded in a presentation in a native application for various types of usage scenarios, such as: negative one screen, global search, smart scene, etc.
In the prior art, the fast application cards do not support the setting of the theme of the developers, and the cards developed by each developer have different styles, so that when the cards of a plurality of developers are displayed in a terminal system, the cards cannot be displayed in a uniform style when displayed in the native application. For example, the application in these usage scenarios may display cards of different developers on the same terminal screen, which may cause the cards to have different styles and inconsistent User Interface (UI) display, resulting in poor visual experience for the user.
Disclosure of Invention
The embodiment of the invention provides a fast application card theme setting method and a terminal, and aims to solve the problem that existing fast application cards are not uniform in theme.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for setting a theme of a fast application card, including:
acquiring attribute information of a fast application card to be loaded;
downloading the card body of the fast application card to be loaded according to the attribute information;
analyzing the card packet body, and obtaining an analysis result, wherein the analysis result comprises card page element information;
and setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the acquisition module is used for acquiring the attribute information of the fast application card to be loaded;
the downloading module is used for downloading the card body of the fast application card to be loaded according to the attribute information;
the analysis module is used for analyzing the card packet body and obtaining an analysis result, and the analysis result comprises card page element information;
and the setting module is used for setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information.
In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the fast application card theme setting method described above.
Therefore, in the embodiment of the invention, whether the card component uses the theme is judged according to the analysis result of the card packet, and after the theme used by the component is determined, the card theme is set by using the target theme information, so that the cards can be displayed in the theme with the uniform style in different application scenes, the cards can be displayed in different themes in interfaces of different application scenes, and the setting of the card theme has higher flexibility.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a fast application card theme setting method according to an embodiment of the present invention;
FIG. 2 is a second flowchart illustrating a method for setting a theme of a fast application card according to an embodiment of the present invention;
fig. 3 is a block diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
As shown in fig. 1, the method for setting a theme of a fast application card according to an embodiment of the present invention includes:
the fast application card theme setting method is applied to a fast application engine of a terminal, and the fast application engine acquires attribute information of a fast application card to be loaded, wherein the attribute information of the fast application card to be loaded comprises Uniform Resource locator (Uniform Resource L assignment, UR L) information of the fast application card to be loaded.
102, downloading a card body of the fast application card to be loaded according to the attribute information;
and the fast application engine downloads a card packet of the fast application card to be loaded from the server according to the attribute information, wherein the card packet is a compressed packet of a card layout file designed by a developer. When a developer designs a card layout file, adding theme attribute parameters, namely theme using marks, to components in the card layout file, wherein the theme using marks are used for identifying whether the components use themes or not; and then packaging the card layout file written by the developer into a quick application inclusion by using a packaging tool of the quick application, and uploading the quick application inclusion to a server.
103, analyzing the card packet body, and obtaining an analysis result, wherein the analysis result comprises card page element information;
the card inclusion is a compressed inclusion of a card layout file, the card inclusion is analyzed, the card layout file written by a developer can be obtained, the card layout file comprises card page element information, and the card page element information indicates whether the assembly uses a theme or not.
And 104, setting an attribute value of the card theme to be loaded according to the analysis result and the target theme information.
Whether the card assembly uses the theme or not can be determined according to the card page element information, and if the theme is determined to be used by the assembly, predetermined target theme information is assigned to the assembly. The target theme information may include an outline size and a shape of a card page, a background color, a click action effect, a font size and type, a color and the like, and according to the target theme information, the theme of the fast application card is uniformly set to be a style specified by the target theme information.
According to the embodiment of the invention, whether the card component uses the theme is judged according to the analysis result of the card body, and after the theme used by the component is determined, the card theme is set by using the target theme information, so that the cards can be displayed in the theme of a uniform style in different application scenes, and the cards can be displayed in different themes in interfaces of different application scenes. Through the theme that sets up the card, the terminal is when loading the card that different developers developed, and the title characters of card, content district characters, the characters of button, background colour and the UI subassemblies such as the four corners radian of card can show with unified theme style, can improve the flexibility that the card theme set up, promote the pleasing to the eye degree of card, promote user experience.
Specifically, the target subject information includes one of: theme information of the fast application card uploaded by the terminal; theme information of a quick application card built in the quick application engine; and theme information of the preset fast application card.
Specifically, the theme information of the fast application card uploaded by the terminal is as follows: the terminal is used for displaying theme information uploaded by the application of the fast application card, such as negative one screen of the terminal, global search of the terminal, intelligent recognition of the terminal and the like, and self-defined card theme information uploaded to a fast application engine. And the application is used for displaying the quick application card, a group of theme information with the main theme of JS object notation (JSON) format is transmitted to the quick application engine before the card is loaded, so that the quick application engine can generate a corresponding component by using the theme, and the theme information in the JSON format can comprise the outline size and shape, the background color, the click effect, the font size and type, the color and the like of the card page.
The target theme information may also be theme information of a default fast application card built in the fast application engine or preset theme information of the fast application card. If the fast application engine receives the theme information of the fast application card uploaded by the terminal, the theme information is used as target theme information to assign values to the components; if the fast application engine does not receive the theme information of the fast application card uploaded by the terminal, the fast application engine assigns value to the component by taking the default fast application card theme information built in the fast application engine as the target theme information; if the fast application engine does not have built-in theme information, the theme information of the preset fast application card can be used as the target theme information to assign values to the components.
Specifically, step 102 includes:
and sending a card packet body downloading request of the fast application card to be loaded to a server according to the UR L information of the fast application card to be loaded, and downloading the card packet body of the fast application card to be loaded.
The UR L information is information with which Card needs to be loaded, for example, the general format of UR L is hap:// Card/com.application.ctrip-Card/Card, such UR L information represents that a Card page Card in the fast application "com.application.ctrip-Card" needs to be loaded, and this UR L information is similar to a browser to open a certain page of a specific website.
It should be noted that the application in the terminal for displaying the fast application card also needs to upload a download address of a card body of the fast application card to be loaded to the fast application engine, and after the fast application engine parses the UR L information, the fast application card to be loaded is determined, and according to the download address of the card body, a card body download request of the fast application card to be loaded is sent to the server, and the card body of the card to be loaded is downloaded according to an instruction of the server.
Specifically, the step of analyzing the card packet and obtaining an analysis result comprises the following steps:
decompressing the card packet body to obtain a card layout file;
the card bag body is a compressed bag body of a card layout file designed by a developer, and after the card bag body is downloaded to the local, the fast application engine decompresses the card bag body to obtain the card layout file written by the developer.
And acquiring the card page element information according to the card layout file. And analyzing the card layout file, and acquiring card page element information according to codes written by a developer in the analyzed card layout file, wherein the card page element information indicates whether the component uses a theme or not.
Specifically, the step 104 includes:
judging whether the card page component uses the theme or not according to the analysis result;
the step of judging whether the card page component uses the theme according to the analysis result comprises the following steps:
judging whether the card page element information comprises a theme using mark or not; and if the theme using mark is included, determining that the card page component uses the theme, otherwise, determining that the card page component does not use the theme.
The theme usage mark is a parameter which is added by a developer when the card layout file is written and is used for indicating whether the components use the theme, for example, if the background of the card, the rounded corner at the lower left corner of the card and the rounded corner at the lower right corner of the card all use the theme, the mark of the background usage theme, the mark of the rounded corner at the lower left corner of the card and the mark of the rounded corner at the lower right corner of the card are added into the code of the written card layout file.
And if the theme is used, assigning a theme attribute of the card page component according to the attribute information of the card to be loaded.
And if the quick application engine judges that the components of the card use the theme according to the analysis result, assigning values for the components which determine the theme to be used by utilizing the determined target theme information.
The trigger point of the setting action of the card theme is an application, for example, a negative one-screen of the terminal can trigger the setting action of the fast application card theme, so that the fast application card is displayed in a negative one-screen unified mode. The global search application can also trigger the setting action of the fast application card theme, so that the fast application card is displayed with the theme specified in the global search, the theme modes of the fast application card and the fast application card can be set at the same time of the same terminal, the fast application card is displayed with different themes in interfaces of different applications, and the flexibility is high.
Specifically, after the step of setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information, the method further includes: and loading and rendering the fast application card to be loaded, and generating a card interface containing a new theme.
In this embodiment, after the fast application engine assigns values to components that need to use a theme, the fast application engine loads and renders the card, generates a card interface with a new theme, and displays the card interface including the new theme to a user through a scene application of the terminal.
The fast application card theme setting method applied to the fast application engine is introduced above, and the implementation process between the fast application engine and the scene application, the developer and the server of the terminal is further described with reference to the accompanying drawings:
as shown in fig. 2, a developer designs a card, and when designing a card layout file, adds card contents to original contents, that is, adds a theme using mark to a component in the card layout file, and identifies whether the component uses a theme; packaging the card layout file compiled by the developer into a quick application bag body by using a quick application packaging tool, uploading the quick application bag body to a server, and successfully auditing and shelving by a manufacturer; the terminal is used for displaying the application (such as minus one screen, global search, intelligent picture recognition and the like) of the fast application card, and the attribute information of the fast application card to be loaded is transmitted to the fast application engine before the card is loaded so that the fast application engine can use the attribute information to generate a corresponding component; the fast application engine downloads a card packet body of the fast application card to be loaded from a server according to the attribute information of the fast application card to be loaded, analyzes the card packet body, and sets an attribute value of a fast application card theme according to an analysis result and target theme information; and the fast application engine renders and generates a fast application card interface containing a new theme, and the fast application card interface is displayed by an application (such as negative one screen, global search, intelligent picture recognition and the like) of the terminal and is displayed to a user. The target theme information can be theme information of a fast application card uploaded by a terminal; theme information of a quick application card built in the quick application engine can also be provided; the theme information of the preset fast application card can also be used.
According to the embodiment of the invention, the purpose of setting the theme of the card is achieved by mutually matching the fast application engine, the application displaying the fast application card in the terminal and the developer, and using an agreed specification, the fast application engine integrates the capability of analyzing the theme and rendering the assembly, the application displaying the fast application card in the terminal can customize the theme style, and the developer sets the theme use mark for the assembly when writing the layout file on the page of the card. Through the theme that sets up the card, when the terminal loads the quick application card that different developers developed, the title characters of card, content district characters, the characters of button, background colour and the UI subassemblies such as the four corners radian of card can show with unified theme style, can improve the flexibility that the quick application card theme set up, promote the pleasing to the eye degree of quick application card, promote user experience.
Fig. 3 is a block diagram of a terminal according to an embodiment of the present invention. The terminal 300 shown in fig. 3 includes an obtaining module 301, a downloading module 302, a parsing module 303, and a setting module 304.
An obtaining module 301, configured to obtain attribute information of a fast application card to be loaded;
a downloading module 302, configured to download the card packet of the fast application card to be loaded according to the attribute information;
the analysis module 303 is configured to analyze the card packet and obtain an analysis result, where the analysis result includes card page element information;
and the setting module 304 is configured to set an attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information.
On the basis of fig. 3, optionally, the attribute information of the fast application card to be loaded includes uniform resource locator UR L information of the fast application card to be loaded.
Optionally, the downloading module includes:
the request unit is used for sending a card packet body downloading request of the fast application card to be loaded to a server according to the UR L information of the fast application card to be loaded;
and the downloading unit is used for downloading the card body of the fast application card to be loaded.
Optionally, the target subject information includes one of:
theme information of the fast application card uploaded by the terminal;
theme information of a quick application card built in the quick application engine;
and theme information of the preset fast application card.
Optionally, the setting module includes:
the judging unit is used for judging whether the card page component uses the theme or not according to the analysis result;
and the attribute assignment unit is used for assigning the attribute of the theme of the card page component according to the target theme information if the theme is used.
Optionally, the determining unit includes:
the judging subunit is used for judging whether the card page element information comprises a theme using mark or not;
and the determining unit is used for determining that the card page component uses the theme if the theme using mark is included, and otherwise, determining that the card page component does not use the theme.
The terminal 300 can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition. According to the embodiment of the invention, whether the card component uses the theme is judged according to the analysis result of the card body, and after the theme used by the component is determined, the card theme is set by using the target theme information, so that the cards can be displayed in the theme of a uniform style in different application scenes, the cards can be displayed in different themes in interfaces of different application scenes, and the setting of the card theme has higher flexibility.
Fig. 4 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 410 is configured to obtain attribute information of a card to be loaded; downloading the card body of the card to be loaded according to the attribute information;
the processor 410 is configured to analyze the card packet and obtain an analysis result, where the analysis result includes card page element information; and setting the attribute value of the card theme according to the analysis result.
Therefore, the terminal judges whether the card component uses the theme or not through the analysis result of the card body, and sets the card theme by using the attribute information of the card to be loaded after the theme is used by the component is determined, so that the card can be displayed in the theme of a uniform style in different scene applications, the card can be displayed in different themes in interfaces of different scene applications, and the setting of the card theme has higher flexibility.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or a backlight when the terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 408 is an interface for connecting an external device to the terminal 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 400 or may be used to transmit data between the terminal 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the embodiment of the fast application card theme setting method described above, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the method for setting a theme of a fast application card, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (13)
1. A fast application card theme setting method is characterized by comprising the following steps:
acquiring attribute information of a fast application card to be loaded;
downloading the card body of the fast application card to be loaded according to the attribute information;
analyzing the card packet body, and obtaining an analysis result, wherein the analysis result comprises card page element information;
and setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information.
2. The fast application card theme setting method of claim 1, wherein the attribute information of the fast application card to be loaded comprises uniform resource locator UR L information of the fast application card to be loaded.
3. The fast application card theme setting method according to claim 2, wherein the step of downloading the card body of the fast application card to be loaded according to the attribute information comprises:
sending a card packet body downloading request of the fast application card to be loaded to a server according to the UR L information of the fast application card to be loaded;
and downloading the card packet of the fast application card to be loaded.
4. The fast application card theme setting method of claim 1, wherein the target theme information comprises one of:
theme information of the fast application card uploaded by the terminal;
theme information of a quick application card built in the quick application engine;
and theme information of the preset fast application card.
5. The fast application card theme setting method according to claim 1, wherein the step of setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information includes:
judging whether the card page component uses the theme or not according to the analysis result;
and if the theme is used, assigning a value to the theme attribute of the card page component according to the target theme information.
6. The fast application card theme setting method of claim 5, wherein the step of judging whether the card page component uses a theme according to the parsing result comprises:
judging whether the card page element information comprises a theme using mark or not;
and if the theme using mark is included, determining that the card page component uses the theme, otherwise, determining that the card page component does not use the theme.
7. A terminal, comprising:
the acquisition module is used for acquiring the attribute information of the fast application card to be loaded;
the downloading module is used for downloading the card body of the fast application card to be loaded according to the attribute information;
the analysis module is used for analyzing the card packet body and obtaining an analysis result, and the analysis result comprises card page element information;
and the setting module is used for setting the attribute value of the fast application card theme to be loaded according to the analysis result and the target theme information.
8. The terminal of claim 7, wherein the attribute information of the fast application card to be loaded comprises the UR L information of the fast application card to be loaded.
9. The terminal of claim 8, wherein the download module comprises:
the request unit is used for sending a card packet body downloading request of the fast application card to be loaded to a server according to the UR L information of the fast application card to be loaded;
and the downloading unit is used for downloading the card body of the fast application card to be loaded.
10. The terminal of claim 7, wherein the target topic information comprises one of:
theme information of the fast application card uploaded by the terminal;
theme information of a quick application card built in the quick application engine;
and theme information of the preset fast application card.
11. The terminal of claim 7, wherein the setting module comprises:
the judging unit is used for judging whether the card page component uses the theme or not according to the analysis result;
and the attribute assignment unit is used for assigning the attribute of the theme of the card page component according to the target theme information if the theme is used.
12. The terminal according to claim 11, wherein the judging unit comprises:
the judging subunit is used for judging whether the card page element information comprises a theme using mark or not;
and the determining unit is used for determining that the card page component uses the theme if the theme using mark is included, and otherwise, determining that the card page component does not use the theme.
13. A terminal comprising a processor, a memory and a computer program stored on and executable on the memory, the computer program when executed by the processor implementing the steps of the fast application card theme setting method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910294525.3A CN110035181B (en) | 2019-04-12 | 2019-04-12 | Method and terminal for setting theme of quick application card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910294525.3A CN110035181B (en) | 2019-04-12 | 2019-04-12 | Method and terminal for setting theme of quick application card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110035181A CN110035181A (en) | 2019-07-19 |
CN110035181B true CN110035181B (en) | 2020-08-04 |
Family
ID=67238359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910294525.3A Active CN110035181B (en) | 2019-04-12 | 2019-04-12 | Method and terminal for setting theme of quick application card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110035181B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572431A (en) * | 2019-07-31 | 2019-12-13 | 华为技术有限公司 | Card sharing method, device and system |
CN110874217B (en) * | 2019-11-18 | 2023-08-15 | 北京小米移动软件有限公司 | Interface display method and device for quick application and storage medium |
CN110865864B (en) * | 2019-11-18 | 2023-07-25 | 北京小米移动软件有限公司 | Interface display method, device and equipment for quick application and storage medium |
CN113138827B (en) * | 2021-04-29 | 2024-05-31 | 北京百度网讯科技有限公司 | Method, device, electronic equipment and medium for displaying data |
CN116737405B (en) * | 2022-10-24 | 2024-03-05 | 荣耀终端有限公司 | Method for data communication of quick application card and related equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107911469A (en) * | 2017-11-29 | 2018-04-13 | 广东欧珀移动通信有限公司 | Card collocation method, device and server |
WO2018109589A1 (en) * | 2016-12-15 | 2018-06-21 | Walkme Ltd. | Updating data records by adding editing functions to non-editable display elements |
CN108509526A (en) * | 2018-03-13 | 2018-09-07 | 百度在线网络技术(北京)有限公司 | The method and apparatus of interface element for Dynamic Distribution's mobile application |
CN108733448A (en) * | 2018-05-28 | 2018-11-02 | 北京小米移动软件有限公司 | Theme processing method, device, equipment, system and storage medium |
CN109388453A (en) * | 2018-09-07 | 2019-02-26 | Oppo广东移动通信有限公司 | Methods of exhibiting, device, storage medium and the electronic equipment of application page |
-
2019
- 2019-04-12 CN CN201910294525.3A patent/CN110035181B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018109589A1 (en) * | 2016-12-15 | 2018-06-21 | Walkme Ltd. | Updating data records by adding editing functions to non-editable display elements |
CN107911469A (en) * | 2017-11-29 | 2018-04-13 | 广东欧珀移动通信有限公司 | Card collocation method, device and server |
CN108509526A (en) * | 2018-03-13 | 2018-09-07 | 百度在线网络技术(北京)有限公司 | The method and apparatus of interface element for Dynamic Distribution's mobile application |
CN108733448A (en) * | 2018-05-28 | 2018-11-02 | 北京小米移动软件有限公司 | Theme processing method, device, equipment, system and storage medium |
CN109388453A (en) * | 2018-09-07 | 2019-02-26 | Oppo广东移动通信有限公司 | Methods of exhibiting, device, storage medium and the electronic equipment of application page |
Also Published As
Publication number | Publication date |
---|---|
CN110035181A (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110035181B (en) | Method and terminal for setting theme of quick application card | |
CN108255378B (en) | Display control method and mobile terminal | |
CN108415652B (en) | Text processing method and mobile terminal | |
CN109240577B (en) | Screen capturing method and terminal | |
CN108334272B (en) | Control method and mobile terminal | |
CN109857297B (en) | Information processing method and terminal equipment | |
CN107748640B (en) | Screen-off display method and mobile terminal | |
CN109284144B (en) | Fast application processing method and mobile terminal | |
CN111142930A (en) | Installation package file packaging method and device, terminal device and storage medium | |
CN109413264B (en) | Background picture adjusting method and terminal equipment | |
CN110780940A (en) | Application program loading method, electronic device and storage medium | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN110703972B (en) | File control method and electronic equipment | |
CN111143002A (en) | Application sharing method, electronic equipment and computer readable storage medium | |
CN111966436A (en) | Screen display control method and device, terminal equipment and storage medium | |
CN107729100B (en) | Interface display control method and mobile terminal | |
CN109491670A (en) | A kind of page display method and terminal device | |
CN108009274A (en) | Piece file mergence method and mobile terminal | |
CN112308947A (en) | Animation generation method and device and storage medium | |
CN105094872B (en) | A kind of method and apparatus showing web application | |
CN111752688B (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN111130995B (en) | Image control method, electronic device, and storage medium | |
CN108471549B (en) | Remote control method and terminal | |
CN107835310B (en) | Mobile terminal setting method and mobile terminal | |
CN105320532B (en) | Method, device and terminal for displaying interactive interface |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |