Created
January 24, 2019 18:09
-
-
Save shubhamnikam/a7b5b5e64332c87a7e1881d03a811faf to your computer and use it in GitHub Desktop.
shimmer activity_main
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
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/shimmer_view_container" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:orientation="vertical" | |
shimmer:duration="800"> | |
<!-- 3 rows added as a placeholders --> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<include layout="@layout/book_list_placeholder" /> | |
<include layout="@layout/book_list_placeholder" /> | |
<include layout="@layout/book_list_placeholder" /> | |
</LinearLayout> | |
</com.facebook.shimmer.ShimmerFrameLayout> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recycler_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:scrollbars="vertical"/> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment