-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thd/ufield #399
Thd/ufield #399
Conversation
# Conflicts: # module_main/src/main/java/com/mredrock/cyxbs/main/adapter/MainAdapter.kt # module_main/src/main/java/com/mredrock/cyxbs/main/ui/main/MainActivity.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更推荐使用viewbinding。郭神封装的view extension模板代码太多了。
startActivity.setOnClickListener { | ||
ServiceManager.activity(UFIELD_ACTIVITY) | ||
} | ||
startFood.setOnClickListener { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
observe的时候设置listener?这里是必须这样写吗,我的理解是create初始化的时候是最优的
* date : 2023/8/24 11:19 | ||
*/ | ||
interface ActivityDetailApiService:IApi { | ||
// companion object { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确认不需要这段代码最好删了
|
||
inner class RvDoneViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { | ||
|
||
private val actName: TextView = itemView.findViewById(R.id.uField_done_activity_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
虽然可以findViewById但是更推荐使用viewbinding,省去部分模板代码
// * 满足中心比例的缩放 | ||
// */ | ||
// Glide.with(itemView.context) | ||
// .load(itemData.activity_cover_url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果确认不使用,请删除代码,
import kotlinx.coroutines.launch | ||
|
||
/** | ||
* description : TODO:类的作用 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO 记得完善清除
合并中心板块的分支