package Ġdev . hit ools . no ah . modules . sample . detail . recycle . adapter Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġdev . hit ools . common . adapter . Bind Adapter Ċ import Ġdev . hit ools . common . extensions . toast Ċ import Ġdev . hit ools . no ah . BR Ċ import Ġdev . hit ools . no ah . R Ċ import Ġdev . hit ools . no ah . databinding . F Sample Bind Adapter Binding Ċ import Ġdev . hit ools . no ah . modules . base . mv vm . view . App Bind Fragment Ċ import Ġdev . hit ools . no ah . modules . sample . entries . Sample Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġy uh ai yang Ġon Ġ 2 0 2 0 - 0 2 - 1 4 . Ċ Ġ*/ Ċ class ĠSample Bind Adapter Fragment Ġ: ĠApp Bind Fragment < F Sample Bind Adapter Binding , ĠSample Bind Adapter ViewModel >() Ġ{ ĊĊĠĠĠ Ġval Ġadapter Ġ= ĠBind Adapter < Sample >() ĊĊĠĠĠ Ġoverride Ġfun Ġget Layout (): ĠInt Ġ= ĠR . layout . f _ sample _ bind _ adapter ĊĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġadapter . add Layout ( BR . item , ĠR . layout . item _ sample _ bind _ adapter ) ĊĠĠĠĠĠĠĠ Ġadapter . setOn ItemClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtoast (" çĤ¹åĩ» äºĨ Ġ$ it ") ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġadapter . setOn Item Child ClickListener ( R . id . button ) Ġ{ Ġposition , Ġview Id Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtoast (" çĤ¹åĩ» äºĨ Ġ$ position , Ġid ä¸º ï¼ļ $ view Id ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġbinding . list . adapter Ġ= Ġadapter ĊĊĠĠĠĠĠĠĠ Ġadapter . plus Data ( Sample (" 1 1 ", ĠSample Bind Adapter Fragment :: class . java )) ĊĠĠĠĠĠĠĠ Ġadapter . plus Data ( Sample (" 1 1 ", ĠSample Bind Adapter Fragment :: class . java )) ĊĠĠĠĠĠĠĠ Ġadapter . plus Data ( Sample (" 1 1 ", ĠSample Bind Adapter Fragment :: class . java )) ĊĠĠĠĠĠĠĠ Ġadapter . plus Data ( Sample (" 1 1 ", ĠSample Bind Adapter Fragment :: class . java )) ĊĠĠĠĠĠĠĠ Ġadapter . plus Data ( Sample (" 1 1 ", ĠSample Bind Adapter Fragment :: class . java )) ĊĠĠĠĠĠĠĠ Ġadapter . plus Data ( Sample (" 1 1 ", ĠSample Bind Adapter Fragment :: class . java )) ĊĊĊĠĠĠ Ġ} Ċ }