lmw
2023-06-13 4b7d8d9a038f6522df46d0f14fa07eb940a1b34d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.kuanzhai.driver.ui.driver_server.adapter
 
import android.view.View
import com.kuanzhai.driver.R
import com.kuanzhai.driver.base.BaseRvAdapter
import com.kuanzhai.driver.base.BaseViewHolder
import kotlinx.android.synthetic.main.item_car_detail_info.view.*
 
class CarDetailInfoAdapter:BaseRvAdapter<String>() {
    override fun getLayoutResId(viewType: Int): Int {
        return R.layout.item_car_detail_info
    }
 
    override fun onBindItem(holder: BaseViewHolder?, view: View?, item: String?) {
        holder?.itemView?.apply {
            tv_car_main.text = item!!.split(",")[0]
            tv_car_type_item.text = item!!.split(",")[1]
        }
    }
}