package Ġcom . beg ner . h dm iv ol ume os d Ċ Ċ import Ġandroid . animation . Animator Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . view . Gravity Ċ import Ġcom . da im aj ia . easing . Skill Ċ Ċ class ĠStyle Animation Temperature Apple Rad ial Ġ: ĠStyle Animation () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġanimation Scale Ġ= Ġ 0 . 8 f ĊĠĠĠ Ġprivate Ġval Ġeasing Scale Ġ= ĠSkill . Quad E ase InOut ĊĊĠĠĠ Ġprivate Ġval Ġin Animation Duration Ġ= Ġ 3 0 0 f ĊĠĠĠ Ġprivate Ġval Ġin Animation Delay Ġ= Ġ 0 f ĊĠĠĠ Ġprivate Ġval Ġin Rotation Duration Ġ= Ġ 6 0 0 f ĊĠĠĠ Ġprivate Ġval Ġin Rotation Delay Ġ= Ġ 0 f ĊĠĠĠ Ġprivate Ġval Ġin Rotation Duration Bar Ġ= Ġ 6 0 0 f ĊĠĠĠ Ġprivate Ġval Ġin Rotation Delay Bar Ġ= Ġ 5 0 f ĊĠĠĠ Ġprivate Ġval Ġin Rotation E asing Ġ= ĠSkill . Quad E ase In ĊĊĠĠĠ Ġprivate Ġval Ġout Animation Duration Ġ= Ġ 8 0 0 f ĊĠĠĠ Ġprivate Ġval Ġout Animation Delay Ġ= Ġ 6 0 0 f ĊĠĠĠ Ġprivate Ġval Ġout Rotation Duration Ġ= Ġ 6 0 0 f ĊĠĠĠ Ġprivate Ġval Ġout Rotation Delay Ġ= Ġ 3 0 0 f ĊĠĠĠ Ġprivate Ġval Ġout Rotation Duration Bar Ġ= Ġ 5 0 0 f ĊĠĠĠ Ġprivate Ġval Ġout Rotation Delay Bar Ġ= Ġ 0 f ĊĠĠĠ Ġprivate Ġval Ġout Rotation E asing Ġ= ĠSkill . Quad E ase Out ĊĊĠĠĠ Ġprivate Ġval Ġeasing Move Ġ= ĠSkill . Quad E ase InOut ĊĊĠĠĠ Ġ@ Suppress Lint (" R tl Hard coded ") ĊĠĠĠ Ġprivate Ġfun Ġset Rotation Start Angle () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġhorizontal Gravity Ġ= Ġos d Position . gravity Ġand ĠGr avity . VERTICAL _ GR AV ITY _ MASK ĊĠĠĠĠĠĠĠ Ġout Of Screen Pos Ġ= Ġ 0 f ĊĠĠĠĠĠĠĠ Ġif Ġ( horizontal Gravity Ġ== ĠGr avity . TOP ) Ġout Of Screen Pos Ġ= Ġ 1 1 0 f ĊĠĠĠĠĠĠĠ Ġif Ġ( horizontal Gravity Ġ== ĠGr avity . BOTTOM ) Ġout Of Screen Pos Ġ= Ġ- 1 1 0 f ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠInstant Ġin ĊĠĠĠ Ġ@ Suppress Lint (" R tl Hard coded ") ĊĠĠĠ Ġoverride Ġfun Ġanimate In (): ĠMutable List < Animator > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġanimations Ġ: ĠMutable List < Animator > Ġ= ĠArrayList () ĊĊĠĠĠĠĠĠĠ Ġ// Ġvert icl al ĊĠĠĠĠĠĠĠ Ġcalc Animation Directions ( main View , Ġhorizontal Ġ= Ġfalse , Ġanimate In Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġanimation Property , Ġout Of Screen Pos , Ġon Screen Pos , Ġin Animation Duration , Ġin Animation Delay , Ġeasing Move )) ĊĊĠĠĠĠĠĠĠ Ġ// Ġhorizontal ĊĠĠĠĠĠĠĠ Ġcalc Animation Directions ( main View , Ġhorizontal Ġ= Ġtrue , Ġanimate In Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġanimation Property , Ġout Of Screen Pos , Ġon Screen Pos , Ġin Animation Duration , Ġin Animation Delay , Ġeasing Move )) ĊĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġ" scale X ", Ġanimation Scale , Ġ 1 f , Ġin Animation Duration , Ġin Animation Delay , Ġeasing Scale )) ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġ" scale Y ", Ġanimation Scale , Ġ 1 f , Ġin Animation Duration , Ġin Animation Delay , Ġeasing Scale )) ĊĊĠĠĠĠĠĠĠ Ġset Rotation Start Angle () ĊĠĠĠĠĠĠĠ Ġval Ġscale Ġ= Ġos d View !!. get Animation Sub Part (" scale ") ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( scale !! , Ġ" rotation ", Ġout Of Screen Pos *- 1 , Ġ 0 f , Ġin Rotation Duration , Ġin Rotation Delay , Ġin Rotation E asing )) ĊĊĠĠĠĠĠĠĠ Ġval Ġbar Ġ= Ġos d View !!. get Animation Sub Part (" bar ") ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( bar !! , Ġ" rotation ", Ġout Of Screen Pos , Ġ 0 f , Ġin Rotation Duration Bar , Ġin Rotation Delay Bar , Ġin Rotation E asing )) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġanimations ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ// ĠInstant Ġout ĊĠĠĠ Ġoverride Ġfun Ġanimate Out (): ĠMutable List < Animator > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġanimations Ġ: ĠMutable List < Animator > Ġ= ĠArrayList () ĊĊĠĠĠĠĠĠĠ Ġ// Ġvertical ĊĠĠĠĠĠĠĠ Ġcalc Animation Directions ( main View , Ġhorizontal Ġ= Ġfalse , Ġanimate In Ġ= Ġfalse ) ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġanimation Property , Ġon Screen Pos , Ġout Of Screen Pos , Ġout Animation Duration , Ġout Animation Delay , Ġeasing Move )) ĊĊĠĠĠĠĠĠĠ Ġ// Ġhorizontal ĊĠĠĠĠĠĠĠ Ġcalc Animation Directions ( main View , Ġhorizontal Ġ= Ġtrue , Ġanimate In Ġ= Ġfalse ) ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġanimation Property , Ġon Screen Pos , Ġout Of Screen Pos , Ġout Animation Duration , Ġout Animation Delay , Ġeasing Move )) ĊĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġ" scale X ", Ġ 1 f , Ġanimation Scale , Ġout Animation Duration , Ġout Animation Delay , Ġeasing Scale )) ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( main View , Ġ" scale Y ", Ġ 1 f , Ġanimation Scale , Ġout Animation Duration , Ġout Animation Delay , Ġeasing Scale )) ĊĊĠĠĠĠĠĠĠ Ġset Rotation Start Angle () ĊĠĠĠĠĠĠĠ Ġval Ġscale Ġ= Ġos d View !!. get Animation Sub Part (" scale ") ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( scale !! , Ġ" rotation ", Ġ 0 f , Ġout Of Screen Pos , Ġout Rotation Duration , Ġout Rotation Delay , Ġout Rotation E asing )) ĊĊĠĠĠĠĠĠĠ Ġval Ġbar Ġ= Ġos d View !!. get Animation Sub Part (" bar ") ĊĠĠĠĠĠĠĠ Ġanimations . add ( create Animation ( bar !! , Ġ" rotation ", 0 f , Ġout Of Screen Pos *- 1 , Ġout Rotation Duration Bar , Ġout Rotation Delay Bar , Ġin Rotation E asing )) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġanimations ĊĠĠĠ Ġ} ĊĊ Ċ }