File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
demo-android/src/main/java/com/highcapable/pangutext/demo/ui Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ import com.highcapable.pangutext.demo.ui.base.BaseActivity
3131
3232class ListActivity : BaseActivity <ActivityListBinding >() {
3333
34- private val listData = List (100 ) { " 这是第${it} 条Data演示" }
34+ private val listData = List (100 ) { " 这是第${it + 1 } 条Data演示" }
3535
3636 override fun onCreate (savedInstanceState : Bundle ? ) {
3737 super .onCreate(savedInstanceState)
3838 binding.recyclerView.bindAdapter<String > {
3939 onBindData { listData }
40- onBindViews <AdapterListBinding > { binding, text, _ ->
40+ onBindItemView <AdapterListBinding > { binding, text, _ ->
4141 binding.text.text = text
4242 binding.text.textColor = Color .rgb(
4343 (0 .. 255 ).random(),
You can’t perform that action at this time.
0 commit comments