游戏详情自定义栏目内容支持富文本
This commit is contained in:
@ -10,6 +10,7 @@ import android.widget.LinearLayout
|
||||
import android.widget.TextView
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.text.HtmlCompat
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.recyclerview.widget.DefaultItemAnimator
|
||||
import androidx.recyclerview.widget.GridLayoutManager
|
||||
@ -231,8 +232,8 @@ class DescAdapter(context: Context,
|
||||
detailEntity.shouldBoundTogetherWithPreviousItem,
|
||||
detailEntity.shouldBoundTogetherWithNextItem)
|
||||
|
||||
viewHolder.binding.contentTv.setTextWithHighlightedTextWrappedInsideWrapper(customColumn.des
|
||||
?: "", copyClickedText = true)
|
||||
viewHolder.binding.contentTv.setTextWithHighlightedTextWrappedInsideWrapper(
|
||||
HtmlCompat.fromHtml(customColumn.des ?: "", HtmlCompat.FROM_HTML_MODE_LEGACY), copyClickedText = true)
|
||||
|
||||
viewHolder.binding.recyclerview.isNestedScrollingEnabled = false
|
||||
viewHolder.binding.recyclerview.layoutManager = if (customColumn.showInfoTagDes == true) {
|
||||
|
||||
@ -33,7 +33,7 @@ class HistoryApkListViewModel(application: Application, var game: GameEntity)
|
||||
// 改变 id 避免其它地方根据原有 game id 变更状态
|
||||
this.isReservable = false
|
||||
this.id = game.id + Constants.GAME_ID_DIVIDER + apk.version
|
||||
this.name = game.name + apk.version
|
||||
this.name = game.name + " " // 历史版本加个空格避免其他用游戏名来判定是否待安装的地方错误判断
|
||||
this.setApk(arrayListOf(apk))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user