package Ġcom . es af irm . android playground . an vil Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . blue lin el abs . cond uctor . Router Transaction Ċ import Ġcom . blue lin el abs . cond uctor . change handler . Horizontal Change Handler Ċ import Ġcom . es af irm . android playground . common . Base Controller Ċ import Ġcom . es af irm . android playground . common . Menu Factory Ċ import Ġjava . util .* Ċ Ċ class ĠAn vil Sample Act Ġ: ĠBaseController () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ): ĠView Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMenu Factory . create ( container . context , ĠArrays . asList ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" Simple ĠAn vil " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ), Ġ{ Ġnavigate To Index ( it ) Ġ}) ĊĊĠĠĠ Ġfun Ġnavigate To Index ( index : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġrouter . push Controller ( Router Transaction . with ( An vil Controller ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. pop Change Handler ( Horizontal Change Handler ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. push Change Handler ( Horizontal Change Handler ())) ĊĠĠĠ Ġ} Ċ } Ċ