CN106055335B - Method and system for realizing dynamic wallpaper of mobile terminal - Google Patents

Method and system for realizing dynamic wallpaper of mobile terminal Download PDF

Info

Publication number
CN106055335B
CN106055335B CN201610397511.0A CN201610397511A CN106055335B CN 106055335 B CN106055335 B CN 106055335B CN 201610397511 A CN201610397511 A CN 201610397511A CN 106055335 B CN106055335 B CN 106055335B
Authority
CN
China
Prior art keywords
wallpaper
mobile terminal
screen
offset
inclination angle
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
CN201610397511.0A
Other languages
Chinese (zh)
Other versions
CN106055335A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610397511.0A priority Critical patent/CN106055335B/en
Publication of CN106055335A publication Critical patent/CN106055335A/en
Application granted granted Critical
Publication of CN106055335B publication Critical patent/CN106055335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Abstract

The invention discloses a method and a system for realizing dynamic wallpaper of a mobile terminal, wherein the method presets multilayer wallpaper parallel to a screen plane of the mobile terminal, and the multilayer wallpaper forms all dynamic effects of the dynamic wallpaper of the mobile terminal; starting detection on the state of a mobile terminal to acquire the current state of the mobile terminal; calculating the drawing offset of the multilayer wallpaper according to the current state of the mobile terminal; and drawing multiple layers of wallpaper to form the wallpaper corresponding to the current state of the mobile terminal according to the drawing offset, and controlling a screen to display the wallpaper. According to the invention, the interaction between the dynamic wallpaper and the user is realized by acquiring the current state of the mobile terminal, acquiring the drawing offset according to the current state and generating the dynamic wallpaper according to the drawing offset.

Description

Method and system for realizing dynamic wallpaper of mobile terminal
Technical Field
The invention relates to the technical field of terminals, in particular to a method and a system for realizing dynamic wallpaper of a mobile terminal.
Background
At present, wallpaper of a mobile terminal can be divided into dynamic wallpaper and static wallpaper according to the expression form of the wallpaper, wherein the static wallpaper refers to a picture with a static background picture as the wallpaper, and the dynamic wallpaper refers to a picture with an animation. At present, most of wallpaper forms realized by Read-only memory (ROM) are static wallpaper, the static wallpaper is a rigid wallpaper form, and background pictures are only placed rigidly to be used as backgrounds. At present, the dynamic wallpaper adopts wallpaper animation which is realized by adopting a pre-recorded video or a dynamic picture in a circulating playing mode. However, the existing dynamic wallpaper can only play fixed wallpaper animations in a circulating manner, cannot change the dynamic wallpaper according to the operation of a user on the mobile terminal, cannot realize interaction with the user, and is lack of vividness.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for implementing dynamic wallpaper of a mobile terminal, aiming at the defects of the prior art, for implementing interaction between the dynamic wallpaper and a user.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for realizing dynamic wallpaper of a mobile terminal comprises the following steps:
presetting a plurality of layers of wallpaper parallel to the screen plane of the mobile terminal, wherein the plurality of layers of wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal;
starting detection on the state of a mobile terminal to acquire the current state of the mobile terminal;
calculating the drawing offset of the multilayer wallpaper according to the current state of the mobile terminal;
and drawing multiple layers of wallpaper to form the wallpaper corresponding to the current state of the mobile terminal according to the drawing offset, and controlling a screen to display the wallpaper.
The mobile terminal dynamic wallpaper implementation method comprises the steps that multiple layers of wallpaper are sequentially arranged along an axis perpendicular to a screen plane, the multiple layers of wallpaper are identical in shape, the areas of the wallpaper are sequentially reduced according to the distance between the wallpaper and the screen, and the area of the wallpaper farthest from the screen is identical to the area of the screen.
The method for realizing the dynamic wallpaper of the mobile terminal comprises the step of arranging a plurality of transparent or semitransparent parts in the multilayer wallpaper except the wallpaper farthest from a screen.
The method for implementing the dynamic wallpaper of the mobile terminal, wherein the starting of the detection of the state of the mobile terminal and the obtaining of the current state of the mobile terminal specifically comprise:
the method comprises the steps of monitoring the state of the mobile terminal through a gravity sensor, and determining the current state of the mobile terminal according to data acquired by the gravity sensor.
The method for realizing the dynamic wallpaper of the mobile terminal, wherein the step of calculating the drawing offset of the multi-layer wallpaper according to the current state of the mobile terminal specifically comprises the following steps:
acquiring a left-right inclination angle and a front-back inclination angle of the mobile terminal according to the current state of the mobile terminal;
comparing the left-right inclination angle and the front-back inclination angle with preset threshold values respectively;
and when the left-right inclination angle and/or the front-back inclination angle are larger than a preset threshold value, calculating the offset of the multilayer wallpaper according to the left-right inclination angle and the front-back inclination angle.
The implementation method of the dynamic wallpaper of the mobile terminal, wherein when the left-right inclination angle and/or the front-back inclination angle is larger than a preset threshold value, calculating the offset of the multilayer wallpaper according to the left-right inclination angle and the front-back inclination angle specifically comprises the following steps:
when the left-right inclination angle and/or the front-back inclination angle are/is larger than a preset threshold value, respectively calculating left-right offset and upper-lower offset of wallpaper next far from the screen according to the left-right inclination angle and the front-back inclination angle;
and calculating the left and right offset and the up and down offset of each wallpaper according to the area relationship between each wallpaper and the next far wallpaper, and obtaining the drawing offset of the multilayer wallpaper.
A system for implementing dynamic wallpaper of a mobile terminal comprises:
the mobile terminal comprises a presetting module, a display module and a display module, wherein the presetting module is used for presetting a plurality of layers of wallpaper parallel to the screen plane of the mobile terminal, and the plurality of layers of wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal;
the mobile terminal comprises an acquisition module, a detection module and a processing module, wherein the acquisition module is used for starting the detection of the state of the mobile terminal and acquiring the current state of the mobile terminal;
the calculation module is used for calculating the drawing offset of the multilayer wallpaper according to the current state of the mobile terminal;
and the display module is used for drawing multiple layers of wallpaper to form the wallpaper corresponding to the current state of the mobile terminal according to the drawing offset and controlling a screen to display the wallpaper.
The mobile terminal dynamic wallpaper implementation system is characterized in that the multiple layers of wallpaper are sequentially arranged along an axis perpendicular to a screen plane, the multiple layers of wallpaper are identical in shape, the areas of the wallpaper are sequentially reduced according to the distance between the wallpaper and the screen, and the area of the wallpaper farthest from the screen is identical to the area of the screen.
The system for realizing the dynamic wallpaper of the mobile terminal is characterized in that a plurality of transparent or semitransparent parts are arranged in the multilayer wallpaper except the wallpaper farthest from the screen.
The system for implementing the dynamic wallpaper of the mobile terminal, wherein the obtaining module is specifically configured to:
the method comprises the steps of monitoring the state of the mobile terminal through a gravity sensor, and determining the current state of the mobile terminal according to data acquired by the gravity sensor.
Has the advantages that: compared with the prior art, the invention provides a method and a system for realizing dynamic wallpaper of a mobile terminal, wherein the method is characterized in that a plurality of layers of wallpaper parallel to the screen plane of the mobile terminal are preset, wherein the plurality of layers of wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal; starting detection on the state of a mobile terminal to acquire the current state of the mobile terminal; calculating the drawing offset of the multilayer wallpaper according to the current state of the mobile terminal; and drawing multiple layers of wallpaper to form the wallpaper corresponding to the current state of the mobile terminal according to the drawing offset, and controlling a screen to display the wallpaper. According to the invention, the interaction between the dynamic wallpaper and the user is realized by acquiring the current state of the mobile terminal, acquiring the drawing offset according to the current state and generating the dynamic wallpaper according to the drawing offset.
Drawings
Fig. 1 is a flowchart of a preferred implementation of a method for implementing dynamic wallpaper of a mobile terminal according to the present invention.
Fig. 2 is a flowchart for calculating a drawing offset in the method for implementing dynamic wallpaper of a mobile terminal according to the present invention.
Fig. 3 is a schematic structural diagram of a system for implementing dynamic wallpaper of a mobile terminal according to the present invention.
Detailed Description
The invention provides a method and a system for realizing dynamic wallpaper of a mobile terminal, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for implementing dynamic wallpaper of a mobile terminal according to a preferred embodiment of the invention. The method comprises the following steps:
s100, presetting a plurality of layers of wallpaper parallel to the screen plane of the mobile terminal, wherein the plurality of layers of wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal.
Specifically, the dynamic wallpaper of the mobile terminal is composed of multiple layers of static wallpaper, and the multiple layers of wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal. The multiple layers of wallpaper are sequentially arranged along an axis perpendicular to the plane of the screen, the multiple layers of wallpaper are the same in shape, the areas of the wallpaper are sequentially reduced according to the distance between the wallpaper and the screen, and the area of the wallpaper farthest from the screen is the same as the area of the screen. And the multilayer wallpaper is provided with a plurality of transparent or semitransparent parts except the wallpaper farthest from the screen
In the present embodiment, the dynamic wallpaper is exemplified by a 3-layer static wallpaper. The dynamic wallpaper is formed by arranging 3 pictures along an axis perpendicular to a screen plane in sequence, and the pictures are respectively marked as a foreground, a middle scene and a background according to the distance from the screen. The shapes of the foreground, the middle scene and the background are respectively equal to the shape state of the screen, and here, taking a mobile phone as an example, the shapes of the foreground, the middle scene and the background are all the shapes of the mobile phone screen and are rectangles. The area of the background is the same as the screen area. That is, the background just covers the screen. The area of the middle scene is larger than that of the background, and the area of the foreground is larger than that of the middle scene. The foreground and the middle scenery are provided with a plurality of transparent or semitransparent parts, and the background is opaque, so that the picture content of the background can be displayed only when the foreground, the middle scenery and the background are superposed, and the effect of the dynamic wallpaper is realized. In practical applications, in order to reduce the function of rendering a dynamic background, transparent parts of the foreground and the intermediate scenes may be cut off, and only opaque or semitransparent parts of the foreground and the intermediate scenes may be rendered without rendering.
When the foreground, the middle scene and the background are overlapped together, the background occupies the whole screen, part of the foreground and the middle scene can be outside the screen, when the mobile phone is flatly placed, the foreground and the middle scene are displayed in the middle on the screen, each direction can exceed the screen, the width of the picture exceeding the screen in the left-right direction is the same, and the width of the picture exceeding the screen in the up-down direction is the same.
Further, in order to determine the drawing offset according to the area relationship of the wallpaper, the area of the wallpaper is increased proportionally, for example, the area of the middle scene is increased by 10% than that of the background, and the area of the foreground is increased by 20% than that of the background. The displacement distance of the middle scene relative to the screen is one tenth of the side length of the screen, and the displacement distance of the foreground relative to the screen is one fifth of the side length of the screen. That is, the displacement distance of the foreground with respect to the screen is 2 times the displacement distance of the foreground with respect to the screen. When the wallpaper corresponds to 3 wallpapers, the displacement distance of the wallpaper close to the screen relative to the screen is 2 times of the displacement distance of the wallpaper far away from the screen relative to the screen.
S200, starting detection on the state of the mobile terminal, and acquiring the current state of the mobile terminal.
Specifically, the detection of the mobile terminal state by the starting may be to start monitoring the mobile terminal state when the mobile state system is started, and the dynamic wallpaper starting function is used as a default starting option, so that the dynamic wallpaper function can be started more conveniently. The mobile terminal state detection can also be started after the instruction for starting the dynamic wallpaper function is received, so that the mobile terminal state detection can be started according to the user needs, and the user will be reflected.
For example, to reduce the power consumption of the mobile terminal, a monitoring procedure may be included before the detection of the state of the mobile terminal is initiated, which specifically includes:
detecting the screen state of the mobile terminal;
if the screen of the mobile terminal is in a screen-off state, stopping monitoring the state of the mobile terminal;
and if the screen of the mobile terminal is in the awakening state, starting monitoring the state of the mobile terminal.
The dynamic wallpaper of the mobile terminal can be displayed only when the screen of the mobile terminal is in the awakening state, so that the monitoring of the state of the mobile terminal is started or stopped according to the state of the screen of the mobile terminal, the energy consumption of the mobile terminal can be saved, and the service life of the mobile terminal is prolonged.
In this embodiment, the starting of the detection of the state of the mobile terminal to obtain the current state of the mobile terminal specifically includes monitoring the state of the mobile terminal through a gravity sensor, and determining the current state of the mobile terminal according to data obtained by the gravity sensor. That is to say, when the state detection of the mobile terminal is started, the terminal acquires the sensing data of the gravity sensor according to the preset monitoring frequency, and determines the current state of the mobile terminal according to the sensing data of the gravity sensor. It should be noted that the gravity sensor is a monitoring device used in this embodiment. In other embodiments, besides the detection by the gravity sensor, there may be other monitoring manners, such as directly monitoring the current posture of the mobile terminal, for example: direction of motion, speed of motion, landscape and portrait, etc. The above detection by gravity sensors is a preferred implementation and should not be construed as the only limitation to the embodiments of the present invention.
And S300, calculating the drawing offset of the multilayer wallpaper according to the current state of the mobile terminal.
Specifically, calculating the drawing offset of the multi-layer wallpaper according to the current state of the mobile terminal refers to calculating the drawing offset of the multi-layer wallpaper according to sensing data of a gravity sensor acquired through the monitoring frequency. As shown in fig. 2, it may specifically include:
and S10, monitoring the sensing data of the gravity sensor.
And S20, acquiring a left-right inclination angle a1 and a front-back inclination angle a2 of the mobile terminal according to the sensing data.
Specifically, the left-right tilt angle a1 of the mobile terminal refers to the angle change of the left-right direction of the mobile terminal when the mobile terminal changes from the previous state to the current state. Here, the left-right inclination angle a1 of the current state with respect to the previous state is determined on the basis of the previous state of the current state. Accordingly, the front-back tilt angle is also used to change the angle of the mobile terminal from the previous state to the current state.
S30, comparing the left-right inclination angle a1 and the front-back inclination angle a2 with preset threshold values respectively.
Specifically, the preset threshold is a judgment basis for judging whether the mobile terminal changes the wallpaper, and may be preset by the system, or may be modified according to a user requirement. Therefore, the display of the dynamic wallpaper can be realized according to the shaking degree of the user to the dynamic wallpaper and the mobile terminal, the requirements of different users on different display degrees of the dynamic wallpaper are met, and the interactivity between the dynamic wallpaper and the user is improved.
And S40, when the left-right inclination angle a1 and/or the front-back inclination angle a2 are larger than a preset threshold value, calculating the offset of the multilayer wallpaper according to the left-right inclination angle a1 and the front-back inclination angle a 2.
Specifically, when one of the left-right inclination angle a1 and the front-back inclination angle a2 is larger than a preset threshold, it indicates that the mobile terminal shakes, and the mobile terminal needs to display the wallpaper correspondingly. Accordingly, when the left-right inclination angle a1 and/or the front-back inclination angle a2 is larger than a preset threshold value, the offset amount of the multi-layer wallpaper is calculated according to the left-right inclination angle a1 and the front-back inclination angle a 2. When the left-right inclination angle a1 and the front-back inclination angle a2 are both smaller than a preset threshold value, the mobile terminal is not defaulted to shake, wallpaper does not need to be replaced, so that the offset of multiple layers of wallpaper is not calculated, the state of the mobile terminal is monitored continuously, and the sensing data of the gravity sensor is obtained.
In this embodiment, since only the drawing offset amount of one layer of wallpaper can be calculated according to the left-right inclination angle a1 and the front-back inclination angle a 2. Thereby the calculating the offset of the multilayer wallpaper according to the left-right inclination angle a1 and the front-back inclination angle a2 further comprises:
s401, respectively calculating a left-right offset xoff and an up-down offset yoff of wallpaper next far from the screen according to the left-right inclination angle a1 and the front-back inclination angle a 2.
Specifically, the second-most wallpaper refers to a wallpaper that is the second last-most distant from the screen. That is, the left-right offset and the up-down offset of the wallpaper which is the second last from the screen are respectively calculated according to the left-right inclination angle a1 and the front-back inclination angle a 2. This is because the wallpaper farthest from the screen is the background, which is the same size as the screen, and the wallpaper as the background does not move during the drawing process. Of course, in other implementations of the embodiment, the left-right offset xoff and the up-down offset yoff of the wallpaper closest to the screen are calculated according to the left-right inclination angle a1 and the front-back inclination angle a 2.
S402, calculating the left and right offset and the up and down offset of each wallpaper according to the area relation between each wallpaper and the next far wallpaper, and obtaining the drawing offset of the multilayer wallpaper.
Specifically, the relationship between the offset of each wallpaper and the obtained offset is determined according to the area relationship between each wallpaper and the next-to-next wallpaper, and then the corresponding relationship of each wallpaper is determined according to the relationship between the offsets of each wallpaper. Here, also taking 3 layers of wallpaper and the area relationship between them as an example, the left-right offset xoff and the up-down offset yoff calculated from the left-right inclination angle a1 and the front-back inclination angle a2 are the left-right offset xoff and the up-down offset yoff of the middle scene. The ratio of the area difference between the foreground and the background to the area difference between the intermediate scene and the background is 2: 1. The left and right offsets of the foreground are 2 times xoff and the up and down offsets are 2 times yoff.
Of course, when the left offset xoff and the up offset yoff of the wallpaper nearest to the screen are respectively calculated according to the left-right inclination angle a1 and the front-back inclination angle a2, the left offset and the up offset of each wallpaper are calculated according to the area relationship between each wallpaper and the nearest wallpaper, and the drawing offset of the multilayer wallpaper is obtained. Here, also taking 3 layers of wallpaper and the area relationship between them as an example, the left-right offset xoff and the up-down offset yoff calculated from the left-right inclination angle a1 and the front-back inclination angle a2 are the left-right offset xoff and the up-down offset yoff of the foreground. The ratio of the area difference between the foreground and the background to the area difference between the intermediate scene and the background is 2: 1. The left and right offsets of the foreground are xoff/2 and the up and down offsets are yoff/2.
Further, when the left-right inclination angle a1 and/or the front-rear inclination angle a2 are larger than a preset threshold, the a1 and a2 are saved as initial values for calculating the next state. That is, when the left-right inclination angle a1 and/or the front-rear inclination angle a2 are greater than the preset threshold values, the already stored values of a1 and a2 are updated with the values of a1 and a 2.
And S50, sending the drawing offset to the drawing program.
S400, according to the drawing offset, drawing multiple layers of wallpaper to form wallpaper corresponding to the current state of the mobile terminal, and controlling a screen to display the wallpaper.
Specifically, the drawing program draws each wallpaper respectively according to the received drawing offset of each wallpaper, forms the wallpaper corresponding to the current state of the mobile terminal, and controls a screen to display the wallpaper. Taking 3 layers of wallpaper as an example for explanation, the drawing program firstly draws a background on the screen, then draws a foreground according to a foreground left and right offset 2xoff and an upper and lower offset 2yoff, and finally draws an intermediate scene according to an intermediate scene left and right offset xoff and an upper and lower offset yoff, so as to form the wallpaper corresponding to the current state of the mobile terminal, and control the screen to display the wallpaper. It should be noted that xoff and yoff can be set to 0 as an initial value when the gravity sensor value is not obtained at the time of the first rendering. The process of drawing is executed each time the gravity sensor receives data to be drawn.
In other embodiments of the present invention, in order to provide accuracy of shake detection of the mobile terminal, data of the gyroscope may be monitored at a peer monitoring sensing data of the gravity sensor. The reason is that the data of the gravity sensor is not very stable, the data of the mobile phone is greatly changed by slight shaking of the mobile phone, and people only want to identify the inclination angle of the mobile phone in the left-right front-back direction, and if the mobile phone is not inclined, the picture should not be moved, so that the picture display can be smoother, the picture drawing times can be reduced, and the power consumption of the mobile phone can be reduced.
The gyroscope can only measure the rotation of the mobile phone, so that the gyroscope can monitor the rotation, and when the mobile phone is found not to rotate, the gyroscope can filter data of the gravity sensor to prevent the gravity sensor from sending a drawing instruction. The method of monitoring the gyroscope is the same as the gravity sensor and is not described in detail.
After data of the gyroscope is received, the data are recorded firstly, the rotation amount of the mobile phone is calculated, if the rotation amount is small, the data of the gravity sensor are calculated, the change of the data of the gravity sensor is ignored, and therefore the function of smoothing can be achieved.
The invention also provides a system for implementing dynamic wallpaper of a mobile terminal, as shown in fig. 3, comprising:
the mobile terminal comprises a presetting module 100, a display module and a display module, wherein the presetting module 100 is used for presetting a plurality of layers of wallpaper parallel to a screen plane of the mobile terminal, and the plurality of layers of wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal;
an obtaining module 200, configured to start detection on a state of a mobile terminal, and obtain a current state of the mobile terminal;
a calculating module 300, configured to calculate a drawing offset of the multi-layer wallpaper according to a current state of the mobile terminal;
and the display module 400 is configured to draw multiple layers of wallpaper to form a wallpaper corresponding to the current state of the mobile terminal according to the drawing offset, and control a screen to display the wallpaper.
The system for realizing the dynamic wallpaper of the mobile terminal is characterized in that the multiple layers of wallpaper are sequentially arranged along an axis perpendicular to a screen plane, the multiple layers of wallpaper are identical in shape, the areas of the multiple layers of wallpaper are sequentially reduced according to the distance between the multiple layers of wallpaper and the screen, and the area of the layer farthest from the screen is identical to the area of the screen.
The system for realizing the dynamic wallpaper of the mobile terminal is characterized in that a plurality of transparent or semitransparent parts are arranged in the multilayer wallpaper except for the layer farthest from the screen.
The system for implementing the dynamic wallpaper of the mobile terminal, wherein the obtaining module is specifically configured to:
the method comprises the steps of monitoring the state of the mobile terminal through a gravity sensor, and determining the current state of the mobile terminal according to data acquired by the gravity sensor.
In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for realizing dynamic wallpaper of a mobile terminal is characterized by comprising the following steps:
presetting a plurality of layers of static wallpaper parallel to the screen plane of the mobile terminal, wherein the plurality of layers of static wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal;
starting detection on the state of a mobile terminal to acquire the current state of the mobile terminal;
calculating the drawing offset of the multi-layer static wallpaper according to the current state of the mobile terminal;
and drawing multiple layers of static wallpaper to form wallpaper corresponding to the current state of the mobile terminal according to the drawing offset, and controlling a screen to display the wallpaper.
2. The method for implementing dynamic wallpaper of a mobile terminal according to claim 1, wherein the multiple layers of static wallpaper are sequentially arranged along an axis perpendicular to a screen plane, and the multiple layers of static wallpaper have the same shape and sequentially decrease in area according to the distance from the screen, wherein the area of the wallpaper farthest from the screen is the same as the area of the screen.
3. The method for implementing dynamic wallpaper of a mobile terminal as claimed in claim 2, wherein the multiple layers of static wallpaper are provided with transparent or semi-transparent portions except for the wallpaper farthest from the screen.
4. The method for implementing dynamic wallpaper of a mobile terminal according to claim 1, wherein the starting of the detection of the state of the mobile terminal to obtain the current state of the mobile terminal specifically comprises:
the method comprises the steps of monitoring the state of the mobile terminal through a gravity sensor, and determining the current state of the mobile terminal according to data acquired by the gravity sensor.
5. The method for implementing dynamic wallpaper of a mobile terminal according to claim 1, wherein the calculating a rendering offset of the multi-layer static wallpaper according to the current state of the mobile terminal specifically comprises:
acquiring a left-right inclination angle and a front-back inclination angle of the mobile terminal according to the current state of the mobile terminal;
comparing the left-right inclination angle and the front-back inclination angle with preset threshold values respectively;
and when the left-right inclination angle and/or the front-back inclination angle are larger than a preset threshold value, calculating the offset of the multilayer static wallpaper according to the left-right inclination angle and the front-back inclination angle.
6. The method for implementing dynamic wallpaper according to claim 5, wherein the calculating an offset of the multi-layer static wallpaper according to the left-right tilt angle and/or the front-back tilt angle when the left-right tilt angle and/or the front-back tilt angle is larger than a preset threshold specifically comprises:
when the left-right inclination angle and/or the front-back inclination angle are/is larger than a preset threshold value, respectively calculating left-right offset and upper-lower offset of wallpaper next far from the screen according to the left-right inclination angle and the front-back inclination angle;
and calculating the left and right offset and the up and down offset of each wallpaper according to the area relationship between each wallpaper and the next far wallpaper, and obtaining the drawing offset of the multilayer static wallpaper.
7. A system for implementing dynamic wallpaper of a mobile terminal is characterized by comprising:
the mobile terminal comprises a presetting module, a display module and a display module, wherein the presetting module is used for presetting a plurality of layers of static wallpaper parallel to the screen plane of the mobile terminal, and the plurality of layers of static wallpaper form all dynamic effects of the dynamic wallpaper of the mobile terminal;
the mobile terminal comprises an acquisition module, a detection module and a processing module, wherein the acquisition module is used for starting the detection of the state of the mobile terminal and acquiring the current state of the mobile terminal;
the calculation module is used for calculating the drawing offset of the multi-layer static wallpaper according to the current state of the mobile terminal;
and the display module is used for drawing multiple layers of static wallpaper to form the wallpaper corresponding to the current state of the mobile terminal according to the drawing offset and controlling a screen to display the wallpaper.
8. The system for implementing dynamic wallpaper according to claim 7, wherein the multiple layers of static wallpaper are sequentially arranged along an axis perpendicular to the screen plane, and the multiple layers of static wallpaper have the same shape and sequentially decrease in area according to the distance from the screen, wherein the area of the wallpaper farthest from the screen is the same as the area of the screen.
9. The system for implementing dynamic wallpaper for a mobile terminal as claimed in claim 8, wherein the multiple layers of static wallpaper are provided with transparent or semi-transparent portions except for the wallpaper farthest from the screen.
10. The system for implementing dynamic wallpaper of a mobile terminal as claimed in claim 7, wherein the obtaining module is specifically configured to:
the method comprises the steps of monitoring the state of the mobile terminal through a gravity sensor, and determining the current state of the mobile terminal according to data acquired by the gravity sensor.
CN201610397511.0A 2016-06-07 2016-06-07 Method and system for realizing dynamic wallpaper of mobile terminal Active CN106055335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610397511.0A CN106055335B (en) 2016-06-07 2016-06-07 Method and system for realizing dynamic wallpaper of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610397511.0A CN106055335B (en) 2016-06-07 2016-06-07 Method and system for realizing dynamic wallpaper of mobile terminal

Publications (2)

Publication Number Publication Date
CN106055335A CN106055335A (en) 2016-10-26
CN106055335B true CN106055335B (en) 2020-04-07

Family

ID=57170532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610397511.0A Active CN106055335B (en) 2016-06-07 2016-06-07 Method and system for realizing dynamic wallpaper of mobile terminal

Country Status (1)

Country Link
CN (1) CN106055335B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873985A (en) * 2017-01-13 2017-06-20 深圳市金立通信设备有限公司 A kind of method and terminal that wallpaper is set
CN107291329A (en) * 2017-06-09 2017-10-24 珠海格力电器股份有限公司 The method and apparatus that dynamic wallpaper is presented in a kind of screen
CN108717369A (en) * 2018-05-06 2018-10-30 深圳市保千里电子有限公司 A kind of method and terminal for realizing and controlling dynamic wallpaper
CN109147060A (en) * 2018-09-25 2019-01-04 北京金山安全软件有限公司 3D gravity theme display method and device and electronic equipment
CN109598773A (en) * 2018-12-05 2019-04-09 麒麟合盛网络技术股份有限公司 A kind of method and apparatus handling static figure layer
CN109618054A (en) * 2018-12-21 2019-04-12 北京金山安全软件有限公司 Incoming call interface display method and device, electronic equipment and storage medium
CN110908757B (en) * 2019-11-18 2022-01-28 腾讯科技(深圳)有限公司 Method and related device for displaying media content

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399688A (en) * 2013-07-26 2013-11-20 三星电子(中国)研发中心 Interaction method and interaction device for dynamic wallpaper and desktop icons
CN103744600A (en) * 2014-01-17 2014-04-23 广州市久邦数码科技有限公司 Method and system for interaction between 3D (three-dimensional) dynamic wallpaper and desktop icon
CN103902045A (en) * 2014-04-09 2014-07-02 深圳市中兴移动通信有限公司 Method and device for operating wallpaper via non-contact postures
CN104427087A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Method for realizing dynamic wallpaper of mobile terminal, and mobile terminal
CN104750393A (en) * 2015-04-22 2015-07-01 广东欧珀移动通信有限公司 Wallpaper setting method and device
CN105867910A (en) * 2016-03-24 2016-08-17 乐视控股(北京)有限公司 Dynamic wallpaper presenting method and apparatus for mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399688A (en) * 2013-07-26 2013-11-20 三星电子(中国)研发中心 Interaction method and interaction device for dynamic wallpaper and desktop icons
CN104427087A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Method for realizing dynamic wallpaper of mobile terminal, and mobile terminal
CN103744600A (en) * 2014-01-17 2014-04-23 广州市久邦数码科技有限公司 Method and system for interaction between 3D (three-dimensional) dynamic wallpaper and desktop icon
CN103902045A (en) * 2014-04-09 2014-07-02 深圳市中兴移动通信有限公司 Method and device for operating wallpaper via non-contact postures
CN104750393A (en) * 2015-04-22 2015-07-01 广东欧珀移动通信有限公司 Wallpaper setting method and device
CN105867910A (en) * 2016-03-24 2016-08-17 乐视控股(北京)有限公司 Dynamic wallpaper presenting method and apparatus for mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
简单方法实现重力感应背景图(GravityImageView);wangxiaoku;《https://blog.csdn.net/wangxiaoku/article/details/50640184》;20160206;1-5 *

Also Published As

Publication number Publication date
CN106055335A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106055335B (en) Method and system for realizing dynamic wallpaper of mobile terminal
US20210098022A1 (en) Method for generating video, and electronic device and readable storage medium thereof
WO2021008456A1 (en) Image processing method and apparatus, electronic device, and storage medium
KR101859312B1 (en) Image processing method and apparatus, and computer device
RU2623201C2 (en) Mobile display device
US20220157285A1 (en) Method for synthesizing video, terminal and storage medium
US9674444B2 (en) Apparatus and method for positioning image area using image sensor location
US10701282B2 (en) View interpolation for visual storytelling
WO2012120799A1 (en) Display device and method of switching display direction
US9565333B2 (en) Apparatus and method for processing an image in device
TWI581176B (en) Image adjusting system and method
CN105190685B (en) Method and apparatus for providing the self-adapting data path for being used for computer vision application program
US9022864B2 (en) Apparatus and method for controlling objects on a stereoscopic display
US9105132B2 (en) Real time three-dimensional menu/icon shading
CN104539843A (en) Terminal shooting method
CN110537208B (en) Head-mounted display and method
JP2014002614A (en) Image processing apparatus and image processing method
CN116724558A (en) Techniques for capturing video in landscape mode by a handheld device
CN104580890A (en) Terminal
JP6161400B2 (en) Video playback apparatus and control method thereof
CN111954058A (en) Image processing method, image processing apparatus, electronic device, and storage medium
JP5222646B2 (en) Terminal device, display control method, and display control program
CN111064886B (en) Shooting method of terminal equipment, terminal equipment and storage medium
KR101960046B1 (en) Method for producing virtual reality image, portable device in which VR photographing program for performing the same is installed, and server supplying the VR photographing program to the portable device
KR20150010070A (en) Method and apparatus for dispalying images on portable terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant