Last active
December 1, 2017 03:30
-
-
Save daeun1012/aab7a991b804956ff20e84e6a3a7f230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 레이아웃 태그 선언 --> | |
<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