package Ġcom . esri . arc gis runtime . sample . create and save km lfile Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . Array Adapter Ċ import Ġcom . esri . arc gis runtime . sample . create and save km lfile . databinding . Point Symbol Binding ĊĊ Ċ class ĠPoint Symbol Adapter ( context : ĠContext , Ġpoint Symbol Urls : ĠList < Int >) Ġ: ĊĠ ĠArray Adapter < Int >( context , ĠR . layout . point _ symbol , Ġpoint Symbol Urls ) Ġ{ ĊĊĠ Ġprivate Ġval Ġpoint Symbol Binding Ġby Ġlazy Ġ{ ĊĠĠĠ ĠPoint Symbol Binding . inflate ( LayoutInflater . from ( context )) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget View ( position : ĠInt , Ġre cyc led View : ĠView ?, Ġparent : ĠViewGroup ): ĠView Ġ{ ĊĠĠĠ Ġreturn Ġthis . create View ( position , Ġre cyc led View , Ġparent ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget DropDown View ( position : ĠInt , Ġre cyc led View : ĠView ?, Ġparent : ĠViewGroup ): ĠView Ġ{ ĊĠĠĠ Ġreturn Ġthis . create View ( position , Ġre cyc led View , Ġparent ) ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġcreate View ( position : ĠInt , Ġre cyc led View : ĠView ?, Ġparent : ĠViewGroup ): ĠView Ġ{ ĊĠĠĠ Ġval Ġpoint Drawable Ġ= ĠgetItem ( position ) !! ĊĠĠĠ Ġval Ġview Ġ= Ġre cyc led View Ġ?: Ġpoint Symbol Binding . root ĊĠĠĠ Ġpoint Symbol Binding . point Symbol . setImage Resource ( point Drawable ) ĊĠĠĠ Ġreturn Ġview ĊĠ Ġ} Ċ } Ċ