CN107729080A - The implementation method and device of animation rollover effect, display methods of weighing and device - Google Patents

The implementation method and device of animation rollover effect, display methods of weighing and device Download PDF

Info

Publication number
CN107729080A
CN107729080A CN201710935191.4A CN201710935191A CN107729080A CN 107729080 A CN107729080 A CN 107729080A CN 201710935191 A CN201710935191 A CN 201710935191A CN 107729080 A CN107729080 A CN 107729080A
Authority
CN
China
Prior art keywords
xml file
scale labels
body weight
scale
initial
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.)
Pending
Application number
CN201710935191.4A
Other languages
Chinese (zh)
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.)
Zhuhai Yunmai Technology Co Ltd
Original Assignee
Zhuhai Yunmai 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 Zhuhai Yunmai Technology Co Ltd filed Critical Zhuhai Yunmai Technology Co Ltd
Priority to CN201710935191.4A priority Critical patent/CN107729080A/en
Publication of CN107729080A publication Critical patent/CN107729080A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation

Abstract

The present invention relates to the implementation method of animation rollover effect and device, display methods of weighing and device, the implementation method of animation rollover effect includes:Loaded using AnimationUtils loadAnimation methods order and perform the first XML file and the second XML file;Wherein, the generating process of the first XML file and the second XML file includes:Create the first XML file and add the first scale labels, create the second XML file and add the 2nd scale labels;The initial lateral dimension of upset object is obtained, and determines smallest lateral dimension, wherein, the percentage of smallest lateral dimension=initial lateral dimension × first;The initial lateral dimensions of parameter float fromX=in first scale labels are set, the parameter float toX=smallest lateral dimensions in the first scale labels;Parameter float fromX=smallest lateral dimensions in 2nd scale labels are set, the initial lateral dimensions of parameter float toX=in the 2nd scale labels.The ingenious scale animation effects carried with android realize rollover effect, and implementation is simpler efficiently, reduce data processing amount, reduce the size of code of equipment.

Description

The implementation method and device of animation rollover effect, display methods of weighing and device
Technical field
The present invention relates to technical field of electronic equipment, and in particular to the implementation method and device of animation rollover effect, weighs Display methods and device.
Background technology
In the prior art, android camera classes (realizing 3D effect class) or opengl (professional 3D journeys can be used Sequence interface, it is that One function is powerful, calls convenient bottom 3D shape libraries) its 3D effect is realized, so as to realize rollover effect, Generally but both approaches implement it is comparatively laborious, take stock number it is larger.
The content of the invention
For in the prior art the defects of, the implementation method and device of animation rollover effect provided by the invention, weigh it is aobvious Show method and device, the ingenious scale animation effects carried with android realize rollover effect, and implementation is more Add simply efficiently, reduce data processing amount, reduce the size of code of equipment.
In a first aspect, the invention provides a kind of implementation method of animation rollover effect, including:
Loaded using AnimationUtils loadAnimation methods order and perform the first XML file and second XML file, make upset object implementatio8 rollover effect;
Wherein, the generating process of first XML file and the second XML file includes:
Create the first XML file and add the first scale labels, create the second XML file and add the 2nd scale marks Label;
The initial lateral dimension of upset object is obtained, and determines smallest lateral dimension, wherein, smallest lateral dimension=initial The percentage of lateral dimension × first;
The initial lateral dimensions of parameter float fromX=in the first scale labels, the first scale are set Parameter float toX=smallest lateral dimensions in label;
Parameter float fromX=smallest lateral dimensions in the 2nd scale labels, the 2nd scale are set The initial lateral dimensions of parameter float toX=in label.
Preferably, in the generating process of first XML file and the second XML file, in addition to:
The initial longitudinal size of the upset object is obtained, and determines minimum longitudinal size, wherein, minimum longitudinal size= The percentage of initial longitudinal size × second;
The initial longitudinal sizes of parameter float fromY=in the first scale labels, the first scale are set Parameter float toY=smallest lateral dimensions in label;
Parameter float fromY=minimum longitudinal sizes in the 2nd scale labels, the 2nd scale are set The initial longitudinal sizes of parameter float toY=in label.
Preferably, in the generating process of first XML file and the second XML file, in addition to:Set described first The animation duration of scale labels and the 2nd scale labels is 500 milliseconds.
Preferably, first percentage is 1%, and second percentage is 90%.
Second aspect, the invention provides a kind of realization device of animation rollover effect, including:
Function generation module, is used for:
Create the first XML file and add the first scale labels, create the second XML file and add the 2nd scale marks Label;
The initial lateral dimension of upset object is obtained, and determines smallest lateral dimension, wherein, smallest lateral dimension=initial The percentage of lateral dimension × first;
The initial lateral dimensions of parameter float fromX=in the first scale labels, the first scale are set Parameter float toX=smallest lateral dimensions in label;
Parameter float fromX=smallest lateral dimensions in the 2nd scale labels, the 2nd scale are set The initial lateral dimensions of parameter float toX=in label;
Function call module, load and perform for the loadAnimation methods order using AnimationUtils First XML file and second XML file, make upset object implementatio8 rollover effect.
Preferably, the function generation module is additionally operable to:
The initial longitudinal size of the upset object is obtained, and determines minimum longitudinal size, wherein, minimum longitudinal size= The percentage of initial longitudinal size × second;
The initial longitudinal sizes of parameter float fromY=in the first scale labels, the first scale are set Parameter float toY=smallest lateral dimensions in label;
Parameter float fromY=minimum longitudinal sizes in the 2nd scale labels, the 2nd scale are set The initial longitudinal sizes of parameter float toY=in label.
Preferably, the function generation module is additionally operable to:The first scale labels and the 2nd scale is set to mark The animation duration of label is 500 milliseconds.
Preferably, first percentage is 1%, and second percentage is 90%.
The third aspect, the invention provides a kind of display methods of weighing based on first aspect methods described, its feature exists In, including:
The weight data weighed in real time is received, and body weight value corresponding to the weight data is added in control;
Loaded using AnimationUtils loadAnimation methods and perform the first XML file;
After having performed first XML file, call sub-line journey that the body weight value in the control is replaced with into body weight fraction, Wherein, the body weight fraction is calculated according to the weight data;
After having performed first XML file, load and hold using AnimationUtils loadAnimation methods The XML file of row second, makes the control realize rollover effect.
Preferably, also include before loading and performing first XML file:
After the weight data received is stable, arc is drawn in the outer circumferential edge of the control;Wherein, the control is circle Control.
Preferably, the body weight value in the control is replaced with body weight fraction by the calling sub-line journey, including:
Body weight fraction is subtracted into the first numerical value and obtains fraction show value, calls sub-line journey to replace the body weight value in the control It is changed to fraction show value;
Every time interval T, increase fraction show value, call sub-line journey to change the fraction shown in the control and show Value, until the fraction show value is equal to the body weight fraction.
Fourth aspect, the invention provides a kind of display device of weighing based on third aspect methods described, its feature exists In, including:
Data processing module, for receiving the weight data weighed in real time, and the weight data pair is added in control The body weight value answered;
Control flip module, is used for:
Loaded using AnimationUtils loadAnimation methods and perform the first XML file;
After having performed first XML file, call sub-line journey that the body weight value in the control is replaced with into body weight fraction, Wherein, the body weight fraction is calculated according to the weight data;
After having performed first XML file, load and hold using AnimationUtils loadAnimation methods The XML file of row second, makes the control realize rollover effect.
5th aspect, the invention provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey Any described method in first aspect is realized when sequence is executed by processor.
Brief description of the drawings
A kind of flow chart of the implementation method for animation rollover effect that Fig. 1 is provided by the embodiment of the present invention;
Fig. 2 is the timesharing design sketch of animation upset;
A kind of structured flowchart of the realization device for animation rollover effect that Fig. 3 is provided by the embodiment of the present invention;
A kind of flow chart for display methods of weighing that Fig. 4 is provided by the embodiment of the present invention;
A kind of structured flowchart for display methods of weighing that Fig. 5 is provided by the embodiment of the present invention;
A kind of preferred structure block diagram for display methods of weighing that Fig. 6 is provided by the embodiment of the present invention.
Embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with accompanying drawing.Following examples are only used for Clearly illustrate technical scheme, therefore be intended only as example, and the protection of the present invention can not be limited with this Scope.
It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application should be this hair The ordinary meaning that bright one of ordinary skill in the art are understood.
There is a kind of animation (Animation) to be called Tween Animation (gradual-change animation) in Android SDK, pass through Conversion such as translation (translate), scaling (scale) are done to specific object, (rotate) is rotated, fades out/fade in (alpha) Deng generation animation effect.Tween Animation have 2 kinds of application methods:A, the Animation defined in XML resources, use LoadAnimation () function loading animation in AnimationUtils classes;B, using the construction letter of Animation subclasses Count to initialize Animation objects, the present invention realizes animation rollover effect using the mode of XML resource definitions.
As shown in figure 1, a kind of implementation method of animation rollover effect is present embodiments provided, including:
Step S1, loaded using AnimationUtils loadAnimation methods order and perform the first XML file With the second XML file, make upset object implementatio8 rollover effect.
Wherein, the second XML file can just be performed after having performed the first XML file.
Wherein, the generating process of first XML file and the second XML file includes:
Step S101, create the first XML file and add the first scale labels, create the second XML file and addition second Scale labels;
Wherein, the parameter in scale labels has float fromX, float toX, float fromY, float toY, Int pivotXType, float pivotXValue, int pivotYType, float pivotYValue.
Flexible size when float fromX animations originate in X-coordinate.
Flexible size at the end of float toX animations in X-coordinate.
Flexible size when float fromY animations originate in Y-coordinate.
Flexible size at the end of float toY animations in Y-coordinate.
Int pivotXType animations are in X-axis relative to article position type.
Float pivotXValue animations relative to the X-coordinate of object starting position.
Int pivotYType animations are in Y-axis relative to article position type.
Float pivotYValue animations relative to the Y-coordinate of object starting position.
Step S102, obtains the initial lateral dimension of upset object, and determines smallest lateral dimension, wherein, minimum lateral The percentage of size=initial lateral dimension × first, horizontal upset is realized with this.
Wherein, for the upset of more life-like realization upset object, first percentage is 1%.
Step S103, the initial lateral dimensions of parameter float fromX=in the first scale labels are set, it is described Parameter float toX=smallest lateral dimensions in first scale labels;
Step S104, the parameter float fromX=smallest lateral dimensions in the 2nd scale labels are set, it is described The initial lateral dimensions of parameter float toX=in 2nd scale labels.
By setting parameter float fromX and the float toX in the first scale labels so that when performing code, Upset object is gradually reduced laterally, until reducing smallest lateral dimension, realizes (c) faded to by (a) in Fig. 2 in Fig. 2 Effect, first paragraph scale animations are shown in the process;By setting the parameter float fromX in the 2nd scale labels With float toX so that when performing code, upset object is laterally gradually amplifying, real until returning to initial lateral dimension The effect of (f) in Fig. 2 is now faded to by (d) in Fig. 2, second segment scale animations are shown in the process;When coherent is held When the XML file of row first and the second XML file, rollover effect will be formed.
Compared with existing method for turning, the implementation method for the animation rollover effect that the present embodiment provides, ingenious utilization Scale animation effects carried in android realize rollover effect, and implementation is simpler efficiently, reduces data Treating capacity, reduce the size of code of equipment.
In order that rollover effect it is more life-like, in the generating process of first XML file and the second XML file, Also include:
Step S105, obtains the initial longitudinal size of the upset object, and determines minimum longitudinal size, wherein, it is minimum The percentage of longitudinal size=initial longitudinal size × second;
Wherein, second percentage is 90%.
Step S106, the initial longitudinal sizes of parameter float fromY=in the first scale labels are set, it is described Parameter float toY=smallest lateral dimensions in first scale labels;
Step S107, the parameter float fromY=minimum longitudinal sizes in the 2nd scale labels are set, it is described The initial longitudinal sizes of parameter float toY=in 2nd scale labels.
Certainly, in order to realize longitudinal upset, the second percentage could be arranged to 1%, and the first percentage is 90%.
In order that rollover effect is more notable, in the generating process of first XML file and the second XML file, also Including:The animation duration for setting the first scale labels and the 2nd scale labels is 500 milliseconds.That is, two sections The duration of scale animations is all 500 milliseconds.
Based on above-mentioned and above-mentioned animation rollover effect implementation method identical inventive concept, one kind is present embodiments provided The realization device of animation rollover effect, as shown in figure 3, including:
Function generation module, is used for:
Create the first XML file and add the first scale labels, create the second XML file and add the 2nd scale marks Label;
The initial lateral dimension of upset object is obtained, and determines smallest lateral dimension, wherein, smallest lateral dimension=initial The percentage of lateral dimension × first;
The initial lateral dimensions of parameter float fromX=in the first scale labels, the first scale are set Parameter float toX=smallest lateral dimensions in label;
Parameter float fromX=smallest lateral dimensions in the 2nd scale labels, the 2nd scale are set The initial lateral dimensions of parameter float toX=in label;
Function call module, load and perform for the loadAnimation methods order using AnimationUtils First XML file and second XML file, make upset object implementatio8 rollover effect.
Preferably, the function generation module is additionally operable to:
The initial longitudinal size of the upset object is obtained, and determines minimum longitudinal size, wherein, minimum longitudinal size= The percentage of initial longitudinal size × second;
The initial longitudinal sizes of parameter float fromY=in the first scale labels, the first scale are set Parameter float toY=smallest lateral dimensions in label;
Parameter float fromY=minimum longitudinal sizes in the 2nd scale labels, the 2nd scale are set The initial longitudinal sizes of parameter float toY=in label.
Preferably, the function generation module is additionally operable to:The first scale labels and the 2nd scale is set to mark The animation duration of label is 500 milliseconds.
Preferably, first percentage is 1%, and second percentage is 90%.
The realization device of animation rollover effect and the implementation method of above-mentioned animation rollover effect that the present embodiment provides for Identical inventive concept, there is identical beneficial effect, here is omitted.
Based on the implementation method identical inventive concept with above-mentioned animation rollover effect, a kind of calculating is present embodiments provided Machine readable storage medium storing program for executing, is stored thereon with computer program, and the program is realized any in above-described embodiment when being executed by processor The implementation method of described animation rollover effect.
Based on the implementation method identical inventive concept with above-mentioned animation rollover effect, present embodiments provide one kind and weigh Display methods, as shown in figure 4, including:
Step S201, the weight data weighed in real time is received, and body weight corresponding to the weight data is added in control Value;
Step S202, loaded using AnimationUtils loadAnimation methods and perform the first XML file;
Wherein, the first XML file is obtained by similar step S101- steps S104 method, parameter in the first XML The initial lateral dimension of float fromX=controls.
Step S203, after having performed first XML file, sub-line journey is called to replace with the body weight value in the control Body weight fraction.
Wherein, the body weight fraction is calculated according to the weight data, and specific computational methods are existing basis The method that body weight assesses human body health index, will not be repeated here.
Step S204, after having performed first XML file, use AnimationUtils loadAnimation side Method loads and performs the second XML file, the control is realized rollover effect.
Wherein, the second XML file is obtained by similar step S101- steps S104 method, parameter in the 2nd XML The initial lateral dimension of float toX=controls.
By setting parameter float fromX and the float toX in the first scale labels so that when performing code, Control is gradually reduced laterally, until reducing smallest lateral dimension, body weight value during diminution in control also equal proportion therewith Reduce, realize the effect of (c) that is faded to by (a) in Fig. 2 in Fig. 2, first paragraph scale animations are shown in the process; After first paragraph scale animations terminate, i.e., the content shown in control is replaced with into body weight fraction in a flash in upset, realize body Seamless connection between weight values and body weight fraction, by setting parameter float fromX and float in the 2nd scale labels ToX so that when performing code, control is in laterally gradually amplification, until returning to initial lateral dimension, control in amplification process In body weight fraction also equal proportion is amplified therewith, realize the effect of (f) that is faded to by (d) in Fig. 2 in Fig. 2, the process shows What is shown is second segment scale animations;When the coherent XML file of execution first and the second XML file, upset effect will be formed Fruit.
Compared with existing method for turning, display methods of weighing that the present embodiment provides, it is ingenious with android from The scale animation effects of band realize rollover effect, and implementation is simpler efficiently, reduce data processing amount, reduce It the size of code of equipment, can preferably apply in various equipment, such as realize that real-time weighing data is shown in cell phone application, Display etc. of weighing of intelligent electronic-scale, improve the interest of display effect.
In order to preferably realize rollover effect, the control is shaped as symmetric figure.
Wherein, view classes are inherited and rewrites ondraw methods, control layout is carried out using the method for canvas classes.The control is excellent Elect one circular 3 etc. as and divide control.The center of circle is determined according to painting canvas height and width, 2 skies are drawn by radius of the half of width The heart is justified, and color is all white, and cylindrical transparency is 150.Inner circle is vertically divided into 3 deciles, addition is corresponding in every part respectively Word, the word size of top and the bottom are the half of aliquot height, and the word size of center section is the height of aliquot Degree.
Due to real-time reception to weight data be not necessarily stable final data, such as intelligent electronic-scale, therefore, Also include before step S202:After the weight data received is stable, arc is drawn in the control outer circumferential edge;Wherein, institute It is circular control to state control.
The display effect of the above method is:Complete (during numerical stability), control center display body weight values, and controlling weighing Arc is drawn in the outer circumferential edge of part, often postponing 20 milliseconds using sub-line journey increases by 3.6 degree, until increasing to 360 degree, to realize that circle is entered Spend bar effect.Seem not suddenly in order that obtaining animation effect, 500 milliseconds of delay after circular arc paints, upset animation is done to control.
In order to improve the interest of scoring process, calling sub-line journey in the step S203 is by the body weight in the control Value replaces with body weight fraction, including:
Step S301, body weight fraction is subtracted into the first numerical value and obtains fraction show value, calls sub-line journey by the control Body weight value replace with fraction show value;
Step S302, every time interval T, increase fraction show value, call sub-line journey to change what is shown in the control Fraction show value, until the fraction show value is equal to the body weight fraction.
Wherein, the first numerical value, time interval T are values set in advance.Such as body weight fraction is 50, the first numerical value is 30, Time interval T is 10 milliseconds, then current fraction show value is 20, often postpones 10 milliseconds of fraction show value increases by 1, until increase Untill 50.By adding dynamic marking effect, the interest of scoring process is improved.
Based on above-mentioned display methods identical inventive concept of weighing, present embodiments provide one kind and weigh display device, such as Shown in Fig. 5, including:
Data processing module, for receiving the weight data weighed in real time, and the weight data pair is added in control The body weight value answered;
Control flip module, is used for:
Loaded using AnimationUtils loadAnimation methods and perform the first XML file;
After having performed first XML file, call sub-line journey that the body weight value in the control is replaced with into body weight fraction, Wherein, the body weight fraction is calculated according to the weight data;
After having performed first XML file, load and hold using AnimationUtils loadAnimation methods The XML file of row second, makes the control realize rollover effect.
As shown in fig. 6, also including picture arc module, it is used for:It is cylindrical in the control after weight data received is stable Arc is drawn on side;Wherein, the control is circular control.
Call sub-line journey that the body weight value in the control is replaced with into body weight fraction described in the control flip module, wrap Include:
Body weight fraction is subtracted into the first numerical value and obtains fraction show value, calls sub-line journey to replace the body weight value in the control It is changed to fraction show value;
Every time interval T, increase fraction show value, call sub-line journey to change the fraction shown in the control and show Value, until the fraction show value is equal to the body weight fraction.
The display device of weighing of the present embodiment offer, for identical inventive concept, has phase with above-mentioned display methods of weighing Same beneficial effect, here is omitted.
Based on above-mentioned display methods identical inventive concept of weighing, present embodiments provide a kind of computer-readable storage Medium, computer program is stored thereon with, the program is realized any described in the above method embodiment when being executed by processor Weigh display methods.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme, it all should cover among the claim of the present invention and the scope of specification.

Claims (10)

  1. A kind of 1. implementation method of animation rollover effect, it is characterised in that including:
    Using AnimationUtils loadAnimation methods order load and perform the first XML file and the 2nd XML text Part, make upset object implementatio8 rollover effect;
    Wherein, the generating process of first XML file and the second XML file includes:
    Create the first XML file and add the first scale labels, create the second XML file and add the 2nd scale labels;
    The initial lateral dimension of upset object is obtained, and determines smallest lateral dimension, wherein, smallest lateral dimension=initial horizontal The percentage of size × first;
    The initial lateral dimensions of parameter float fromX=in the first scale labels, the first scale labels are set In parameter float toX=smallest lateral dimensions;
    Parameter float fromX=smallest lateral dimensions in the 2nd scale labels, the 2nd scale labels are set In the initial lateral dimensions of parameter float toX=.
  2. 2. according to the method for claim 1, it is characterised in that in the generation of first XML file and the second XML file During, in addition to:
    The initial longitudinal size of the upset object is obtained, and determines minimum longitudinal size, wherein, minimum longitudinal size=initial The percentage of longitudinal size × second;
    The initial longitudinal sizes of parameter float fromY=in the first scale labels, the first scale labels are set In parameter float toY=smallest lateral dimensions;
    Parameter float fromY=minimum longitudinal sizes in the 2nd scale labels, the 2nd scale labels are set In the initial longitudinal sizes of parameter float toY=.
  3. 3. method according to claim 1 or 2, it is characterised in that in first XML file and the second XML file In generating process, in addition to:It is 500 millis to set the animation duration of the first scale labels and the 2nd scale labels Second.
  4. 4. according to the method for claim 2, it is characterised in that first percentage is 1%, and second percentage is 90%.
  5. A kind of 5. realization device of animation rollover effect, it is characterised in that including:
    Function generation module, is used for:
    Create the first XML file and add the first scale labels, create the second XML file and add the 2nd scale labels;
    The initial lateral dimension of upset object is obtained, and determines smallest lateral dimension, wherein, smallest lateral dimension=initial horizontal The percentage of size × first;
    The initial lateral dimensions of parameter float fromX=in the first scale labels, the first scale labels are set In parameter float toX=smallest lateral dimensions;
    Parameter float fromX=smallest lateral dimensions in the 2nd scale labels, the 2nd scale labels are set In the initial lateral dimensions of parameter float toX=;
    Function call module, load and perform described for the loadAnimation methods order using AnimationUtils First XML file and second XML file, make upset object implementatio8 rollover effect.
  6. A kind of 6. display methods of weighing based on method any one of claim 1-4, it is characterised in that including:
    The weight data weighed in real time is received, and body weight value corresponding to the weight data is added in control;
    Loaded using AnimationUtils loadAnimation methods and perform the first XML file;
    After having performed first XML file, call sub-line journey that the body weight value in the control is replaced with into body weight fraction, its In, the body weight fraction is calculated according to the weight data;
    After having performed first XML file, loaded using AnimationUtils loadAnimation methods and perform Two XML files, the control is set to realize rollover effect.
  7. 7. according to the method for claim 6, it is characterised in that also wrapped before loading and performing first XML file Include:
    After the weight data received is stable, arc is drawn in the outer circumferential edge of the control;Wherein, the control is controlled to be circular Part.
  8. 8. the method according to claim 6 or 7, it is characterised in that described to call sub-line journey by the body weight in the control Value replaces with body weight fraction, including:
    Body weight fraction is subtracted into the first numerical value and obtains fraction show value, calls sub-line journey to replace with the body weight value in the control Fraction show value;
    Every time interval T, increase fraction show value, call sub-line journey to change the fraction show value shown in the control, directly It is equal to the body weight fraction to the fraction show value.
  9. A kind of 9. display device of weighing based on method any one of claim 1-4, it is characterised in that including:
    Data processing module, for receiving the weight data weighed in real time, and added in control corresponding to the weight data Body weight value;
    Control flip module, is used for:
    Loaded using AnimationUtils loadAnimation methods and perform the first XML file;
    After having performed first XML file, call sub-line journey that the body weight value in the control is replaced with into body weight fraction, its In, the body weight fraction is calculated according to the weight data;
    After having performed first XML file, loaded using AnimationUtils loadAnimation methods and perform Two XML files, the control is set to realize rollover effect.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method described in one of claim 1-4 is realized during execution.
CN201710935191.4A 2017-10-10 2017-10-10 The implementation method and device of animation rollover effect, display methods of weighing and device Pending CN107729080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710935191.4A CN107729080A (en) 2017-10-10 2017-10-10 The implementation method and device of animation rollover effect, display methods of weighing and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710935191.4A CN107729080A (en) 2017-10-10 2017-10-10 The implementation method and device of animation rollover effect, display methods of weighing and device

Publications (1)

Publication Number Publication Date
CN107729080A true CN107729080A (en) 2018-02-23

Family

ID=61209916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710935191.4A Pending CN107729080A (en) 2017-10-10 2017-10-10 The implementation method and device of animation rollover effect, display methods of weighing and device

Country Status (1)

Country Link
CN (1) CN107729080A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201266111Y (en) * 2008-08-07 2009-07-01 吴少平 Multifunctional healthcare balance
CN101680799A (en) * 2007-06-11 2010-03-24 欧姆龙健康医疗株式会社 Weighing scale
CN102607684A (en) * 2012-04-16 2012-07-25 天津九安医疗电子股份有限公司 Control system and display method for weight management information
CN104285216A (en) * 2013-03-08 2015-01-14 松下电器(美国)知识产权公司 Method for sharing information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101680799A (en) * 2007-06-11 2010-03-24 欧姆龙健康医疗株式会社 Weighing scale
CN201266111Y (en) * 2008-08-07 2009-07-01 吴少平 Multifunctional healthcare balance
CN102607684A (en) * 2012-04-16 2012-07-25 天津九安医疗电子股份有限公司 Control system and display method for weight management information
CN104285216A (en) * 2013-03-08 2015-01-14 松下电器(美国)知识产权公司 Method for sharing information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WJLGRYX: "android scale实现翻牌动画效果", 《HTTPS://WWW.ITEYE.COM/BLOG/WJLGRYX-1124029》 *
原始人工作室 著: "《煮酒论Android》", 31 August 2014, 北京工业大学出版社 *

Similar Documents

Publication Publication Date Title
US11263007B2 (en) Convolutional neural network hardware acceleration device, convolutional calculation method, and storage medium
CN103544253B (en) A kind of realization method and system that picture is shown in a manner of waterfall stream
US20170357894A1 (en) Data packing for convolution of artificial neural networks
CN109086920A (en) Purchase of goods and materials prediction technique, device and material purchase management system
CN113901615A (en) Automatic marking method and device for two-dimensional drawing and electronic equipment
CN103021008A (en) Bone animation processing method based on programmable graphics processing unit (GPU)
CN103942823A (en) Game engine rendering method and device
CN110363303B (en) Memory training method and device for intelligent distribution model and computer readable storage medium
CN110390075A (en) Matrix preprocess method, device, terminal and readable storage medium storing program for executing
CN106598674A (en) Relocatable ELF file-based software quick loading method
CN110675471A (en) Method, device and equipment for generating node connecting line and storage medium
CN110232665B (en) Maximum pooling method and device, computer equipment and storage medium
CN107729080A (en) The implementation method and device of animation rollover effect, display methods of weighing and device
CN107833260A (en) The method for drafting and system of animation progress bar
CN106371808B (en) A kind of method and terminal of parallel computation
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN110689114B (en) Network node processing method and device, storage medium and electronic equipment
CN108364335A (en) A kind of animation method for drafting and device
CN103902186A (en) Method for decomposing folder in desktop application
CN105045893B (en) Method and device for adapting pictures in webpage
CN106933439B (en) image processing method and system based on social platform
CN111111179A (en) Unity-based graphics resource loading method and device
US20130082940A1 (en) Device with customizable controls
CN108304191B (en) Function dynamic calling method and device
CN108549935A (en) A kind of device and method for realizing neural network model

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223

RJ01 Rejection of invention patent application after publication