2018-01-17 18:39:16 +01:00
|
|
|
package jp.juggler.subwaytooter
|
|
|
|
|
|
|
|
import android.view.View
|
|
|
|
import android.widget.TextView
|
|
|
|
|
|
|
|
import jp.juggler.subwaytooter.util.DecodeOptions
|
|
|
|
import jp.juggler.subwaytooter.view.MyLinkMovementMethod
|
2018-11-18 03:38:52 +01:00
|
|
|
import org.jetbrains.anko.textColor
|
2018-01-17 18:39:16 +01:00
|
|
|
|
|
|
|
internal class ViewHolderHeaderSearch(
|
|
|
|
arg_activity : ActMain,
|
|
|
|
viewRoot : View
|
|
|
|
) : ViewHolderHeaderBase(arg_activity, viewRoot) {
|
|
|
|
|
|
|
|
private val tvSearchDesc : TextView
|
|
|
|
|
|
|
|
init {
|
|
|
|
this.tvSearchDesc = viewRoot.findViewById(R.id.tvSearchDesc)
|
|
|
|
tvSearchDesc.visibility = View.VISIBLE
|
|
|
|
tvSearchDesc.movementMethod = MyLinkMovementMethod
|
|
|
|
}
|
|
|
|
|
|
|
|
override fun showColor() {
|
|
|
|
}
|
|
|
|
|
|
|
|
override fun bindData(column : Column) {
|
|
|
|
super.bindData(column)
|
|
|
|
|
2018-11-19 23:46:14 +01:00
|
|
|
tvSearchDesc.textColor = column.getContentColor()
|
2019-09-12 13:59:33 +02:00
|
|
|
tvSearchDesc.text = DecodeOptions(activity, access_info, decodeEmoji = true)
|
|
|
|
.decodeHTML(column.getHeaderDesc() ?: "")
|
2018-01-17 18:39:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
override fun onViewRecycled() {
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|