Skip to content
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

Merged
merged 5 commits into from
Sep 7, 2023
Merged

Thd/ufield #399

merged 5 commits into from
Sep 7, 2023

Conversation

RQ527
Copy link
Contributor

@RQ527 RQ527 commented Sep 6, 2023

合并中心板块的分支

WhiteNight123
WhiteNight123 previously approved these changes Sep 6, 2023
# 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
@RQ527 RQ527 merged commit 29265bb into develop Sep 7, 2023
3 checks passed
@RQ527 RQ527 deleted the thd/ufield branch September 7, 2023 08:08
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更推荐使用viewbinding。郭神封装的view extension模板代码太多了。

@False-Mask
Copy link
Member

image
每个commit的内容过多了,开发的时候注意下,颗粒度太大了。可读性比较低

startActivity.setOnClickListener {
ServiceManager.activity(UFIELD_ACTIVITY)
}
startFood.setOnClickListener {
Copy link
Member

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 {
Copy link
Member

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)
Copy link
Member

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)
Copy link
Member

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:类的作用
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO 记得完善清除

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants