作者 qin

富文本修改

... ... @@ -3,12 +3,12 @@ apply plugin: 'com.android.application'
android {
signingConfigs {
debug {
/* debug {
storeFile file('D:\\project\\huahang_project\\app\\xuetubao.jks')
storePassword '111111'
keyAlias = 'xuetubao'
keyPassword '111111'
}
}*/
}
compileSdkVersion 28
... ...
... ... @@ -2,6 +2,7 @@ package com.hh.xuetubao.activity.personal;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
... ... @@ -64,7 +65,7 @@ public class MessageDetailActivity extends BaseMvpActivity<CommonPresenter, Pers
if (api == 10 && intent == 2) {
UserBean bean = (UserBean) o;
if (bean.getMsgContent() != null)
tvContent.setText(bean.getMsgContent());
tvContent.setText(Html.fromHtml(bean.getMsgContent()));
}
}
... ...