Adv

Greatest RecyclerView LayoutManagers

A LayoutManager is responsible for positioning items in a recyclerview. The three standard layout managers provided by android sdk include:

  1. LinearLayoutManager
  2. GridLayoutManager
  3. StaggeredGrid LayoutManager

However amazing developers have already developed dozens of third party libraries.

In this piece  we ask you contribute some awesome layout managers you’ve come across , used or developed for others.

Share

Related Concepts

Adv

1 Example

  1. FanLayoutManager

    Fan Layout Manager allows you to implement horizontal lists, in which items move like  like fan blades (in a circular way of a radius to your choice). To give a slightly chaotical effect to the motion, it’s possible to set an angle for the list items. So, every implementation of the library can be unique.

    Installation

    The library is hosted in jcenter. To install it:

    implementation 'com.cleveroad:fan-layout-manager:1.0.5'

    Then to use it:

     

    fanLayoutManager = new FanLayoutManager(getContext());
    recyclerView.setLayoutManager(fanLayoutManager);

    An item can be selected or deselected:

     

    fanLayoutManager.switchItem(recyclerView, itemPosition); // select/deselect
    fanLayoutManager.deselectItem();

     

    Customization is easy:

    FanLayoutManagerSettings fanLayoutManagerSettings = FanLayoutManagerSettings
                    .newBuilder(getContext())
                    .withFanRadius(true)
                    .withAngleItemBounce(5)
                    .withViewWidthDp(120)
                    .withViewHeightDp(160)               
                    .build();
    
    fanLayoutManager = new FanLayoutManager(getContext(), fanLayoutManagerSettings);
    recyclerView.setLayoutManager(fanLayoutManager);

     

    Find the library here.

     




Share an Example

Share an Example

Browse
What is the capital of Egypt? ( Cairo )