package Ġcom . k ronos . d okit . pthread . ui Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġcom . did ich ux ing . d ora emon kit . Do Kit Ċ import Ġcom . k ronos . d okit . pthread . R Ċ import Ġcom . k ronos . d okit . pthread . databinding . Activity P thread Hook Binding Ċ import Ġcom . k ronos . d okit . pthread . dump Ċ Ċ /** Ċ Ġ* Ċ Ġ* Ġ Ġ@ Author ĠLi AB ao Ċ Ġ* Ġ Ġ@ Since Ġ 2 0 2 1 / 1 1 / 2 4 Ċ Ġ* Ċ Ġ*/ Ċ class ĠP Thread Hook Ui Activity Ġ: ĠAppCompatActivity ( R . layout . activity _ pthread _ hook ) Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġview Binding Ġ: Activity P thread Hook Binding ĊĠĠĠ Ġprivate Ġval Ġthread Adapter Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠThread Adapter () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġview Binding Ġ= ĠActivity P thread Hook Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ Ġview Binding . re cyclerView . layout Manager Ġ= ĠLinearLayoutManager ( this ) ĊĠĠĠĠĠĠĠ Ġview Binding . re cyclerView . adapter Ġ= Ġthread Adapter ĊĠĠĠĠĠĠĠ ĠDo Kit . APPLICATION . dump Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthread Adapter . set New Data ( this ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ