UI优化
This commit is contained in:
@ -77,6 +77,7 @@ class UserHistoryAdapter(context: Context,
|
||||
|
||||
holder.binding.run {
|
||||
entity = historyEntity
|
||||
userName.visibility = View.GONE
|
||||
endDesc.text = entity?.community?.name
|
||||
executePendingBindings()
|
||||
val command = getUserCommand(historyEntity.type, historyEntity.time)
|
||||
@ -109,7 +110,7 @@ class UserHistoryAdapter(context: Context,
|
||||
} else {
|
||||
holder.binding.content.setTextWithHighlightedTextWrappedInsideWrapper(text = historyEntity.comment.content, copyClickedText = true)
|
||||
}
|
||||
holder.binding.content.setExpandCallback{
|
||||
holder.binding.content.setExpandCallback {
|
||||
mExpandSparseBooleanArray.put(holder.adapterPosition, true)
|
||||
}
|
||||
|
||||
|
||||
@ -1,12 +1,10 @@
|
||||
package com.gh.gamecenter.personalhome.home
|
||||
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.recyclerview.widget.GridLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.gh.common.util.DisplayUtils
|
||||
import com.gh.common.util.dip2px
|
||||
import com.gh.common.util.viewModelProvider
|
||||
import com.gh.common.view.GridSpacingItemDecoration
|
||||
@ -49,6 +47,7 @@ class UserVideoHistoryFragment : ListFragment<PersonalHistoryEntity, UserVideoHi
|
||||
mListRv.layoutManager = gridLayoutManager
|
||||
mListRv.setPadding(8F.dip2px(), 0, 8F.dip2px(), 0)
|
||||
filter.setPadding(8F.dip2px(), 0, 8F.dip2px(), 0)
|
||||
filterContainer.setPadding(0, 10F.dip2px(), 0, 10F.dip2px())
|
||||
}
|
||||
|
||||
override fun getItemDecoration(): RecyclerView.ItemDecoration? {
|
||||
|
||||
Reference in New Issue
Block a user