package Ġcom . example . android . analyzer . text . ui Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . navigation . Navigation Ċ import Ġcom . example . android . analyzer . core . Feature Core Ċ import Ġcom . example . android . analyzer . core . arch . Base Fragment Ċ import Ġcom . example . android . analyzer . core . k tools . v mb Ċ import Ġcom . example . android . analyzer . text . R Ċ import Ġcom . example . android . analyzer . text . databinding . Fragment Text Recognition Binding Ċ Ċ interface ĠText Recognition View Ċ Ċ class ĠText Recognition Fragment Ġ: ĠBase Fragment (), ĠText Recognition View Ġ{ ĊĊ ĉ private Ġval Ġv mb Ġby Ġv mb < Text Recognition ViewModel , ĠFragment Text Recognition Binding >( R . layout . fragment _ text _ recognition ) Ġ{ Ġfind ViewModel ( Text Recognition ViewModel :: class . java ) Ġ} ĊĊ ĉ override Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ Ċĉ ĉ super . onCreate ( savedInstanceState ) Ċĉ ĉ v mb . binding . view Ġ= Ġthis Ċĉ ĉ v mb . binding . viewModel Ġ= Ġfind ViewModel ( Text Recognition ViewModel :: class . java ) Ċ ĉ } ĊĊ ĉ override Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ Ċĉ ĉ return Ġv mb . root View Ċ ĉ } ĊĊ ĉ override Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ Ċĉ ĉ super . on View Created ( view , ĠsavedInstanceState ) Ċĉ ĉ v mb . binding . set Lifecycle Owner ( view Lifecycle Owner ) ĊĊĉ ĉ view . findViewById < View >( R . id . next _ button ). setOnClickListener Ġ{ ĠFeature Core . application Interface . navigate Home () Ġ} Ċ ĉ } Ċ Ċ }