简书链接:databind显示特殊字符大全
文章字数:133,阅读全文大约需要1分钟
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| < < <= ≤
> > >= ≥
显示 说明 实体名称 实体编号
半方大的空白    
全方大的空白    
不断行的空白格   < 小于 < < > 大于 > > & &符号 & & " 双引号 " " © 版权 © © ® 已注册商标 ® ® ™ 商标(美国) ™ ™ × 乘号 × × ÷ 除号 ÷ ÷
|
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&&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