style: 国际出港/进港列表状态字段按值变色(01绿/W蓝)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:text="@{manifest.mftStatus ?? ``}" />
|
||||
android:text="@{manifest.mftStatus ?? ``}"
|
||||
android:textColor="@{`01`.equals(manifest.mftStatus) ? @color/text_green : (`W`.equals(manifest.mftStatus) ? @color/text_blue : @color/text_normal)}" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
|
||||
@@ -109,7 +109,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:text="@{bean.status}" />
|
||||
android:text="@{bean.status}"
|
||||
android:textColor="@{`01`.equals(bean.status) ? @color/text_green : (`W`.equals(bean.status) ? @color/text_blue : @color/text_normal)}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user