简书链接:databind显示特殊字符大全
文章字数:133,阅读全文大约需要1分钟

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 < &lt;  <= &le;

  > &gt;  >= &ge;

显示 说明 实体名称 实体编号

半方大的空白 &ensp; &#8194;

全方大的空白 &emsp; &#8195;

不断行的空白格 &nbsp; &#160;
< 小于 &lt; &#60;
> 大于 &gt; &#62;
& &符号 &amp; &#38;
" 双引号 &quot; &#34;
© 版权 &copy; &#169;
® 已注册商标 &reg; &#174;
™ 商标(美国) ™ &#8482;
× 乘号 &times; &#215;
÷ 除号 &divide; &#247;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:layout_width="wrap_content"
app:text="@{model!=null&amp;&amp;model.title!=null?model.title:@string/young_tiele_empty}"
android:layout_height="wrap_content"
android:text=""
android:textColor="#999999"
android:textSize="13sp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="职业:"
app:text="@{model!=null?(@string/young_zhiye(model.occupation)??@string/young_zhiye_empty):@string/young_zhiye_empty}"
android:textColor="#999999"
android:textSize="13sp"
/>

</LinearLayout>

https://www.cnblogs.com/turingchang/p/5286652.html