package Ġcom . ex al li um . k view binder Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 4 . app . Fragment Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . widget . TextView Ċ import Ġcom . ex al li um . k view binding . bind Color Ċ import Ġcom . ex al li um . k view binding . bind Dim en Ċ import Ġcom . ex al li um . k view binding . bind Dim en Pixel Offset Ċ import Ġcom . ex al li um . k view binding . bind Dim en Pixel Size Ċ import Ġcom . ex al li um . k view binding . bind Drawable Ċ import Ġcom . ex al li um . k view binding . bind String Ċ import Ġcom . ex al li um . k view binding . bind Text Ċ import Ġcom . ex al li um . k view binding . bind View Ċ Ċ class ĠCustom Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġval ĠtextView : ĠTextView Ġby Ġbind View ( R . id . custom _ view _ text _ view ) ĊĠĠĠ Ġval Ġnull View : ĠTextView Ġby Ġbind View ( R . id . text ) ĊĠĠĠ Ġval Ġcolor Ġby Ġbind Color ( R . color . color Accent ) ĊĠĠĠ Ġval Ġdim en Ġby Ġbind Dim en ( R . dim en . test _ dim en ) ĊĠĠĠ Ġval Ġdim en Offset Ġby Ġbind Dim en Pixel Offset ( R . dim en . test _ dim en ) ĊĠĠĠ Ġval Ġdim en Size Ġby Ġbind Dim en Pixel Size ( R . dim en . test _ dim en ) ĊĠĠĠ Ġval Ġdrawable Ġby Ġbind Drawable ( R . drawable . ic _ launcher _ background ) ĊĠĠĠ Ġval Ġstr Ġby Ġbind String ( R . string . app _ name ) ĊĠĠĠ Ġval Ġformat Str Ġby Ġbind String ( R . string . fmt , Ġ" asdf ") ĊĠĠĠ Ġval Ġtext Ġby Ġbind Text ( R . string . app _ name ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . custom _ view , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} Ċ Ċ }