Skip to content

UI library that helps you to make a cute collection of collapsible/expandable pages

Notifications You must be signed in to change notification settings

forceLain/AwesomeLayoutManager

Repository files navigation

AwesomeLayoutManager

This library contains a LayoutManager implementation with the help of which you can:

  • Draw your views in vertical and horizontal orientations
  • Make animated transition between vertical and horizontal mode
  • Draw your views in vertical orientation like a "previews" with cute scale effect
  • Scroll your views like a normal RecyclerView or like a ViewPager

Basic

All you need is to create and setup an AwesomeLayoutManager instance

layoutManager = new AwesomeLayoutManager();

//how much your views will be scaled
layoutManager.setScaleFactor(0.5f);

//beheave like a ViewPager or not
layoutManager.setPagination(true);

// how much an item view will be high in vertical mode
layoutManager.setPageHeightFactor(.7f);

// time of transition between vertical and horizontal mode
layoutManager.setTransitionDuration(450);

recyclerView.setLayoutManager(layoutManager);

You can scroll your views like a normal RecyclerView

layoutManager.setPagination(false);

No pagination

(click to see the video)

Also you can control the maximum height of views. For instance, make it small:

layoutManager.setPageHeightFactor(.7f);

Small height

(click to see the video)

You can find a working example in the "app" module

How to setup

Make sure you use jcenter repository

repositories {
    jcenter()
}

Add dependency

dependencies {
    compile 'com.forcelain.awesomelayoutmanager:awesomelayoutmanager:1.0'
    ...
}

About

UI library that helps you to make a cute collection of collapsible/expandable pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages