ShimmerContactsView

Additional

Language
Java
Version
N/A
Created
Mar 18, 2017
Updated
Apr 9, 2017
Owner
Takeoff Android (TakeoffAndroid)
Contributors
Takeoff Android (TakeoffAndroid)
chandruf22
2
Activity
Badge
Generate
Download
Source code
APK file

Blurb

Why ShimmerContactsView?

  • It is the superfast view to display contacts in RecyclerView with rich material design UI.
  • This view can be used as a contact picker using bottom sheet dialog and activity.
Demo I Demo II

Attributes and Methods

Following are the attributes and methods to initialise the demo views.

XML Attributes Java Methods Explanation
app:demo_child_count setDemoChildCount(int) Integer value that sets the number of demo views should be present in shimmer adapter
app:demo_layout setDemoLayoutReference(int) Layout reference to your demo view. Define your my_demo_view.xml and refer the layout reference here.
app:demo_layout_manager_type setDemoLayoutManager(LayoutManagerType) Layout manager of demo view. Can be one among linear_veritical or linear_horizontal or grid.

Usage

Define your xml as:

  
  <com.takeoffandroid.shimmercontactsview.views.shimmer.ShimmerRecyclerView
      android:id="@+id/recycler_view_contacts"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:scrollbars="vertical"
      app:demo_child_count="10"
      app:demo_layout="@layout/shimmer_sample_view"
      app:demo_layout_manager_type="linear_vertical"
      />

where @layout/layout_demo_grid refers to your sample layout that should be shown during loading spinner. Now on your activity onCreate, initialize the shimmer as below:

ShimmerRecyclerView shimmerRecycler = (ShimmerRecyclerView) findViewById(R.id.recycler_view_contacts);
shimmerRecycler.showShimmerAdapter();

Benchmark Test

Acknowledgements