package Ġru . cle ver pump kin . calendar . utils Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . support . annotation . Color Int Ċ import Ġandroid . support . annotation . Color Res Ċ import Ġandroid . support . v 4 . content . Context Compat Ċ import Ġandroid . util . Typed Value Ċ Ċ fun ĠContext . sp To Pix ( sp Value : ĠFloat ): ĠFloat Ġ{ ĊĠĠĠ Ġreturn ĠTyped Value . apply Dimension ( Typed Value . COMPLEX _ UNIT _ SP , Ġsp Value , Ġresources . display Metrics ) Ċ } Ċ Ċ fun ĠContext . dp To Pix ( dp Value : ĠFloat ): ĠFloat Ġ{ ĊĠĠĠ Ġreturn ĠTyped Value . apply Dimension ( Typed Value . COMPLEX _ UNIT _ DIP , Ġdp Value , Ġresources . display Metrics ) Ċ } Ċ Ċ @ Color Int Ċ fun ĠContext . getColor Int (@ Color Res Ġcolor Res : ĠInt ): ĠInt Ġ{ ĊĠĠĠ Ġreturn ĠContext Compat . getColor ( this , Ġcolor Res ) Ċ }