package Ġcom . os k ho j . swing planner . ui . component Ċ Ċ import Ġandroid . view . Motion Event Ċ import Ġandroid . view . View Ċ import Ġcom . os k ho j . swing planner . R Ċ import Ġcom . os k ho j . swing planner . util . animate To Size Ċ import Ġcom . os k ho j . swing planner . util . getLong Ċ Ċ class ĠOn Touch Animation Ġ: ĠView . On Touch Listener Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġon Touch ( view : ĠView , Ġevent : ĠMotion Event ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġwhen Ġ( event . action ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMotion Event . ACTION _ DOWN Ġ-> Ġview . animate To Size ( 0 . 9 5 f , Ġview . getLong ( R . integer . anim _ duration _ medium )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMotion Event . ACTION _ CANCEL Ġ-> Ġview . animate To Size ( 1 f , Ġview . getLong ( R . integer . anim _ duration _ medium )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġfalse ĊĠĠĠ Ġ} Ċ }