|
@@ -5,6 +5,7 @@ import android.graphics.Color
|
|
|
import android.os.Build
|
|
|
import android.os.Bundle
|
|
|
import android.text.Html
|
|
|
+import android.text.method.LinkMovementMethod
|
|
|
import android.view.View
|
|
|
import android.view.View.OnLongClickListener
|
|
|
import android.webkit.WebSettings
|
|
@@ -43,7 +44,12 @@ class ArticleDetailActivity: MBActivity<ArticleDetailVModel, ActivityArticleDeta
|
|
|
val item: MsgList = Gson().fromJson(data, MsgList::class.java)
|
|
|
vm.msgGetInfo.value=item
|
|
|
vm.isShow.value=true
|
|
|
- binding.tvContent.text=Html.fromHtml(item.content)
|
|
|
+ binding.tvContent.visibility=View.GONE
|
|
|
+ // binding.tvContent.text=Html.fromHtml(item.content)
|
|
|
+ //激活超链接,设置为可点击模式
|
|
|
+ // binding.tvContent.movementMethod = LinkMovementMethod.getInstance();
|
|
|
+
|
|
|
+ inData(item.content)
|
|
|
|
|
|
titleBar()!!.setTitle("消息详情")
|
|
|
|