fix: 自定义页面-游戏Item UI调整
This commit is contained in:
@ -118,6 +118,7 @@ class GameItemUi(override val ctx: Context) : Ui {
|
||||
startToStartOf(mGameDesSpace)
|
||||
endToStartOf(gameDesTv)
|
||||
topToTopOf(mGameDesSpace)
|
||||
bottomToBottomOf(mGameDesSpace)
|
||||
})
|
||||
add(gameDesTv, lParams(0, wrapContent) {
|
||||
startToEndOf(gameRatingTv)
|
||||
@ -256,7 +257,7 @@ class GameItemUi(override val ctx: Context) : Ui {
|
||||
compoundDrawablePadding = dip(4)
|
||||
includeFontPadding = false
|
||||
|
||||
visibility = View.GONE
|
||||
visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
private fun initRecommendConstraintLayout() = constraintLayout {
|
||||
|
||||
@ -158,7 +158,7 @@ class CustomGameVerticalAdapter(
|
||||
} else {
|
||||
gameRatingTv.setTextAppearance(context, styleResId)
|
||||
}
|
||||
gameRatingTv.setPadding(0, 4f.dip2px(), 8f.dip2px(), 0)
|
||||
gameRatingTv.setPadding(0, 0, 8f.dip2px(), 0)
|
||||
gameRatingTv.setDrawableStart(R.drawable.game_horizontal_rating)
|
||||
CustomViewExt.setGameRatting(gameRatingTv, briefStyle, gameEntity)
|
||||
CustomViewExt.setDescription(gameDesTv, briefStyle, gameEntity)
|
||||
|
||||
Reference in New Issue
Block a user