4C3

state_empty.xml

4C3
Aug 10th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.01 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="match_parent"
  11.        android:layout_height="match_parent"
  12.        android:orientation="vertical"
  13.        android:gravity="center"
  14.        app:bindEmptyState="@{state}">
  15.         <ImageView
  16.            android:layout_width="wrap_content"
  17.            android:layout_height="wrap_content"
  18.            android:src="@drawable/ic_empty_box"
  19.            android:tint="?attr/colorOnSurface"/>
  20.         <TextView
  21.            android:layout_width="wrap_content"
  22.            android:layout_height="wrap_content"
  23.            android:textColor="?android:attr/textColorPrimary"
  24.            android:textSize="@dimen/standardTextSize"/>
  25.     </LinearLayout>
  26. </layout>
Add Comment
Please, Sign In to add comment