package Ġcom . github . one code 3 6 9 . andy _ hand y _ animations Ċ Ċ import Ġandroid . animation . Object Animator Ċ import Ġandroid . view . View Ċ Ċ fun Ġrotate ( view : ĠView , Ġfrom Degree Ġ: ĠFloat Ġ= Ġ- 3 6 0 f Ġ, Ġto Degree Ġ: ĠFloat Ġ= Ġ 0 f Ġ, Ġduration Ġ: ĠLong Ġ= Ġ 2 0 0 0 , Ġrepeat Count Ġ: ĠInt Ġ= Ġ 0 ) Ġ: ĠObject Animator Ġ{ ĊĠĠĠ Ġval Ġrotate Ġ= ĠObject Animator . of Float ( view , ĠView . ROT ATION , Ġfrom Degree , Ġto Degree ) ĊĠĠĠ Ġrotate . duration Ġ= Ġduration ĊĠĠĠ Ġrotate . repeat Count Ġ= Ġrepeat Count ĊĠĠĠ Ġrotate . start () ĊĠĠĠ Ġreturn Ġrotate Ċ } Ċ Ċ fun ĠrotateX ( view : ĠView , Ġfrom Degree Ġ: ĠFloat Ġ= Ġ- 3 6 0 f Ġ, Ġto Degree Ġ: ĠFloat Ġ= Ġ 0 f Ġ, Ġduration Ġ: ĠLong Ġ= Ġ 2 0 0 0 , Ġrepeat Count Ġ: ĠInt Ġ= Ġ 0 ) Ġ: ĠObject Animator Ġ{ ĊĠĠĠ Ġval Ġrotate Ġ= ĠObject Animator . of Float ( view , View . ROT ATION _ X , from Degree , to Degree ) ĊĠĠĠ Ġrotate . duration Ġ= Ġduration ĊĠĠĠ Ġrotate . repeat Count Ġ= Ġrepeat Count ĊĠĠĠ Ġrotate . start () ĊĠĠĠ Ġreturn Ġrotate Ċ } Ċ Ċ fun ĠrotateY ( view : ĠView , Ġfrom Degree Ġ: ĠFloat Ġ= Ġ- 3 6 0 f Ġ, Ġto Degree Ġ: ĠFloat Ġ= Ġ 0 f Ġ, Ġduration Ġ: ĠLong Ġ= Ġ 2 0 0 0 , Ġrepeat Count Ġ: ĠInt Ġ= Ġ 0 ) Ġ: ĠObject Animator Ġ{ ĊĠĠĠ Ġval Ġrotate Ġ= ĠObject Animator . of Float ( view , View . ROT ATION _ Y , from Degree , to Degree ) ĊĠĠĠ Ġrotate . duration Ġ= Ġduration ĊĠĠĠ Ġrotate . repeat Count Ġ= Ġrepeat Count ĊĠĠĠ Ġrotate . start () ĊĠĠĠ Ġreturn Ġrotate Ċ } Ċ Ċ fun ĠrotateZ ( view : ĠView , Ġfrom Degree Ġ: ĠFloat Ġ= Ġ- 3 6 0 f Ġ, Ġto Degree Ġ: ĠFloat Ġ= Ġ 0 f Ġ, Ġduration Ġ: ĠLong Ġ= Ġ 2 0 0 0 , Ġrepeat Count Ġ: ĠInt Ġ= Ġ 0 ) Ġ: ĠObject Animator Ġ{ ĊĠĠĠ Ġval Ġrotate Ġ= ĠObject Animator . of Float ( view , View . ROT ATION , from Degree , to Degree ) ĊĠĠĠ Ġrotate . duration Ġ= Ġduration ĊĠĠĠ Ġrotate . repeat Count Ġ= Ġrepeat Count ĊĠĠĠ Ġrotate . start () ĊĠĠĠ Ġreturn Ġrotate Ċ }