CN109710143A - A kind of changing interface control method, terminal and computer readable storage medium - Google Patents

A kind of changing interface control method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109710143A
CN109710143A CN201811408672.0A CN201811408672A CN109710143A CN 109710143 A CN109710143 A CN 109710143A CN 201811408672 A CN201811408672 A CN 201811408672A CN 109710143 A CN109710143 A CN 109710143A
Authority
CN
China
Prior art keywords
control
interface
point
zoom
bezier
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.)
Granted
Application number
CN201811408672.0A
Other languages
Chinese (zh)
Other versions
CN109710143B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811408672.0A priority Critical patent/CN109710143B/en
Publication of CN109710143A publication Critical patent/CN109710143A/en
Application granted granted Critical
Publication of CN109710143B publication Critical patent/CN109710143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of changing interface control methods, terminal and computer readable storage medium, this method is by control is reduced respectively in current scrolling interface handoff procedure and two curves of amplification animation are improved to a zoom control curve and zoom in and out control, the zoom control curve includes a Bezier, a zoom control switching point is provided on Bezier, zoom control before zoom control switching point is zoomed in and out according to Bezier, zoom control after zoom control switching point is zoomed in and out according to preset value, it solves current two curves progress changing interface animation and needs to be respectively set two interpolation devices, cause to calculate complicated, there are problems that interfering with each other, the invention also discloses a kind of equipment and computer readable storage mediums, by implementing above scheme, it solves and is inserted at present using two Value device causes computationally intensive and the problem of interfere with each other.

Description

A kind of changing interface control method, terminal and computer readable storage medium
Technical field
The present invention relates to Graphic Interface Control technical fields, more specifically to a kind of changing interface control method, end End and computer readable storage medium.
Background technique
When the interface cartoon shown in terminal at present needs to change, variable condition it can proceed to interface since interface cartoon Animation terminates variable condition, and interface cartoon is by passing through terminal from beginning variable condition to this process for terminating variable condition The interface cartoon curve controlled of running background.General interface animation curve is packaged in various non-thread in interpolation device Property variation function formed curve, the changing value defined by different functions, determine relative to time change value variation advise Then (for example accelerate and slow down etc.).For example, in the changing interface of terminal, the interface that the interface before switching is excessively arrived after switching is It is realized by interface cartoon, and interface cartoon curve is reflection and control interface animation switches from beginning switching state to end The curve of this process of state, that is, interface cartoon curve can reflect the variation journey of the animation at interface with the variation of time Degree.
At present in the application scenarios of some common interface cartoons, such as in scrolling interface, the animation at interface usually divides For two parts, a part is the interface cartoon reduced, and another part be the interface cartoon amplified, as terminal executor at the same time When the two interface cartoons, respectively each interface cartoon is needed to distribute interpolation device and complete respective interface cartoon, The complexity that this will lead to calculating is high, is easy to produce and interferes with each other, while being also unfavorable for the coordination of two interface cartoons.
Summary of the invention
The technical problem to be solved in the present invention is that existing simultaneously the boundary of amplification and diminution in current scrolling interface animation Face animation needs to use at this time two interpolation devices, causes computation complexity high, and the big problem of cooperation difficulty is asked for the technology Topic, provides a changing interface control method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of changing interface control method, which is characterized in that the interface Method for handover control includes:
Detect changing interface trigger command;
Obtain target interface currently to be cut in the list of interface;
The target interface is carried out according to pre-set zoom controlling curve according to the track that the target interface currently moves Zoom control, the zoom control curve include a Bezier, and a scaling control is provided on the Bezier Switching point processed, the zoom control before zoom control switching point are zoomed in and out according to Bezier, are switched in zoom control Zoom control after point is zoomed in and out according to preset value.
Optionally, the preset value is a preset target line, the target line and the Bezier Intersection point is the zoom control switching point.
Optionally, zooming in and out control according to the target line is, according to each value in the target line The value of point zooms in and out control to the target interface.
When optionally, before zoom control point is located at the zoom control switching point, the zoom control of return is according to institute The return curve for stating Bezier zooms in and out control;
When zoom control point is located at after the zoom control switching point, the zoom control of return is straight according to the target The reverse extending line of line zooms in and out control.
Optionally, the target line is identical with the value of the starting point and ending point of the Bezier one Straight line.
Optionally, the target line connected between the starting point and the terminating point has with the Bezier Crosspoint, the crosspoint are the zoom control switching point;
The crosspoint is to be generated by the termination control point at the starting control point and terminating point that control the starting point: control System starting control point makes value of the Bezier the initial segment in Y-axis be less than the Y value of starting point, controls and terminates control Point is so that the Bezier intersects with the target line.
Optionally, the angle of the target line and horizontal linear is 45 °.
Optionally, when detecting changing interface triggering, each interface in the interface list is controlled by default diminution side Formula is reduced.
Further, the present invention also provides a kind of terminal, the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize the above-mentioned institute being previously mentioned The step of changing interface control method stated.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums There is one or more program, one or more of programs can be executed by one or more processor, above-mentioned to realize The step of changing interface control method being previously mentioned.
Beneficial effect
The present invention provides a kind of changing interface control method, terminal and computer readable storage medium, for existing rolling In dynamic interface cartoon, the interface cartoon of amplification and diminution is existed simultaneously, needs to use two interpolation devices at this time, causes to calculate complicated Degree is high, and the big problem of cooperation difficulty realizes boundary by the way that the controlling curve of two interface cartoons is merged into a controlling curve The zoom control of face animation solves and needs to use two interpolation devices using the scaling of two curve controlled interface cartoons at present, Caused computation complexity is high, and the big problem of cooperation difficulty is realized the merging of two controlling curves, using an interpolation device The zoom function that can complete interface cartoon reduces the computation complexity of terminal, promotes user experience.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is a kind of basic flow chart for changing interface control method that the embodiment of the present invention one provides;
Fig. 3 is a kind of zoom control curve for changing interface control method that first embodiment of the invention provides;
Fig. 4 is the detail flowchart for the zoom control curve controlled interface cartoon that first embodiment of the invention provides;
Fig. 5 is a kind of zoom control curve for changing interface control method that second embodiment of the invention provides;
Fig. 6 is a kind of zoom control curve for changing interface control method that third embodiment of the invention provides;
Fig. 7 is the structural schematic diagram for the terminal that fourth embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the method for the present invention is proposed.
First embodiment
Fig. 2 is a kind of changing interface control method basic flow chart provided in this embodiment, the changing interface control method Include:
S301, changing interface trigger command is detected.
Wherein, changing interface trigger command includes: screen touch-control trigger command, voice control trigger command and gesture manipulation Trigger command etc., the mode that terminal can be inputted and terminal is made to generate trigger command.
S302, target interface currently to be cut in the list of interface is obtained.
In this step, the method for obtaining the current target interface wait cut of interface list includes: when being triggered according to screen Touch-control moving direction determine mesh currently to be cut to determine target interface currently to be cut, carry out identification to voice command Demarcate face, target interface currently to be cut etc. determined according to the corresponding manipulation instruction of gesture manipulation.
Target interface is commonly referred to be next needs according to determined by the changing interface trigger command of user current The operation and control interface that the top layer of terminal interface is shown.
S303, according to the current motion track of target interface, zoom in and out control according to pre-set zoom controlling curve.
The track currently moved according to target interface zooms in and out the target interface according to pre-set zoom controlling curve Control, zoom control curve include a Bezier, are provided with a zoom control switching point on Bezier, are contracting Zoom control before putting control switching point (CSP) is zoomed in and out according to Bezier, the scaling control after zoom control switching point System is zoomed in and out according to preset value.
Zoom control after zoom control switching point is zoomed in and out according to preset value, and preset value herein is preset The intersection point of one target line, target line and Bezier is zoom control switching point.
During the practical manipulation of interface cartoon, the entire complete procedure of interface cartoon is substantially by boundary one by one Face picture gradually plays the image of the movement to obtain, interface cartoon manipulation during, in order to reduce program work person's Workload, during the definition of actual interface cartoon, the person that usually only needs program work this corresponding interface interface is provided Picture and setting starting interface picture size terminate interface picture size and corresponding animation curve, transport in program In capable process, system can be adjusted and gradually play adjusted to corresponding interface picture according to corresponding animation curve Interface picture is to obtain the complete procedure of interface cartoon.
For current program when zooming in and out control using Bezier, common method is to call directly interpolation device It completes, carrying out control to interface cartoon using Bezier is, it is only necessary to corresponding interface picture be provided and set Bezier, interpolation device can interface picture on automatic interleave recruiting curve, thus to realize animation, of the invention real It applies in example, interpolation device can reside in entire zoom control curve.It in other embodiments, can also be in zoom control Interpolation device is used before switching point, and interpolation device is no longer used after zoom control switching point, can effectively reduce calculating in this way Complexity.
In the embodiment of the present invention, the zoom control after zoom control switching point is carried out according to goal-selling straight line, root Zooming in and out control according to target line is, zooms in and out control to target interface according to the value of each data point in target line System.In the real process of interface cartoon, system can read out interface picture corresponding to current animation when running animation first With corresponding animation curve, in general, corresponding to the size of original interface picture and the starting point of animation curve, on curve The Y value of each data point represent the size or scaling of interface picture, such as when the song that curve is a rising Y value becomes larger when line, and interface picture will gradually amplify, the X value of each data point on curve represent the time or The mobile position of person;The complete process of one of interface cartoon is exactly that the interface picture as corresponding to the trend on curve is gradually broadcast The image of an obtained movement is put, in practical applications, the data point on curve is more intensive, and the transition of animation is also thinner Greasy, human eye is usually 30 frame per second to a boundary of the frame number of animation perception at present, that is, when animation frame number does not have second frame, Human eye will perceive apparent Caton sense, therefore requirement is that data point per second is necessary to taking a little on curve under normal conditions Greater than 30 points, this just can guarantee the good usage experience of user.
In embodiments of the present invention, the zoom control curve of interface cartoon two parts have been divided into, two parts are to contract Control switching point (CSP) is put as connecting points, the curve before zoom control switching point is Bezier, is switched in zoom control Curve after point is therefore straight line can be divided into two processes in the control process of interface cartoon, and first process is Bei Sai The control process of your curve, the zoom control of the process can be completed using interpolation device, and second process is the control of straightway Process processed, for the process since zoom control curve is the straight line at the uniform velocity changed, can not need interpolation device can complete boundary The control process of face animation, it should be noted that two processes are realized as a complete process in actual operation.
After detecting changing interface trigger command, during interface cartoon executes zoom control, there can be user The case where return, user will issue opposite order at this time, animation will be returned to opposite scaling process before shape State.When in an embodiment of the present invention, before zoom control point is located at zoom control switching point, the zoom control of return according to The return curve of Bezier zooms in and out control;When zoom control point is located at after zoom control switching point, return Zoom control zooms in and out control according to the reverse extending line of target line.Zoom control point is value current on curve Point, the data point determine currently playing interface cartoon be in where and current animation scaling;Work as scaling When control point is in front of scaling switching point, user is returned, and issues reversed order, and the scaling process of interface cartoon will be by It is big back to starting point, that is, the interface picture originated according to the opposite process of the Bezier before scaling switching point It is small;When zoom control point is in after scaling switching point, user is returned, and issues reversed order, the scaling of interface cartoon Process will be returned according to the opposite process of straight line, when reach scale switching point when, will not according to Bezier into Row returns, but is reversely returned according to the reverse extending line of straight line.
In other embodiments, the starting point and ending point of target line and the starting point of Bezier and termination Point is overlapped, this have the advantage that, such as there is above situation, when zoom control point is in after scaling switching point, use Family returns, and issues reversed order, and the scaling process of interface cartoon will be returned according to the opposite process of straight line, when It when reaching scaling switching point, will not be returned, but be carried out according to the reverse extending line of straight line reversed according to Bezier It returns, the reverse extending point starting point of straight line is just overlapped with the starting point of Bezier at this time, anti-in entire animation in this way At the end of, it would not be generated with the picture at starting interface and significantly isolate sense, to promote user experience.
As shown in figure 3, giving a kind of schematic diagram for generating zoom control point in the embodiment of the present invention.Starting point 1 and end The target line and Bezier connected between stop 2 has crosspoint 3, and crosspoint 3 is zoom control switching point;Crosspoint 3 To be generated by the starting control point 4 of control starting point 1 and the termination control point 5 of terminating point 2;Control starting control point 4 makes Value of the Bezier the initial segment in Y-axis be less than starting point Y value, control terminate control point 5 make Bezier with Target line intersection.
As shown in figure 3, the animation for working as interface carries out the zoom control of animation according to zoom control curve as shown in Figure 3 When, as shown in figure 4, the step of zoom control is as follows the step of zoom control:
S401, changing interface trigger command is detected, interface cartoon program brings into operation.
S402, target interface currently to be cut in the list of interface is obtained, and according to the interface of the target interface got Picture information and zoom control curve shown in Fig. 3 are matched.
S403, scaling is controlled according to Bezier.
In the last period zoom control curve of interface cartoon, the purpose using Bezier is can to increase animation mistake The agile sense crossed, so that the control of the last period interface cartoon of zoom control process becomes more smoothly.
S404, judges whether user returns.It is to go to S4041;Otherwise S405 is gone to.
During interface cartoon variation, a process of value actually on curve, this value can be with table Show that perhaps scaling etc. also may indicate that moving distance or time etc. for the rate of change of interface picture;Currently on curve As soon as the value got may be considered a control point, the position at the control point determines locating in interface cartoon change procedure Position or time.
S4041, it detects that user returns, scaling is controlled according to the inverse process of Bezier.
When control point is on Bezier, detect that user makes the order of return at this time, it may be considered that with Family abandon at this time before changing interface trigger command, at this point, animation can be according to your process of Bezier back to contracting Put the interface state before the initial point position of controlling curve, that is, return.
S405, when control point be more than zoom control switching point after, scaling is controlled according to straight line.
Zoom control switching point is the crosspoint of straight line and Bezier.
S406, judge whether user returns.It is to go to S4061;Otherwise S407 is gone to.
S4061, it detects that user returns, scaling is controlled according to your process of straight line.
S4062, when control point reach zoom control switching point when, according to straight line reverse extending line more scale controlled System.
S407, when the return of user is not detected, terminating point is reached, interface cartoon terminates.
In some embodiments, the angle of target line and horizontal linear is 45 °.45 ° common proper for one Angle, for the zoom control curve controlled of interface cartoon at 45 °, the rate of change of animation is opposite can be more moderate.
The embodiment of the invention provides a kind of changing interface control method, this method will occur simultaneously in scrolling interface animation Amplification and two curves of diminution merge into a curve, this curve is made of a Bezier and straight line, shellfish The crosspoint of Sai Er curve and straight line is zoom control switching point, when the control point on curve be located at zoom control switching point it When preceding, zoom control is completed according to Bezier, when curve colouring control point is located at after zoom control switching point, scaling Control is completed according to straight line, further, since straight line is a line of even variation, when zoom control point is in The zoom control of interface cartoon can be completed without using interpolation device when on straight line, to reduce the use time of difference device And number is used, the computation complexity in scaling animation control process is thereby reduced, of zoom control curve is reduced Number, avoids the case where two curves interfere with each other.
Second embodiment
Fig. 5 is another changing interface control method that second embodiment of the invention provides, the changing interface control method Including when detecting changing interface triggering, each interface in control interface list is reduced by default diminution mode.
As shown in figure 5, when detecting changing interface trigger command, by all interfaces in the list of interface according to shellfish plug You are reduced curve starting point 11, and the scaling process of target interface is as follows: the starting control point of interface cartoon is by starting point 1 The starting point 11 for directly narrowing down to Bezier, then by the starting point of Bezier 11 according to the progress of Bezier Zoom control, when the control point on curve reaches zoom control switching point 3, zoom control is switched to directly by Bezier Line zooms in and out control according to straight line.It is worth noting that, in the present embodiment, whether detection user returns and difference device Use it is all identical with embodiment one.
In the present embodiment, when detecting changing interface trigger command, all interfaces in the list of interface are carried out first It reduces, to user one obvious feedback animation, understands convenient for user, whether current changing interface trigger command It comes into force, to promote user experience.
3rd embodiment
The present embodiment in conjunction with the embodiments one and embodiment two, proposes a kind of preferred embodiment of the embodiment of the present invention, such as It is the preferred embodiment of the embodiment of the present invention shown in Fig. 6.
In the present embodiment, zoom control curve include starting control point 1, terminate control point 2, zoom control switching point 3, It originates control point 4 and terminates control point 5 and X-axis and Y-axis;In the present embodiment, X-axis can indicate moving distance and/or The time of interface cartoon scaling, Y-axis indicate the scaling of interface picture and/or the rate of scaling, and straight line and Bezier are bent The starting point and ending point of line is overlapped, and the zoom control switching point in Fig. 6 is the crosspoint of straight line and Bezier.
In the present embodiment, for two feature in conjunction with the embodiments on the basis of example 1, in rising for interface cartoon During beginning, the diminution animation for needing all interfaces in an interface list occur, therefore in the stage of curve starting, it needs An existing quick reclinate curve, the control point 4 of control starting at this time, so that the Y value at starting control point 4 is negative, to make The value for obtaining the curve of the initial phase of Bezier is less than the value of starting point 1, in order to reduce the starting of Bezier The time that stage reduces will originate the negative semiaxis for forgetting Y-axis of control point 4 as far as possible and draw close.
In the present embodiment, in order to reach the participation time of few interpolation device in example one, to further reduce meter The complexity of calculation, adjustment terminates the value at control point 5, so that the crosspoint 3 (zoom control switching point) of Bezier and straight line As far as possible forward, to reduce the participation time of interpolation device.
Further description: the contracting of interface cartoon is carried out to the scaling change procedure of the interface cartoon of the present embodiment below It is as shown in Figure 6 to put controlling curve.
Detect changing interface trigger command;
Obtain target interface currently to be cut in the list of interface;
Each interface in broomrape front interface list is reduced according to Bezier, and is mended automatically using interpolation device Fill animation frame therein;
When narrowing down to the minimum value of Bezier in Fig. 6, the interface in the list of interface in addition to target interface does not exist Scaling variation occurs;
Target interface is amplified according to Bezier at this time, is intersected until the control point on zoom control curve reaches When point 3 (zoom control switching point), interpolation device stops working;
When detect occur in above process user need return order when, the scaling of above-mentioned interface cartoon changed The inverse process of journey as procedure described above is played back, until returning to starting point 1;
When the control point on zoom control curve reaches crosspoint 3 (zoom control switching point), and continues to be moved along, The animation of target interface at this time zooms in and out control according to straight line, due to the straight line that straight line at this time is transport variation, no It needs interpolation device participation to carry out supplement animation frame again, is directly carried out being automatically replenished animation frame by algorithm;
When detecting that the order that user needs to return occurs on straight line in control point, the scaling process of interface cartoon according to The inverse process of straight line zooms in and out control, when the control point for returning to animation reaches crosspoint 3 (zoom control switching point), due to Interpolation device has been not involved in work at this time, therefore, at this time directly according to the reverse extending line of straight line to the interface cartoon of return into Row zoom control;
When not detecting the return command of user, interface cartoon zooms in and out control according to straight line, until terminating point, Complete the animation of entire changing interface.
The present embodiment combines the characteristics of embodiment one embodiment two, when the embodiment of the present invention preferred embodiment, this In embodiment, the contracting of the diminution time at each interface in initial phase interface list as far as possible is made by control starting control point It is short, the feedback started with user interface switching is given by the contracting at each interface in each interface list;Control is terminated by control It is processed, so that the crosspoint (zoom control switching point) of Bezier and straight line as far as possible forward, so that interpolation device It participates in the shortening of time as far as possible and reduces the calculated load of terminal to reduce the difficulty of calculating.
Fourth embodiment
The present embodiment additionally provides a kind of incoming call handling terminal, shown in Figure 7 comprising processor 71, memory 72 And communication bus 73, in which:
Communication bus 73 is for realizing the connection communication between processor 71 and memory 72;
Processor 71 is for executing the one or more programs stored in memory 72, to realize following steps::
In the present embodiment, processor 71 is also used to execute the one or more programs stored in memory 72 and executes the present invention In embodiment the step of changing interface control method of the first embodiment into 3rd embodiment.
The embodiment of the invention also provides a kind of computer readable storage mediums, in the computer-readable recording medium storage There is one or more program, which can be executed by one or more processor, to execute the present invention In embodiment the step of changing interface control method of the first embodiment into 3rd embodiment.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of changing interface control method, which is characterized in that the changing interface control method includes:
Detect changing interface trigger command;
Obtain target interface currently to be cut in the list of interface;
The target interface is zoomed in and out according to pre-set zoom controlling curve according to the track that the target interface currently moves Control, the zoom control curve include a Bezier, are provided with a zoom control on the Bezier and cut Change a little, the zoom control before zoom control switching point is zoomed in and out according to Bezier, zoom control switching point it Zoom control afterwards is zoomed in and out according to preset value.
2. changing interface control method as described in claim 1, which is characterized in that the preset value is a preset target The intersection point of straight line, the target line and the Bezier is the zoom control switching point.
3. changing interface control method as claimed in claim 2, which is characterized in that zoom in and out control according to the target line It is made as, control is zoomed in and out to the target interface according to the value of each data point in the target line.
4. changing interface control method as claimed in claim 3, which is characterized in that when zoom control point is located at scaling control When before switching point processed, the zoom control of return zooms in and out control according to the return curve of the Bezier;
When zoom control point is located at after the zoom control switching point, the zoom control of return is according to the target line Reverse extending line zooms in and out control.
5. changing interface control method according to any one of claims 1-4, which is characterized in that the target line is, with The identical straight line of the value of the starting point and ending point of the Bezier.
6. changing interface control method as claimed in claim 5, which is characterized in that between the starting point and the terminating point The target line of connection and the Bezier have crosspoint, and the crosspoint is the zoom control switching point;
The crosspoint is to be generated by the termination control point at the starting control point and terminating point that control the starting point: being controlled Beginning control point makes value of the Bezier the initial segment in Y-axis be less than the Y value of starting point, and control, which terminates control point, to be made The Bezier is obtained to intersect with the target line.
7. changing interface control method as claimed in claim 5, which is characterized in that the target line with horizontal linear Angle is 45 °.
8. changing interface control method as described in claim 1, which is characterized in that when detecting changing interface triggering, control Each interface made in the interface list is reduced by default diminution mode.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of changing interface control method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in changing interface control method the step of.
CN201811408672.0A 2018-11-23 2018-11-23 Interface switching control method, terminal and computer readable storage medium Active CN109710143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811408672.0A CN109710143B (en) 2018-11-23 2018-11-23 Interface switching control method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811408672.0A CN109710143B (en) 2018-11-23 2018-11-23 Interface switching control method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109710143A true CN109710143A (en) 2019-05-03
CN109710143B CN109710143B (en) 2021-09-28

Family

ID=66254325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811408672.0A Active CN109710143B (en) 2018-11-23 2018-11-23 Interface switching control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109710143B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113269075A (en) * 2021-05-19 2021-08-17 广州繁星互娱信息科技有限公司 Gesture track recognition method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833406A (en) * 2012-08-16 2012-12-19 广东步步高电子工业有限公司 Touch screen mobilephone capable of unlocking interface by page turning
US20130191721A1 (en) * 2012-01-23 2013-07-25 International Business Machines Corporation Dog ear-based page turning for electronic documents
US8866822B2 (en) * 2010-09-07 2014-10-21 Microsoft Corporation Alternate source for controlling an animation
CN104571877A (en) * 2015-01-16 2015-04-29 天脉聚源(北京)传媒科技有限公司 Display processing method and device for pages
CN105184041A (en) * 2015-07-09 2015-12-23 广西电网有限责任公司电力科学研究院 Spline interpolation analysis method of power transmission line meteorological characteristics
CN105578184A (en) * 2016-01-27 2016-05-11 努比亚技术有限公司 Key-frame animation generation apparatus and method
CN105957121A (en) * 2016-06-29 2016-09-21 努比亚技术有限公司 Animation display system and display method in application
CN105975180A (en) * 2016-04-29 2016-09-28 努比亚技术有限公司 Interface switching method and terminal device
CN106648399A (en) * 2015-11-02 2017-05-10 广州市动景计算机科技有限公司 Interface display processing method, apparatus and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8866822B2 (en) * 2010-09-07 2014-10-21 Microsoft Corporation Alternate source for controlling an animation
US20130191721A1 (en) * 2012-01-23 2013-07-25 International Business Machines Corporation Dog ear-based page turning for electronic documents
CN102833406A (en) * 2012-08-16 2012-12-19 广东步步高电子工业有限公司 Touch screen mobilephone capable of unlocking interface by page turning
CN104571877A (en) * 2015-01-16 2015-04-29 天脉聚源(北京)传媒科技有限公司 Display processing method and device for pages
CN105184041A (en) * 2015-07-09 2015-12-23 广西电网有限责任公司电力科学研究院 Spline interpolation analysis method of power transmission line meteorological characteristics
CN106648399A (en) * 2015-11-02 2017-05-10 广州市动景计算机科技有限公司 Interface display processing method, apparatus and device
CN105578184A (en) * 2016-01-27 2016-05-11 努比亚技术有限公司 Key-frame animation generation apparatus and method
CN105975180A (en) * 2016-04-29 2016-09-28 努比亚技术有限公司 Interface switching method and terminal device
CN105957121A (en) * 2016-06-29 2016-09-21 努比亚技术有限公司 Animation display system and display method in application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113269075A (en) * 2021-05-19 2021-08-17 广州繁星互娱信息科技有限公司 Gesture track recognition method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109710143B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN108668083B (en) Photographing method and terminal
CN107817939B (en) Image processing method and mobile terminal
WO2017101787A1 (en) Method and device for processing floating window
CN108495029B (en) Photographing method and mobile terminal
CN107707817B (en) video shooting method and mobile terminal
CN108989672B (en) Shooting method and mobile terminal
WO2020143663A1 (en) Display method and mobile terminal
CN110174993B (en) Display control method, terminal equipment and computer readable storage medium
CN106339070B (en) Display control method and mobile terminal
CN108846663B (en) Two-dimensional code adjusting method and device and mobile terminal
CN108124059B (en) Recording method and mobile terminal
CN109348019B (en) Display method and device
CN110531915B (en) Screen operation method and terminal equipment
CN111031234B (en) Image processing method and electronic equipment
CN107608606A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN110209313A (en) Icon moving method and terminal device
CN110198413A (en) A kind of video capture method, video capture device and electronic equipment
CN109192113A (en) Displaying method of terminal, terminal and computer readable storage medium
CN111443815A (en) Vibration reminding method and electronic equipment
CN107741814A (en) A kind of display control method and mobile terminal
CN105791946A (en) Image display effect adjusting method and apparatus
CN109361864B (en) Shooting parameter setting method and terminal equipment
CN109445589B (en) Multimedia file playing control method and terminal equipment
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN108833791B (en) Shooting method and device

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