4C3

state_error.xml

4C3
Aug 10th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto">
  4.     <data>
  5.         <variable
  6.            name="state"
  7.            type="bd.edu.daffodilvarsity.classmanager.common.models.LoadStates" />
  8.     </data>
  9.     <LinearLayout
  10.        android:layout_width="wrap_content"
  11.        android:layout_height="wrap_content"
  12.        android:orientation="vertical"
  13.        android:gravity="center"
  14.        app:bindErrorState="@{state}">
  15.         <ImageView
  16.            android:layout_width="wrap_content"
  17.            android:layout_height="wrap_content"
  18.            android:src="@drawable/ic_sad_cloud"
  19.            android:tint="?attr/colorOnSurface"
  20.            android:layout_marginBottom="4dp"/>
  21.         <TextView
  22.            android:layout_width="wrap_content"
  23.            android:layout_height="wrap_content"
  24.            android:textSize="@dimen/standardTextSize"
  25.            android:textColor="?android:attr/textColorPrimary"/>
  26.     </LinearLayout>
  27. </layout>
Add Comment
Please, Sign In to add comment