【发布时间】:2019-05-11 05:04:37
【问题描述】:
我为学生的医疗目录使用脚本,我是 android 的初学者。
我使用 Firebase 数据库来存储应用的数据。所以我写了像
这样的html标签<b>Anatomy</b>
但应用程序没有格式化 html 标签
private void initView() {
setContentView(R.layout.activity_word_detail);
tvWord = findViewById(R.id.textview_word);
tvWordMeaning = findViewById(R.id.textview_word_meaning);
tvType = findViewById(R.id.textview_word_type);
tvSynonym = findViewById(R.id.textview_synonym);
tvAntonym = findViewById(R.id.textview_antonym);
tvExample = findViewById(R.id.textview_example);
voiceIcon = findViewById(R.id.voice_icon_detail);
favorite=findViewById(R.id.favorite_icon_detail);
unFavorite=findViewById(R.id.unfavorite_icon_detail);
}
<TextView
android:id="@+id/textview_example"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="32dp"
android:textColor="@color/blue"
android:text="@string/example_text"
android:textSize="14sp"
android:paddingBottom="10dp"
android:autoLink="web"
android:linksClickable="true"
/>
id 为 textview_example 的 TextView 以 html 格式显示结果,我不知道该怎么做
【问题讨论】:
-
我认为不一样,因为我有两个变量 tvExample 和 textview id textview_example。抱歉,我是初学者