package Ġcom . example . capital city quiz k tx . ui . game mode selection ĊĊ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . Toast Ċ import Ġandroidx . compose . foundation . Image Ċ import Ġandroidx . compose . foundation . layout .* Ċ import Ġandroidx . compose . material . Button Ċ import Ġandroidx . compose . material . Text Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . ui . Alignment Ċ import Ġandroidx . compose . ui . Modifier Ċ import Ġandroidx . compose . ui . layout . Content Scale Ċ import Ġandroidx . compose . ui . platform . Compose View Ċ import Ġandroidx . compose . ui . res . p ainter Resource Ċ import Ġandroidx . compose . ui . tool ing . preview . Preview Ċ import Ġandroidx . compose . ui . unit . dp Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġandroidx . navigation . Navigation Ċ import Ġandroidx . navigation . compose . remember Nav Controller Ċ import Ġcom . example . capital city quiz k tx . R Ċ import Ġcom . example . capital city quiz k tx . databinding . Game Mode Selection Fragment Binding Ċ Ċ /** Ċ J . ĠG arc ia ĠCap ital City Quiz Ġin ĠKotlin Ġ 1 0 / 1 2 / 2 0 1 9 Ċ Ċ Fragment Ġthat Ġallows Ġthe Ġuser Ġto Ġselect Ġfrom Ġdifferent Ġgame Ġmodes : Ċ - ĠSur v ival ĠMode : ĠP layers Ġtry Ġto Ġget Ġright Ġas Ġmany Ġquestions Ġas Ġpossible Ġunder Ġa Ġtimer . Ċ Ċ - ĠPract ice ĠMode : ĠThere Ġis Ġno Ġtimer Ġin Ġthis Ġgame Ġmode . Ċ Players Ġget Ġquestions Ġand Ġget Ġ 4 Ġoptions Ġto Ġselect Ġfrom . Ċ Ċ - ĠTraining ĠMode : ĠThe Ġsystem Ġhave Ġbeen Ġlearning Ġfrom Ġthe Ġusers ' Ġanswers . Ċ In Ġthis Ġgame Ġmode Ġthe Ġquestions Ġare Ġdifficult Ġquestion Ġfor Ġa Ġuser . Ċ There fore , Ġthe Ġquestions Ġare Ġt ai lo red Ġto Ġtheir Ġknowledge . Ċ Ġ*/ Ċ class ĠGame Mode Selection Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġval Ġbinding Ġ: ĠGame Mode Selection Fragment Binding Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠGame Mode Selection Fragment Binding . inflate ( layout Inflater ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġbinding . game Mode Selection Sur v ival Mode Btn . setOnClickListener { Ġv Ġ: ĠView Ġ-> ĠNavigation . find Nav Controller ( v ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. navigate ( R . id . action _ game Mode Selection Fragment _ to _ game Config Sur v ival Fragment )} ĊĊĠĠĠĠĠĠĠ Ġbinding . game Mode Selection Pract ice Btn . setOnClickListener { ĠToast ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. makeText ( context , Ġ" Under Ġconstruction ", ĠToast . LENGTH _ LONG ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. show ()} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġbinding . root ĊĠĠĠ Ġ} Ċ } ĊĊ