|
@@ -180,26 +180,26 @@ class FoodContentView : ConstraintLayout {
|
|
|
if ("" != cover) ivCover.load(cover, binding.ivCover.width, binding.ivCover.height)
|
|
|
tvFoodName.updateText(content.foodName)
|
|
|
Log.d("------", "---666---")
|
|
|
-// starView.apply {
|
|
|
-// setCommentNumber(content.useNum.toString())
|
|
|
-// setCommentTextColorGray()
|
|
|
-// }
|
|
|
-// Log.d("------", "---777---")
|
|
|
-// tvTimeAndLevel.updateText("${content.time}・${content.level}")
|
|
|
-// if (isNetRecipes) {
|
|
|
-// ivNet.visibility = View.VISIBLE
|
|
|
-// } else {
|
|
|
-// ivNet.visibility = View.GONE
|
|
|
-// }
|
|
|
-// if (hasDownload) {
|
|
|
-// ivLike.src = R.drawable.ic_delete
|
|
|
-// } else {
|
|
|
-// if (isLike) {
|
|
|
-// ivLike.src = R.drawable.ic_like
|
|
|
-// } else {
|
|
|
-// ivLike.src = R.drawable.ic_unlike
|
|
|
-// }
|
|
|
-// }
|
|
|
+ starView.apply {
|
|
|
+ setCommentNumber(content.useNum.toString())
|
|
|
+ setCommentTextColorGray()
|
|
|
+ }
|
|
|
+ Log.d("------", "---777---")
|
|
|
+ tvTimeAndLevel.updateText("${content.time}・${content.level}")
|
|
|
+ if (isNetRecipes) {
|
|
|
+ ivNet.visibility = View.VISIBLE
|
|
|
+ } else {
|
|
|
+ ivNet.visibility = View.GONE
|
|
|
+ }
|
|
|
+ if (hasDownload) {
|
|
|
+ ivLike.src = R.drawable.ic_delete
|
|
|
+ } else {
|
|
|
+ if (isLike) {
|
|
|
+ ivLike.src = R.drawable.ic_like
|
|
|
+ } else {
|
|
|
+ ivLike.src = R.drawable.ic_unlike
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|