package Ġcom . mist ame k . drawable preview . draw ables Ċ Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Adaptive Icon Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Bitmap Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Color Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Gradient Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Inset Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Layer Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Level List Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . R ipple Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Rotate Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Scale Drawable Ċ import Ġcom . mist ame k . drawable preview . draw ables . dom . Selector Drawable Ċ import Ġorg . w 3 c . dom . Element Ċ Ċ object ĠDrawable Inflater Ġ{ ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠSELECT OR _ DRAW ABLE Ġ= Ġ" selector " ĊĠĠĠ Ġprivate Ġconst Ġval ĠAN IM ATED _ SELECT OR _ DRAW ABLE Ġ= Ġ" animated - selector " ĊĠĠĠ Ġprivate Ġconst Ġval ĠLE VEL _ LIST _ DRAW ABLE Ġ= Ġ" level - list " ĊĠĠĠ Ġprivate Ġconst Ġval ĠLAY ER _ DRAW ABLE Ġ= Ġ" layer - list " ĊĠĠĠ Ġprivate Ġconst Ġval ĠTRANS ITION _ DRAW ABLE Ġ= Ġ" transition " ĊĠĠĠ Ġprivate Ġconst Ġval ĠR IP PLE Ġ= Ġ" ripple " ĊĠĠĠ Ġprivate Ġconst Ġval ĠAD AP TI VE _ ICON Ġ= Ġ" adaptive - icon " ĊĠĠĠ Ġprivate Ġconst Ġval ĠCOLOR _ DRAW ABLE Ġ= Ġ" color " ĊĠĠĠ Ġprivate Ġconst Ġval ĠSHA PE _ DRAW ABLE Ġ= Ġ" shape " ĊĠĠĠ Ġprivate Ġconst Ġval ĠSC ALE Ġ= Ġ" scale " ĊĠĠĠ Ġprivate Ġconst Ġval ĠCLI P Ġ= Ġ" clip " ĊĠĠĠ Ġprivate Ġconst Ġval ĠROT ATE Ġ= Ġ" rotate " ĊĠĠĠ Ġprivate Ġconst Ġval ĠAN IM ATED _ ROT ATE Ġ= Ġ" animated - rotate " ĊĠĠĠ Ġprivate Ġconst Ġval ĠIN SET _ DRAW ABLE Ġ= Ġ" in set " ĊĠĠĠ Ġprivate Ġconst Ġval ĠBIT MAP Ġ= Ġ" bitmap " ĊĊĠĠĠ Ġfun Ġget Drawable ( element : ĠElement ): ĠDrawable ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdrawable Ġ= Ġcreate Drawable ( element ) ĊĠĠĠĠĠĠĠ Ġdrawable ?. inflate ( element ) ĊĠĠĠĠĠĠĠ Ġreturn Ġdrawable ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġcreate Drawable ( element : ĠElement ): ĠDrawable ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( element . tagName ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSELECT OR _ DRAW ABLE Ġ-> ĠSelector Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAN IM ATED _ SELECT OR _ DRAW ABLE Ġ-> ĠSelector Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLE VEL _ LIST _ DRAW ABLE Ġ-> ĠLevel List Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLAY ER _ DRAW ABLE Ġ-> ĠLayer Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTRANS ITION _ DRAW ABLE Ġ-> ĠLayer Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR IP PLE Ġ-> ĠR ipple Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAD AP TI VE _ ICON Ġ-> ĠAdapt ive Icon Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCOLOR _ DRAW ABLE Ġ-> ĠColor Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSHA PE _ DRAW ABLE Ġ-> ĠGradient Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSC ALE Ġ-> ĠScale Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCLI P Ġ-> ĠItem Drawable Inflater . get Drawable ( element ). second ĊĠĠĠĠĠĠĠĠĠĠĠ ĠROT ATE Ġ-> ĠRotate Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAN IM ATED _ ROT ATE Ġ-> ĠRotate Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠIN SET _ DRAW ABLE Ġ-> ĠIn set Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBIT MAP Ġ-> ĠBitmap Drawable () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġnull ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }