SHARE
TWEET

Untitled

a guest Jun 17th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <string name="red_status">Status: <font color="#FF0000">Red</font></string>
  2. <string name="green_status">Status: <font color="#00FF00">Green</font></string>
  3.      
  4. <TextView
  5.     android:id="@+id/status"
  6.     android:layout_width="wrap_content"
  7.     android:layout_height="wrap_content"
  8.     android:layout_gravity="center"
  9.     android:layout_marginBottom="16dp"
  10.     android:textSize="24sp"
  11.     android:textAlignment="center"
  12.     android:textColor="@color/charcoal_grey"
  13.     android:letterSpacing="-0.01"
  14.     android:lineSpacingExtra="8sp"
  15.     android:gravity="center_horizontal"
  16.     android:text="@{item.status == Status.RED ? @string/red_status : @string/green_status}" />
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top