经常使用的使用方式就不说了html
说说VIEW的隐藏与显示android
1. 多状态使用,判断数字状态ide
android:visibility="@{(wrokItemBinding.itemType == 1)?View.VISIBLE:View.GONE}"post
2.判断是否是空 TextUtils 空就不显示htm
android:text="@{wrokItemBinding.pointExecTime,default=dd}" android:visibility="@{TextUtils.isEmpty(wrokItemBinding.pointExecTime)?View.INVISIBLE:View.VISIBLE}"
posted on 2020-03-15 09:57 caosiqiao 阅读(689) 评论(0) 编辑 收藏 blog