CN113515279B - Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium - Google Patents

Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium Download PDF

Info

Publication number
CN113515279B
CN113515279B CN202010275103.4A CN202010275103A CN113515279B CN 113515279 B CN113515279 B CN 113515279B CN 202010275103 A CN202010275103 A CN 202010275103A CN 113515279 B CN113515279 B CN 113515279B
Authority
CN
China
Prior art keywords
dial
resource
resource file
parameters
file
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
Application number
CN202010275103.4A
Other languages
Chinese (zh)
Other versions
CN113515279A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010275103.4A priority Critical patent/CN113515279B/en
Publication of CN113515279A publication Critical patent/CN113515279A/en
Application granted granted Critical
Publication of CN113515279B publication Critical patent/CN113515279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The embodiment of the application discloses a dial generation method, a dial generation device, electronic equipment, an intelligent watch and a storage medium, wherein the dial generation method comprises the following steps: acquiring characters input by a target object through electronic equipment; determining a dial plate manufacturing mode; if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters; generating a resource file according to the characters and dial parameters; converting the resource file into a first resource compression packet; the method comprises the steps of sending a first resource compression package to the intelligent watch, indicating the intelligent watch to analyze the first resource compression package to obtain a resource file, and rendering the resource file to obtain display content of a first dial, so that a user can manufacture a personalized dial on the electronic device, and the interestingness of the intelligent watch is increased.

Description

Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium
Technical Field
The application relates to the technical field of electronics, in particular to a dial generation method, a dial generation device, electronic equipment, an intelligent watch and a storage medium.
Background
Along with development of electronic technology, functions of the intelligent watch are more and more abundant and intelligent, in order to enrich dial patterns of the intelligent watch, an application installation package (application package, APK) is adopted for installation at present, and the dial application installation package is added into the intelligent watch for installation, wherein a manufacturing mode of the dial application installation package is code programming, a certain programming capability is required to be provided for manufacturing the dial by using the code programming, but most users do not have the programming capability, and a dial manufacturing process is difficult to autonomously finish, so that a user is difficult to realize personalized dial manufacturing.
Disclosure of Invention
The embodiment of the application provides a dial generation method, device, electronic equipment, intelligent watch and storage medium, which can realize that a user independently makes a personalized dial and increase the interestingness of the intelligent watch.
In a first aspect, an embodiment of the present application provides a dial generation method, which is applied to an electronic device, and the method includes:
acquiring characters input by a target object; determining a dial plate manufacturing mode;
if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters, wherein the dial plate parameters are display effect parameters for displaying the characters, the dial plate background and the time on the dial plate; generating a resource file according to the characters and the dial parameters; converting the resource file into a first resource compression package;
and sending the first resource compression packet to the intelligent watch, wherein the first resource compression packet is used for analyzing the first resource compression packet by the intelligent watch to obtain the resource file, and rendering the resource file to obtain the display content of the first dial.
In a second aspect, an embodiment of the present application provides a dial generation method, which is applied to a smart watch, and the method includes:
Receiving a first resource compression packet sent by electronic equipment, wherein the first resource compression packet is a character input by a target object received by the electronic equipment, and acquiring dial parameters; generating a resource file according to the characters and the dial parameters; the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file;
analyzing the first resource compression package to obtain the resource file;
and rendering the resource file to obtain the display content of the first dial.
In a third aspect, an embodiment of the present application provides a dial generation device, applied to an electronic device, where the device includes:
the acquisition unit is used for acquiring characters input by the target object; determining a dial plate manufacturing mode;
the obtaining unit is further configured to obtain dial parameters if the dial making mode is a custom mode, where the dial parameters are display effect parameters that display the text, the dial background and the time on the dial;
the processing unit is used for generating a resource file according to the characters and the dial parameters; converting the resource file into a first resource compression package;
The sending unit is used for sending the first resource compression packet to the intelligent watch, wherein the first resource compression packet is used for analyzing the first resource compression packet by the intelligent watch to obtain the resource file, and rendering the resource file to obtain the display content of the first dial plate.
In a fourth aspect, an embodiment of the present application provides a dial generation device, applied to a smart watch, including:
the electronic equipment comprises a receiving unit, a dial parameter acquiring unit and a dial parameter acquiring unit, wherein the receiving unit is used for receiving a first resource compression packet sent by the electronic equipment, wherein the first resource compression packet is a word input by a target object received by the electronic equipment; generating a resource file according to the characters and the dial parameters; the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file;
the analysis unit is used for analyzing the first resource compression package to obtain the resource file;
and the rendering unit is used for rendering the resource file to obtain the display content of the first dial plate.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the first aspect of embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a smart watch including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the first aspect of embodiments of the present application.
In a seventh aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in the first aspect or the second aspect of the embodiments of the present application.
In an eighth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the first or second aspects of the embodiments of the present application. The computer program product may be a software installation package.
By implementing the embodiment of the application, the following beneficial effects are achieved:
It can be seen that, in the dial generation method, device, electronic device, smart watch and storage medium provided in the embodiments of the present application, characters input by a target object are obtained through the electronic device; determining a dial plate manufacturing mode; if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters; generating a resource file according to the characters and dial parameters; converting the resource file into a first resource compression packet; the first resource compression package is sent to the intelligent watch, the intelligent watch can analyze the first resource compression package to obtain a resource file, and render the resource file to obtain display content of the first dial plate, so that a user can manufacture a personalized dial plate on the electronic device without programming codes, and the interestingness of the intelligent watch is increased.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a system architecture diagram of a dial generation system for implementing a dial generation method according to an embodiment of the present application;
fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 1C is a schematic flow chart of a dial generation method according to an embodiment of the present application;
fig. 1D is a schematic illustration of obtaining dial parameters according to an embodiment of the present application;
fig. 1E is a schematic illustration of a dial preview picture provided in an embodiment of the present application;
fig. 1F is a schematic illustration of setting dial parameters on a custom interface according to an embodiment of the present application;
FIG. 1G is a schematic illustration of a randomly generated interface provided by an embodiment of the present application;
fig. 2 is a flow chart of another dial generation method according to an embodiment of the present application;
fig. 3A is a flow chart of another dial generation method according to an embodiment of the present application;
fig. 3B is a flow chart of another dial generation method according to an embodiment of the present application;
fig. 4A is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4B is a schematic structural diagram of a smart watch according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a dial generation device according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of another dial generation device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The embodiments of the present application are described in detail below.
Referring to fig. 1A, fig. 1A is a system architecture diagram of a dial generation system for implementing a dial generation method disclosed in an embodiment of the present application, where the dial generation system includes an electronic device and an intelligent watch, and the electronic device and the intelligent watch are in communication connection, so that data interaction between the electronic device and the intelligent watch can be implemented.
Referring to fig. 1B, fig. 1B is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, and where:
the electronic device 100 may include control circuitry that may include storage and processing circuitry 110. The storage and processing circuitry 110 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form solid state drives, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and the like, as embodiments of the present application are not limited. Processing circuitry in the storage and processing circuitry 110 may be used to control the operation of the electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as internet browsing applications, voice over internet protocol (Voice over Internet Protocol, VOIP) telephone call applications, email applications, media playing applications, operating system functions, and the like. Such software may be used to perform some control operations, such as image acquisition based on a camera, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on status indicators such as status indicators of light emitting diodes, touch event detection based on a touch sensor, functions associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in electronic device 100, to name a few.
The electronic device 100 may include an input-output circuit 150. The input-output circuit 150 is operable to cause the electronic device 100 to effect input and output of data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to an external device. The input-output circuit 150 may further include a sensor 170.
The sensor 170 may include an ultrasonic fingerprint recognition module, an ambient light sensor, a proximity sensor based on light and capacitance, a touch sensor (e.g., based on a light touch sensor and/or a capacitance touch sensor, where the touch sensor may be part of a touch display screen or may be used independently as a touch sensor structure), an acceleration sensor, and other sensors, etc., where the ultrasonic fingerprint recognition module may be integrated under the screen, or the ultrasonic fingerprint recognition module may be disposed on a side or a back of an electronic device, which is not limited herein, and the ultrasonic fingerprint recognition module may be used to collect fingerprint images.
The input-output circuit 150 may also include one or more display screens, such as display screen 130. The display 130 may include one or a combination of several of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. Display 130 may include an array of touch sensors (i.e., display 130 may be a touch-sensitive display). The touch sensor may be a capacitive touch sensor formed of an array of transparent touch sensor electrodes, such as Indium Tin Oxide (ITO) electrodes, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, etc., as embodiments of the present application are not limited.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuitry 120 may be used to provide the electronic device 100 with the ability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in the communication circuitry 120 may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in the communication circuitry 120 may include circuitry for supporting near field communication (Near Field Communication, NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communication circuit 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, levers, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, and other status indicators, etc.
A user may control the operation of the electronic device 100 by inputting commands through the input-output circuit 150, and may use output data of the input-output circuit 150 to enable receiving status information and other outputs from the electronic device 100.
Referring to fig. 1C, fig. 1C is a flowchart of a dial generation method according to an embodiment of the present application, which is applied to an electronic device shown in fig. 1B, and as shown in fig. 1C, the dial generation method according to the present application includes:
101. acquiring characters input by a target object; and determining the dial plate manufacturing mode.
The target object refers to a user who operates the electronic device to manufacture a dial.
In this embodiment of the present invention, an application program for making a user-defined dial may be installed on an electronic device, after the application program is started, a target object may click on a virtual key for making a dial in an application interface, and enter a dial making process, first, the target object may input a text, and the text may be any content, so that the electronic device may obtain the text input by the target object, and then, the target object may select a dial making mode through the application interface of the application program, where the dial making mode may include a user-defined mode and a random generating mode, and thus, the electronic device may determine the dial making mode selected by the target object.
102. If the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters, wherein the dial plate parameters are display effect parameters for displaying the characters, the dial plate background and the time on the dial plate; generating a file according to the characters and the dial parameters; and converting the resource file into a first resource compression packet.
Wherein, the dial parameters can comprise at least one of the following: the display device comprises a character display parameter corresponding to the character, a dial background color, a dial background pattern, a time display mode and a time display parameter corresponding to the dial background, wherein the character display parameter can comprise a character position, a character color, a character size, a character format and the like, the time display parameter can comprise a time position, a time size, a time color, a time format and the like, and the time display mode can comprise a text display mode or a pointer display mode.
Wherein, the resource file can be an extended markup language (extensible markup language, xml) file for describing data and organizing, storing and transmitting information, the tags in the xml file are custom, and the data is described by using DTD or Schema, and both Schema and DTD are used for defining the usage specification of the xml tags in various files.
In a specific implementation, if the dial making mode selected by the target object is a custom mode, the electronic device may obtain dial parameters set by the target object, specifically referring to fig. 1D, fig. 1D is a schematic diagram for demonstrating the dial parameters obtained in the embodiment of the present application, where the electronic device may determine a target dial template in a preset dial template library according to characters input by the target object, display the characters input by the target object on the target dial template, the target object may set the character display parameters of the characters, for example, a character color, a character size, and a character position, and the target object may set a dial background color through the dial template on the electronic device, and in addition, the target object may also select a time display mode to be a text display mode or a pointer display mode. After the target object has set the dial parameters, the electronic device may further generate a dial preview picture according to the dial parameters and the dial content, so that the target object can implement viewing of the dial display effect, as shown in fig. 1E, and fig. 1E is a schematic diagram of demonstrating the dial preview picture provided in the embodiment of the present application.
Optionally, in the step 102, obtaining the dial parameter may include the following steps:
21. Entering a custom interface; receiving dial background color and character display parameters set by a target object through the user-defined interface;
22. determining a time display mode, and if the time display mode is a text display mode, acquiring a first time display parameter;
23. and if the time display mode is a pointer display mode, acquiring a second time display parameter.
Referring to fig. 1F, fig. 1F is a schematic illustration of setting dial parameters at a custom interface according to an embodiment of the present application. The electronic equipment can determine a target dial template in a preset dial template library according to characters input by a target object, the user-defined interface comprises a plurality of dial parameters which can be user-defined by the target object, and the target dial template, the target object sets the dial parameters through operating the user-defined interface, specifically, the target object can set the background color of the dial through the palette, the electronic equipment can display the characters input by the target object on the user-defined interface, the target object can set the character position through dragging operation, the character size can be adjusted through the operations of enlarging and reducing the characters, and the characters, styles, colors and the like can be selected. The target object can select a text display mode or a pointer display mode, if the time display mode is the text display mode, the target object can set a first time display parameter through operations such as dragging, amplifying, shrinking and the like, and if the time display mode is the pointer display mode, the target object can select a pointer picture and set a second time display parameter such as the size, the color and the like of the pointer picture.
Optionally, in step 102, generating a resource file according to the text and the dial parameter may include the following steps:
24. determining a target dial template in a preset dial template library according to the characters;
25. and writing the target dial template and the dial parameters into a resource file.
In this embodiment of the present invention, the electronic device may preset a dial template library, where the dial template library includes a plurality of different dial templates, specifically, the electronic device may determine a target dial template according to the number of words of the word, for example, the electronic device inputs four words, and the electronic device may select the target dial template corresponding to the word from the preset dial template library, and then write the dial parameters of the target dial template into the resource file. Finally, the electronic device may convert the generated resource file into a first resource compression package, where the first resource compression package includes the resource file, so that the target object may make a personalized dial through the electronic device.
103. And sending the first resource compression package to the intelligent watch, and indicating the intelligent watch to analyze the first resource compression package to obtain the resource file, and rendering the resource file to obtain the display content of the first dial.
The electronic device can send the first resource compression package to the intelligent watch, the first resource compression package is analyzed through the intelligent watch to obtain a resource file, the intelligent watch can render the resource file to obtain first dial plate display content, so that the intelligent watch can render dial plate resources generated on the electronic device, the display is carried out on the intelligent watch, and the dial plate is not required to be realized through code programming.
Optionally, the text display parameter includes a font format, and the method may further include the steps of:
31. if the font format does not belong to the preset format, acquiring a font format file of the font format;
32. converting the font format file and the resource file into a second resource compression package; and sending the second resource compression packet to the smart watch.
If the character format set by the target object is a special character format after the electronic device acquires the dial parameters, the special character format cannot be written into the resource file, so that the font format file is required to be converted into a second resource compression package together with the resource file independently of the resource file. In this way, a dial including a special font format can be generated.
Optionally, the method may further comprise the steps of:
33. if the time display mode is a pointer display mode, acquiring a pointer picture; and converting the pointer picture and the resource file into a third resource compression packet, and sending the third resource compression packet to the intelligent watch.
If the time display mode selected by the target object is the pointer picture, the pointer picture cannot be directly written into the resource file, so that the pointer picture and the resource file can be converted into a third resource compression packet together. In this way, a dial plate of a pointer picture style can be realized through the electronic equipment.
Optionally, the method may further comprise the steps of:
34. if the dial plate manufacturing mode is a random generation mode, entering a random generation interface, and randomly generating a plurality of reference dial plate pictures according to the characters input by the target object and a preset dial plate layout model;
35. displaying the plurality of reference dial pictures on the random generation interface, and determining a target dial picture selected by the target object from the plurality of reference dials;
36. converting the target dial picture into a fourth resource compression packet; and sending the fourth resource compression packet to the intelligent watch, wherein the fourth resource compression packet is used for analyzing the fourth resource compression packet by the intelligent watch to obtain the target dial picture, and rendering the target dial picture to obtain fourth dial display content.
If the dial making mode selected by the target object is a random generating mode, the electronic device may enter a random generating interface, please refer to fig. 1G, fig. 1G is a demonstration schematic diagram of the random generating interface provided in the embodiment of the present application, then a plurality of reference dial pictures are randomly generated according to a preset dial layout model, dial parameters such as a text position, a font format, a text color and the like in the plurality of reference dial pictures are different, further, the target object may select a favorite target dial picture from the plurality of reference dial pictures, and finally, the electronic device may convert the target dial picture into a fourth resource compression packet and send the fourth resource compression packet to the smart watch, so that the smart watch analyzes the fourth resource compression packet to obtain the target dial picture, and renders the target dial picture to obtain the fourth dial display content. Therefore, the dial parameters do not need to be set by the target object, the electronic equipment can generate a plurality of reference dial pictures more quickly for the target object to select, and the dial manufacturing efficiency is improved.
It can be seen that in the embodiment of the present application, the text input by the target object is obtained through the electronic device; determining a dial plate manufacturing mode; if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters; generating a resource file according to the characters and dial parameters; converting the resource file into a first resource compression packet; the method comprises the steps of sending a first resource compression package to the intelligent watch, indicating the intelligent watch to analyze the first resource compression package to obtain a resource file, and rendering the resource file to obtain display content of a first dial plate, so that a user does not need to program codes, the user can manufacture a personalized dial plate on the electronic device, and the interestingness of the intelligent watch is increased.
Referring to fig. 2, fig. 2 is a flow chart of a dial generation method provided in an embodiment of the present application, which is applied to a smart watch, and the method includes:
201. receiving a first resource compression packet sent by electronic equipment, wherein the first resource compression packet is a character input by a target object received by the electronic equipment, and acquiring dial parameters; generating a resource file according to the characters and the dial parameters; and the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file.
The electronic equipment is in communication connection with the intelligent watch, and can receive characters input by a target object to acquire dial parameters; generating a resource file according to the characters and the dial parameters; and further, sending the first resource compression packet to the intelligent watch according to the first resource compression packet generated by the resource file, so that the intelligent watch can receive the first resource compression packet.
202. And analyzing the first resource compression package to obtain the resource file.
After receiving the first resource compression packet, the smart watch can analyze the first resource compression packet to obtain a resource file.
Optionally, in the step 202, the parsing the first resource compression packet to obtain the resource file may include the following steps:
and analyzing the first resource compression package through an operating system engine to obtain a resource file.
An operating system engine can be arranged in the intelligent watch, so that the first resource compression package can be analyzed through the operating system engine to obtain a resource file.
203. And rendering the resource file to obtain the display content of the first dial.
The intelligent watch can render the analyzed resource file to obtain the display content of the first dial. In this way, the target object can be rendered on the intelligent watch through the personalized dial plate manufactured by the electronic equipment.
Optionally, in the step 203, the rendering the resource file to obtain the first dial display content may include the following steps:
and rendering the resource file according to a preset rendering rule to obtain the display content of the first dial.
The preset rendering rule is a rendering rule corresponding to a grammar description rule of the resource file, and the electronic device can render the resource file according to the rendering rule to obtain the display content of the first dial.
Optionally, the method may further comprise the steps of:
receiving a second resource compression packet sent by electronic equipment, wherein the second resource compression packet is a font format file of the font format obtained by the electronic equipment when the font format does not belong to a preset format; a resource compression packet generated according to the font format file and the resource file;
analyzing the second resource compression package to obtain a resource file and the font format file;
and rendering the resource file and the font format file to obtain the display content of the second dial.
If the character format set by the target object is a special character format after the electronic device acquires the dial parameters, the special character format cannot be written into the resource file, so that the font format file is required to be converted into a second resource compression package together with the resource file independently of the resource file. Furthermore, the intelligent watch can receive the second resource compression package, analyze the second resource compression package, and obtain a resource file and the font format file; and rendering the resource file and the font format file to obtain the display content of the second dial, so that the dial with the special font format can be generated.
Optionally, the method may further comprise the steps of:
receiving a third resource compression packet sent by the electronic equipment, wherein the third resource compression packet is obtained by the electronic equipment when the time display mode is a pointer display mode; a resource compression packet generated by the pointer picture and the resource file is generated;
analyzing the third resource compression package to obtain a resource file and the pointer picture;
and rendering the resource file and the pointer picture to obtain the display content of the third dial plate.
If the time display mode selected by the target object is the pointer picture, the pointer picture cannot be directly written into the resource file, so that the pointer picture and the resource file can be converted into a third resource compression packet together. Furthermore, the intelligent watch can analyze the third resource compression packet to obtain a resource file and a pointer picture; rendering the resource file and the pointer picture to obtain the display content of the third dial, so that the dial of the electronic equipment for realizing the pointer picture style can be generated.
Optionally, the method may further comprise the steps of:
receiving a fourth resource compression packet sent by the electronic equipment, wherein the fourth resource compression packet is used for randomly generating a plurality of reference dial pictures by the electronic equipment according to characters input by the target object and a preset dial layout model when a dial manufacturing mode is a random generation mode; displaying the plurality of reference dial pictures, and determining a target dial picture selected by the target object from the plurality of reference dials; converting the target dial picture into a resource compression packet;
Analyzing the fourth resource compression packet to obtain the target dial picture;
and rendering the target dial picture to obtain fourth dial display content.
If the dial making mode selected by the target object is a random generating mode, the electronic device may randomly generate a plurality of reference dial pictures, and convert the target dial picture in the plurality of reference dial pictures selected by the target object into a fourth resource compression packet. Furthermore, the intelligent watch can analyze the fourth resource compression packet to obtain a target dial picture; and rendering the target dial picture to obtain the display content of the fourth dial, so that the intelligent watch can randomly generate the dial by the electronic equipment.
It can be seen that in the embodiment of the present application, a first resource compression packet sent by an electronic device is received by an intelligent watch, where the first resource compression packet is a text input by a target object received by the electronic device, and dial parameters are obtained; generating a resource file according to the characters and dial parameters; generating a resource compression packet according to the resource file; analyzing the first resource compression package to obtain the resource file; rendering the resource file to obtain the display content of the first dial, so that the user can manufacture the personalized dial, and the interestingness of the intelligent watch is increased.
In accordance with fig. 1B, referring to fig. 3A, fig. 3A is a schematic flow chart of another dial generation method provided in an embodiment of the present application, which is applied to an electronic device and a smart watch, and the method includes:
301. the electronic equipment acquires characters input by a target object; and determining the dial plate manufacturing mode.
302. If the dial making mode is a self-defining mode, the electronic equipment acquires dial parameters, wherein the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial; generating a resource file according to the characters and the dial parameters; and converting the resource file into a first resource compression packet.
303. And the electronic equipment sends the first resource compression packet to the intelligent watch.
304. And the intelligent watch analyzes the first resource compression package to obtain the resource file.
305. And rendering the resource file by the intelligent watch to obtain the display content of the first dial plate.
Referring to fig. 3B, fig. 3B is a flow chart of another dial generation method provided in the embodiment of the present application, in which, a target object may click on an application program of an electronic device to make a dial, first, the target object may input a word, the electronic device receives the word input by the target object, then, determines a dial making mode selected by the target object, and if the dial making mode is a custom making mode, enters a custom interface; receiving dial background color and character display parameters set by a target object through the user-defined interface; determining a time display mode, and if the time display mode is a text display mode, acquiring a first time display parameter; generating a resource file according to the characters and the dial parameters; converting the resource file into a first resource compression package; and sending the first resource compression packet to the intelligent watch.
If the dial plate manufacturing mode is a random generation mode, entering a random generation interface, and randomly generating a plurality of reference dial plate pictures according to the characters input by the target object and a preset dial plate layout model; displaying the plurality of reference dial pictures on the random generation interface, and determining a target dial picture selected by the target object from the plurality of reference dials; converting the target dial picture into a fourth resource compression packet; and sending the fourth resource compression packet to the intelligent watch.
After receiving a first resource compression packet sent by electronic equipment, the intelligent watch analyzes the first resource compression packet to obtain the resource file; and rendering the resource file to obtain the display content of the first dial.
If the intelligent watch receives a fourth resource compression packet sent by the electronic equipment, analyzing the fourth resource compression packet to obtain the target dial picture; and rendering the target dial picture to obtain fourth dial display content.
It can be seen that in the embodiment of the present application, the text input by the target object is obtained through the electronic device; determining a dial plate manufacturing mode; if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters; generating a resource file according to the characters and dial parameters; converting the resource file into a first resource compression packet; the method comprises the steps of sending a first resource compression package to the intelligent watch, analyzing the first resource compression package through the intelligent watch to obtain a resource file, and rendering the resource file to obtain display content of a first dial plate, so that a user can manufacture a personalized dial plate on electronic equipment, and the interestingness of the intelligent watch is increased.
The following is a device for implementing the dial generation method, and is specifically as follows:
in accordance with the foregoing, referring to fig. 4A, fig. 4A is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes: a processor, a communication interface, and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for:
acquiring characters input by a target object; determining a dial plate manufacturing mode;
if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters, wherein the dial plate parameters are display effect parameters for displaying the characters, the dial plate background and the time on the dial plate; generating a resource file according to the characters and the dial parameters; converting the resource file into a first resource compression package;
and sending the first resource compression packet to the intelligent watch, wherein the first resource compression packet is used for analyzing the first resource compression packet by the intelligent watch to obtain the resource file, and rendering the resource file to obtain the display content of the first dial.
In one possible example, in terms of the obtaining dial parameters, the program comprises instructions for:
entering a custom interface; receiving dial background color and character display parameters set by a target object through the user-defined interface;
determining a time display mode, and if the time display mode is a text display mode, acquiring a first time display parameter;
and if the time display mode is a pointer display mode, acquiring a second time display parameter.
In one possible example, in terms of said generating a resource file from said text and said dial parameters, said program comprises instructions for:
determining a target dial template in a preset dial template library according to the characters;
and writing the target dial template and the dial parameters into a resource file.
In one possible example, the text display parameters include a font format, the program further comprising instructions for:
if the font format does not belong to the preset format, acquiring a font format file of the font format;
converting the font format file and the resource file into a second resource compression package; and sending the second resource compression packet to the smart watch.
In one possible example, the program further comprises instructions for performing the steps of:
if the time display mode is a pointer display mode, acquiring a pointer picture; and converting the pointer picture and the resource file into a third resource compression packet, and sending the third resource compression packet to the intelligent watch.
In one possible example, the program further comprises instructions for performing the steps of:
if the dial plate manufacturing mode is a random generation mode, entering a random generation interface, and randomly generating a plurality of reference dial plate pictures according to the characters input by the target object and a preset dial plate layout model;
displaying the plurality of reference dial pictures on the random generation interface, and determining a target dial picture selected by the target object from the plurality of reference dials;
converting the target dial picture into a fourth resource compression packet; and sending the fourth resource compression packet to the intelligent watch, wherein the fourth resource compression packet is used for analyzing the fourth resource compression packet by the intelligent watch to obtain the target dial picture, and rendering the target dial picture to obtain fourth dial display content.
In accordance with the foregoing, referring to fig. 4B, fig. 4B is a schematic structural diagram of a smart watch according to an embodiment of the present application, where the electronic device includes: a processor, a communication interface, and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for:
receiving a first resource compression packet sent by electronic equipment, wherein the first resource compression packet is a character input by a target object received by the electronic equipment, and acquiring dial parameters; generating a resource file according to the characters and the dial parameters; the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file;
analyzing the first resource compression package to obtain the resource file;
and rendering the resource file to obtain the display content of the first dial.
In one possible example, in said parsing said first resource compression package to obtain said resource file, said program comprises instructions for:
Analyzing the first resource compression package through an operating system engine to obtain a resource file;
rendering the resource file to obtain a first dial display content, including:
and rendering the resource file according to a preset rendering rule to obtain the display content of the first dial.
In one possible example, the program further comprises instructions for performing the steps of:
receiving a second resource compression packet sent by electronic equipment, wherein the second resource compression packet is a font format file of the font format obtained by the electronic equipment when the font format does not belong to a preset format; a resource compression packet generated according to the font format file and the resource file;
analyzing the second resource compression package to obtain a resource file and the font format file;
and rendering the resource file and the font format file to obtain the display content of the second dial.
In one possible example, the program further comprises instructions for performing the steps of:
receiving a third resource compression packet sent by the electronic equipment, wherein the third resource compression packet is obtained by the electronic equipment when the time display mode is a pointer display mode; a resource compression packet generated by the pointer picture and the resource file is generated;
Analyzing the third resource compression package to obtain a resource file and the pointer picture;
and rendering the resource file and the pointer picture to obtain the display content of the third dial plate.
In one possible example, the program further comprises instructions for performing the steps of:
receiving a fourth resource compression packet sent by the electronic equipment, wherein the fourth resource compression packet is used for randomly generating a plurality of reference dial pictures by the electronic equipment according to characters input by the target object and a preset dial layout model when a dial manufacturing mode is a random generation mode; displaying the plurality of reference dial pictures, and determining a target dial picture selected by the target object from the plurality of reference dials; converting the target dial picture into a resource compression packet;
analyzing the fourth resource compression packet to obtain the target dial picture;
and rendering the target dial picture to obtain fourth dial display content.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a dial generating device provided in the present embodiment, and the device 500 includes an obtaining unit 501, a processing unit 502 and a sending unit 503, where,
The acquiring unit 501 is configured to acquire a text input by a target object; determining a dial plate manufacturing mode;
the obtaining unit 501 is further configured to obtain dial parameters if the dial making mode is a custom mode, where the dial parameters are display effect parameters that show the text, the dial background and the time on the dial;
the processing unit 502 is configured to generate a resource file according to the text and the dial parameters; converting the resource file into a first resource compression package;
the sending unit 503 is configured to send the first resource compression packet to the smart watch, where the first resource compression packet is used for the smart watch to parse the first resource compression packet to obtain the resource file, and render the resource file to obtain the display content of the first dial.
Optionally, in terms of the obtaining dial parameters, the obtaining unit 501 is specifically configured to:
entering a custom interface; receiving dial background color and character display parameters set by a target object through the user-defined interface;
determining a time display mode, and if the time display mode is a text display mode, acquiring a first time display parameter;
And if the time display mode is a pointer display mode, acquiring a second time display parameter.
Optionally, in the aspect of generating a resource file according to the text and the dial parameters, the processing unit 502 is specifically configured to:
determining a target dial template in a preset dial template library according to the characters;
and writing the target dial template and the dial parameters into a resource file.
Optionally, the text display parameter includes a font format, and if the font format does not belong to a preset format, the obtaining unit 501 is further configured to obtain a font format file of the font format; the processing unit 502 is further configured to convert the font format file and the resource file into a second resource compression packet; the sending unit 503 is further configured to send the second resource compression packet to the smart watch.
Optionally, if the time display mode is a pointer display mode, the obtaining unit 501 is further configured to obtain a pointer picture; the processing unit 502 is further configured to convert the pointer picture and the resource file into a third resource compression packet; the sending unit 503 is further configured to send the third resource compression packet to the smart watch.
Optionally, the processing unit 502 is further configured to enter a random generation interface if the dial making mode is a random generation mode, and randomly generate a plurality of reference dial pictures according to the text input by the target object and a preset dial layout model; displaying the plurality of reference dial pictures on the random generation interface, and determining a target dial picture selected by the target object from the plurality of reference dials; converting the target dial picture into a fourth resource compression packet;
the sending unit 503 is further configured to send the fourth resource compression packet to the smart watch, where the fourth resource compression packet is used for the smart watch to parse the fourth resource compression packet to obtain the target dial picture, and render the target dial picture to obtain a fourth dial display content.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a dial generation device provided in the present embodiment, which is applied to a smart watch, the device 600 includes a receiving unit 601, an analyzing unit 602 and a rendering unit 603, wherein,
the receiving unit 601 is configured to receive a first resource compression packet sent by an electronic device, where the first resource compression packet is a text input by a target object received by the electronic device, and obtain a dial parameter; generating a resource file according to the characters and the dial parameters; the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file;
The parsing unit 602 is configured to parse the first resource compression packet to obtain the resource file;
the rendering unit 603 is configured to render the resource file to obtain a first dial display content.
Optionally, in the aspect of parsing the first resource compression packet to obtain the resource file, the parsing unit 602 is specifically configured to:
analyzing the first resource compression package through an operating system engine to obtain a resource file;
rendering the resource file to obtain a first dial display content, including:
and rendering the resource file according to a preset rendering rule to obtain the display content of the first dial.
Optionally, the receiving unit 601 is further configured to receive a second resource compression packet sent by an electronic device, where the second resource compression packet is a font format file of the font format obtained by the electronic device when the font format does not belong to a preset format; a resource compression packet generated according to the font format file and the resource file; the parsing unit 602 is further configured to parse the second resource compression packet to obtain a resource file and the font format file; the rendering unit 603 is further configured to render the resource file and the font format file, to obtain a second dial display content.
Optionally, the receiving unit 601 is further configured to receive a third resource compression packet sent by the electronic device, where the third resource compression packet is obtained by the electronic device when the time display mode is a pointer display mode; a resource compression packet generated by the pointer picture and the resource file is generated; the parsing unit 602 is further configured to parse the third resource compression packet to obtain a resource file and the pointer picture; the rendering unit 603 is further configured to render the resource file and the pointer picture, to obtain a third dial display content.
Optionally, the receiving unit 601 is further configured to receive a fourth resource compression packet sent by the electronic device, where the fourth resource compression packet is generated randomly by the electronic device according to the text input by the target object and a preset dial layout model when the dial making mode is a random generating mode; displaying the plurality of reference dial pictures, and determining a target dial picture selected by the target object from the plurality of reference dials; converting the target dial picture into a resource compression packet;
The parsing unit 602 is further configured to parse the fourth resource compression packet to obtain the target dial picture;
the rendering unit 603 is further configured to render the target dial picture to obtain a fourth dial display content.
It can be seen that, in the dial generation device described in the embodiment of the present application, the text input by the target object is obtained through the electronic device; determining a dial plate manufacturing mode; if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters; generating a resource file according to the characters and dial parameters; converting the resource file into a first resource compression packet; the method comprises the steps of sending a first resource compression package to the intelligent watch, analyzing the first resource compression package through the intelligent watch to obtain a resource file, and rendering the resource file to obtain display content of a first dial plate, so that a user can manufacture a personalized dial plate on electronic equipment, and the interestingness of the intelligent watch is increased.
It can be understood that the functions of each program module of the dial generation device of the present embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not repeated herein.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the method embodiments, and the computer includes an electronic device or a smart watch.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, the computer comprising an electronic device or a smart watch.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (15)

1. A dial generation method, characterized in that it is applied to an electronic device, the method comprising:
acquiring characters input by a target object; determining a dial plate manufacturing mode;
if the dial plate manufacturing mode is a custom mode, obtaining dial plate parameters, wherein the dial plate parameters are display effect parameters for displaying the characters, the dial plate background and the time on the dial plate; generating a resource file according to the characters and the dial parameters; converting the resource file into a first resource compression package;
The first resource compression package is sent to the intelligent watch, and the first resource compression package is used for analyzing the first resource compression package by the intelligent watch to obtain the resource file, and rendering the resource file to obtain first dial display content;
wherein, the generating a resource file according to the text and the dial parameters includes: determining target dial templates in a preset dial template library according to the characters, wherein different characters correspond to different target dial templates; and writing the target dial template and the dial parameters into a resource file.
2. The method of claim 1, wherein the obtaining dial parameters comprises:
entering a custom interface; receiving dial background color and character display parameters set by a target object through the user-defined interface;
determining a time display mode, and if the time display mode is a text display mode, acquiring a first time display parameter;
and if the time display mode is a pointer display mode, acquiring a second time display parameter.
3. The method of claim 2, wherein the text display parameter comprises a font format, the method further comprising:
If the font format does not belong to the preset format, acquiring a font format file of the font format;
converting the font format file and the resource file into a second resource compression package; and sending the second resource compression packet to the smart watch.
4. The method according to claim 2, wherein the method further comprises:
if the time display mode is a pointer display mode, acquiring a pointer picture; and converting the pointer picture and the resource file into a third resource compression packet, and sending the third resource compression packet to the intelligent watch.
5. The method according to claim 1, wherein the method further comprises:
if the dial plate manufacturing mode is a random generation mode, entering a random generation interface, and randomly generating a plurality of reference dial plate pictures according to the characters input by the target object and a preset dial plate layout model;
displaying the plurality of reference dial pictures on the random generation interface, and determining a target dial picture selected by the target object from the plurality of reference dials;
converting the target dial picture into a fourth resource compression packet; and sending the fourth resource compression packet to the intelligent watch, wherein the fourth resource compression packet is used for analyzing the fourth resource compression packet by the intelligent watch to obtain the target dial picture, and rendering the target dial picture to obtain fourth dial display content.
6. A dial generation method, characterized in that it is applied to a smart watch, the method comprising:
receiving a first resource compression packet sent by electronic equipment, wherein the first resource compression packet is a character input by a target object received by the electronic equipment, and acquiring dial parameters; generating a resource file according to the characters and the dial parameters; the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file; wherein, the generating a resource file according to the text and the dial parameters includes: determining target dial templates in a preset dial template library according to the characters, wherein different characters correspond to different target dial templates; writing the target dial template and the dial parameters into a resource file;
analyzing the first resource compression package to obtain the resource file;
and rendering the resource file to obtain the display content of the first dial.
7. The method of claim 6, wherein parsing the first resource compression package to obtain the resource file comprises:
Analyzing the first resource compression package through an operating system engine to obtain a resource file;
rendering the resource file to obtain a first dial display content, including:
and rendering the resource file according to a preset rendering rule to obtain the display content of the first dial.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
receiving a second resource compression packet sent by the electronic equipment, wherein the second resource compression packet is a font format file of the font format obtained by the electronic equipment when the font format of the characters does not belong to a preset format; a resource compression packet generated according to the font format file and the resource file;
analyzing the second resource compression package to obtain a resource file and the font format file;
and rendering the resource file and the font format file to obtain the display content of the second dial.
9. The method according to claim 6 or 7, characterized in that the method further comprises:
receiving a third resource compression packet sent by the electronic equipment, wherein the third resource compression packet is obtained by the electronic equipment when the time display mode is a pointer display mode; a resource compression packet generated by the pointer picture and the resource file is generated;
Analyzing the third resource compression package to obtain a resource file and the pointer picture;
and rendering the resource file and the pointer picture to obtain the display content of the third dial plate.
10. The method of claim 6, wherein the method further comprises:
receiving a fourth resource compression packet sent by the electronic equipment, wherein the fourth resource compression packet is used for randomly generating a plurality of reference dial pictures by the electronic equipment according to characters input by the target object and a preset dial layout model when a dial manufacturing mode is a random generation mode; displaying the plurality of reference dial pictures, and determining a target dial picture selected by the target object from the plurality of reference dials; converting the target dial picture into a resource compression packet;
analyzing the fourth resource compression packet to obtain the target dial picture;
and rendering the target dial picture to obtain fourth dial display content.
11. A dial generation device, the device comprising:
the acquisition unit is used for acquiring characters input by the target object; determining a dial plate manufacturing mode;
the obtaining unit is further configured to obtain dial parameters if the dial making mode is a custom mode, where the dial parameters are display effect parameters that display the text, the dial background and the time on the dial;
The processing unit is used for generating a resource file according to the characters and the dial parameters and comprises the following steps: determining target dial templates in a preset dial template library according to the characters, wherein different characters correspond to different target dial templates; writing the target dial template and the dial parameters into a resource file; converting the resource file into a first resource compression package;
the sending unit is used for sending the first resource compression packet to the intelligent watch, wherein the first resource compression packet is used for analyzing the first resource compression packet by the intelligent watch to obtain the resource file, and rendering the resource file to obtain the display content of the first dial plate.
12. A dial generation device, the device comprising:
the electronic equipment comprises a receiving unit, a dial parameter acquiring unit and a dial parameter acquiring unit, wherein the receiving unit is used for receiving a first resource compression packet sent by the electronic equipment, wherein the first resource compression packet is a word input by a target object received by the electronic equipment; generating a resource file according to the characters and the dial parameters; the dial parameters are display effect parameters for displaying the characters, the dial background and the time on the dial according to the resource compression package generated by the resource file; wherein, the generating a resource file according to the text and the dial parameters includes: determining target dial templates in a preset dial template library according to the characters, wherein different characters correspond to different target dial templates; writing the target dial template and the dial parameters into a resource file;
The analysis unit is used for analyzing the first resource compression package to obtain the resource file;
and the rendering unit is used for rendering the resource file to obtain the display content of the first dial plate.
13. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, the memory to store one or more programs and configured to be executed by the processor, the program comprising instructions to perform the steps in the method of any of claims 1-5.
14. A smart watch comprising a processor, a memory, a communication interface, and one or more programs, the memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 6-10.
15. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-10.
CN202010275103.4A 2020-04-09 2020-04-09 Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium Active CN113515279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010275103.4A CN113515279B (en) 2020-04-09 2020-04-09 Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010275103.4A CN113515279B (en) 2020-04-09 2020-04-09 Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium

Publications (2)

Publication Number Publication Date
CN113515279A CN113515279A (en) 2021-10-19
CN113515279B true CN113515279B (en) 2024-01-12

Family

ID=78060194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010275103.4A Active CN113515279B (en) 2020-04-09 2020-04-09 Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium

Country Status (1)

Country Link
CN (1) CN113515279B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626115A (en) * 2020-05-09 2021-11-09 Oppo(重庆)智能科技有限公司 Method for generating dial plate and related device
CN117135256A (en) * 2023-04-06 2023-11-28 荣耀终端有限公司 Data processing method and electronic equipment
CN117111879A (en) * 2023-10-25 2023-11-24 深圳市微克科技有限公司 Dial generation method and device, intelligent wearable device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935613A (en) * 2014-03-18 2015-09-23 小米科技有限责任公司 Scene synchronization method, terminal, server and system
CN109032746A (en) * 2018-08-10 2018-12-18 广东小天才科技有限公司 A kind of display interface customizing method, system and the electronic equipment of wearable device
WO2022001647A1 (en) * 2020-06-29 2022-01-06 Oppo广东移动通信有限公司 Theme rendering method and apparatus, and electronic device and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714143B (en) * 2015-07-21 2020-01-21 华为终端有限公司 Terminal and synchronization method thereof
KR102471174B1 (en) * 2015-10-06 2022-11-28 삼성전자주식회사 Method and electronic device for implementing theme

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935613A (en) * 2014-03-18 2015-09-23 小米科技有限责任公司 Scene synchronization method, terminal, server and system
CN109032746A (en) * 2018-08-10 2018-12-18 广东小天才科技有限公司 A kind of display interface customizing method, system and the electronic equipment of wearable device
WO2022001647A1 (en) * 2020-06-29 2022-01-06 Oppo广东移动通信有限公司 Theme rendering method and apparatus, and electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN113515279A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
CN113515279B (en) Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium
CN109583356B (en) Fingerprint identification method and related product
KR100718138B1 (en) Function input method and apparatus for inputting function in portable terminal thereof
US10204618B2 (en) Terminal and method for voice control on terminal
CN109614865B (en) Fingerprint identification method and related product
CN105740263B (en) Page display method and device
CN104007816A (en) Method for providing a voice-speech service and mobile terminal implementing the same
CN110475020B (en) Equipment control method and related product
CN104281568B (en) Paraphrasing display method and paraphrasing display device
CN113613064B (en) Video processing method, device, storage medium and terminal
CN104038723A (en) Conference call terminal and method for operating user interface thereof
CN113742366B (en) Data processing method, device, computer equipment and storage medium
US11290591B2 (en) Dialing method and mobile terminal
CN108052356A (en) A kind of method and terminal device for starting calculator
CN108536388A (en) split screen processing method, device, storage medium and electronic equipment
CN111079438A (en) Identity authentication method and device, electronic equipment and storage medium
CN107577542A (en) Log information report method, device, storage medium and mobile terminal
CN109190076B (en) Page collection method and device, storage medium and electronic equipment
CN109063079B (en) Webpage labeling method and electronic equipment
CN110908728B (en) Authority configuration method and related product
CN107122177A (en) Method for showing interface and device
CN112000408B (en) Mobile terminal and display method thereof
CN105335434B (en) Log management method and device and electronic equipment
KR20140105340A (en) Method and Apparatus for operating multi tasking in a terminal
CN111522613B (en) Screen capturing method and electronic equipment

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