package Ġcom . ben ny hu o . tie gu any in . sample . fragments Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 4 . app . Fragment Ċ import Ġandroid . support . v 4 . view . View Compat Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . ben ny hu o . tie gu any in . annotations . Fragment Builder Ċ import Ġcom . ben ny hu o . tie gu any in . annotations . Required Ċ import Ġcom . ben ny hu o . tie gu any in . sample . R Ċ import Ġcom . ben ny hu o . tie gu any in . sample . transitions . show Details Fragment Ċ import Ġkotlinx . android . synt hetic . main . fragment _ main .* Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġben ny Ġon Ġ 2 / 6 / 1 8 . Ċ Ġ*/ Ċ @ Fragment Builder Ċ class ĠKotlin Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġ@ Required ĊĠĠĠ Ġlateinit Ġvar Ġtext : ĠString ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . fragment _ main , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ ĠView Compat . set Transition Name ( textView , Ġ" fragment ") ĊĠĠĠĠĠĠĠ ĠtextView . text Ġ= Ġtext ĊĠĠĠĠĠĠĠ ĠtextView . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshow Details Fragment (" Kotlin ĠFragment ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ