<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:shimmer="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/white" | |
tools:context=".MainActivity"> | |
<com.facebook.shimmer.ShimmerFrameLayout | |
android:id="@+id/mShimmerViewContainer" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:orientation="vertical" | |
shimmer:duration="800"> | |
<!-- Adding 3 rows of placeholders --> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<include layout="@layout/recipe_placeholder_item" /> | |
<include layout="@layout/recipe_placeholder_item" /> | |
<include layout="@layout/recipe_placeholder_item" /> | |
</LinearLayout> | |
</com.facebook.shimmer.ShimmerFrameLayout> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/recyclerView" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:scrollbars="vertical" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment