package Ġcom . github . dro ib it . hello _ we ar 2 0 Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . support . annotation . Drawable Res Ċ import Ġandroid . support . v 4 . content . Context Compat Ċ import Ġandroid . support . we ar . widget . drawer . W ear able Navigation Drawer View Ċ Ċ data Ġclass ĠNavigation Item ( val Ġtext : ĠString , Ġ@ Drawable Res Ġval Ġicon Res : ĠInt ) Ċ Ċ class ĠNavigation Adapter ( private Ġval Ġcontext : ĠContext ) Ġ: ĊĠĠĠ ĠW ear able Navigation Drawer View . W ear able Navigation Drawer Adapter () Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠ Ġval Ġnavigation Items Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠ ĠNavigation Item ( text Ġ= Ġ" Input ", Ġicon Res Ġ= ĠR . drawable . ic _ keyboard ), ĊĠĠĠĠĠĠĠ ĠNavigation Item ( text Ġ= Ġ" Stack ", Ġicon Res Ġ= ĠR . drawable . ic _ android ), ĊĠĠĠĠĠĠĠ ĠNavigation Item ( text Ġ= Ġ" Dialog ", Ġicon Res Ġ= ĠR . drawable . ic _ archive ), ĊĠĠĠĠĠĠĠ ĠNavigation Item ( text Ġ= Ġ" Settings ", Ġicon Res Ġ= ĠR . drawable . ic _ build ), ĊĠĠĠĠĠĠĠ ĠNavigation Item ( text Ġ= Ġ" Audio Track ", Ġicon Res Ġ= ĠR . drawable . ic _ audio track ) ĊĠĠĠ Ġ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠgetItem Text ( pos : ĠInt ) Ġ= Ġnavigation Items [ pos ]. text ĊĊĠ Ġoverride Ġfun ĠgetItem Drawable ( pos : ĠInt ) Ġ= ĊĠĠĠ ĠContext Compat . get Drawable ( context , Ġnavigation Items [ pos ]. icon Res ) !! ĊĊĠ Ġoverride Ġfun Ġget Count () Ġ= Ġnavigation Items . size Ċ }