Skip to content

Instantly share code, notes, and snippets.

@daeun1012
Last active December 1, 2017 03:30
Show Gist options
  • Save daeun1012/aab7a991b804956ff20e84e6a3a7f230 to your computer and use it in GitHub Desktop.
Save daeun1012/aab7a991b804956ff20e84e6a3a7f230 to your computer and use it in GitHub Desktop.
<!-- 레이아웃 태그 선언 -->
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
<variable
name="isLoading"
type="boolean" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cardview_light_background"
android:orientation="vertical">
<TextView
android:id="@+id/loading_tv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical|center_horizontal"
android:text="@string/loading_products"
android:textAlignment="center"
app:visibleGone="@{isLoading}"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/products_list"
android:contentDescription="@string/cd_products_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="LinearLayoutManager"
app:visibleGone="@{!isLoading}"/>
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment