Advertisement
Guest User

Untitled

a guest
Sep 10th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 1.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:bind="http://schemas.android.com/apk/res-auto">
  5.  
  6.     <data class="ProfileBinding">
  7.  
  8.         <import
  9.            alias="V"
  10.            type="android.view.View" />
  11.  
  12.         <variable
  13.            name="vm"
  14.            type="com.elegion.test.behancer.ui.profile.ProfileViewModel"/>
  15.  
  16.     </data>
  17.  
  18.     <android.support.v4.widget.SwipeRefreshLayout
  19.        android:id="@+id/refresher"
  20.        android:layout_width="match_parent"
  21.        android:layout_height="match_parent"
  22.        bind:onRefresh="@{vm.onRefreshListener}"
  23.        bind:refreshState="@{vm.isLoading}">
  24.  
  25.         <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  26.            android:layout_width="match_parent"
  27.            android:layout_height="match_parent"
  28.            android:orientation="vertical">
  29.  
  30.             <include
  31.                layout="@layout/v_profile"
  32.                android:visibility="visible" />
  33.  
  34.             <include
  35.                layout="@layout/v_error"
  36.                android:visibility="gone" />
  37.  
  38.         </LinearLayout>
  39.     </android.support.v4.widget.SwipeRefreshLayout>
  40. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement