• Stars
    star
    2,056
  • Rank 21,647 (Top 0.5 %)
  • Language
    Java
  • Created over 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Using Fan Layout Manager you can implement the horizontal list, the items of which move like fan blades

#FanLayoutManager Awesome Header image

Welcome to Fan Layout Manager for Android by Cleveroad

Fan Layout Manager is a new library created at Cleveroad. Our ideas don’t come from nowhere, everything we invent results from the difficulties we overcome. This exactly what happened — we were fighting uniformity! Since traditional view of the simple horizontal list isn’t impressive anymore, we decided to suggest our vision adding some colours and a completely new motion path.

Demo image

#####Check out the animation Fan Layout Manager for Android on YouTube in HD quality.

Cleveroad gladly shares its creation with everyone who wants to add some visual spice to their Android apps. Take Fan Layout Manager and create!

Using Fan Layout Manager you can implement the horizontal list, the items of which move 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.

Awesome

Installation

by Gradle:

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

Setup and usage

Use default FanLayoutManager in code:

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

You can select/deselect item using:

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

Get selected item position:

fanLayoutManager.getSelectedItemPosition(); // return selected item position
fanLayoutManager.isItemSelected();          // true if item was selected

To customize FanLayoutManager we provide settings:

FanLayoutManagerSettings fanLayoutManagerSettings = FanLayoutManagerSettings
                .newBuilder(getContext())
                .withFanRadius(true)
                .withAngleItemBounce(5)
                .withViewWidthDp(120)
                .withViewHeightDp(160)               
                .build();

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

.withFanRadius(boolean isFanRadiusEnable) - you can enable displaying items in fan style.

.withAngleItemBounce(float angleItemBounce) - added rendom bounce angle to items from [0.. angleItemBounce).

.withViewWidthDp(float viewWidthDp) - custom item width. default 120dp.

.withViewHeightDp(float viewHeightDp) - custom item height. default 160dp.

You can remove bounce angle effect for selected item:

public void straightenSelectedItem(Animator.AnimatorListener listener);

and you can restore bounce angle effect for selected item:

public void restoreBaseRotationSelectedItem(Animator.AnimatorListener listener)

You can collapse views using:

public void collapseViews();

Changelog

See changelog history.

Support

If you have any questions regarding the use of this tutorial, please contact us for support at [email protected] (email subject: «FanLayoutManager for Android. Support request.»)
or
Use our contacts:
Cleveroad.com
Facebook account
Twitter account
Google+ account

License

    The MIT License (MIT)

    Copyright (c) 2015-2016 Cleveroad

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

More Repositories

1

SlidingTutorial-Android

Android Library for making animated tutorials inside your app
Java
2,486
star
2

AdaptiveTableLayout

Library that makes it possible to read, edit and write CSV files
Java
1,903
star
3

WaveInApp

Live Audio Equalizer with wave effect
Java
1,768
star
4

MusicBobber

Awesome Audio Widget for any Android Music App
Java
879
star
5

LoopBar

Tap Bar with infinite scrolling. Make the navigation menu right at fingerprints, in a tab bar.
Java
741
star
6

CRNetworkButton

Send Button for iOS
Swift
654
star
7

FireworkyPullToRefresh

Let's try to refresh your data with our library!
Java
640
star
8

BubbleAnimationLayout

You don’t want your apps look and feel boring, do you? Add some bubbles!
Java
576
star
9

CycleMenu

Custom LayoutManager for the inner RecyclerView
Java
573
star
10

CRPageViewController

While a standard page view allows you to navigate between pages by using simple gestures, our component goes further
Objective-C
395
star
11

PlayWidget

Break the monotony and make your music player unique!
Java
367
star
12

Bitutorial

Crumbling tutorial for Android Apps
Java
357
star
13

CRParticleEffect

A CocoaPod that simplifies creation of the particle effects.
Objective-C
349
star
14

Android-Marshmallow-Boot-Animation

Java
244
star
15

DroidArt

Android library that allows perform manipulations with text and easily combine it with images.
Kotlin
209
star
16

BlurTutorial

Library for creating blur effects under Android UI elements
Kotlin
155
star
17

flutter_sliding_tutorial

User onboarding library with smooth animation of objects and background colors
Dart
128
star
18

CRRulerControl

Customizable component, created by Cleveroad iOS developers, is aimed at turning a simple ruler into a handy and smart instrument
Objective-C
112
star
19

ARFaceDetection

AR-based library for Android which is capable of detecting faces and overlaying images above the user’s head
Kotlin
51
star
20

slidingtutorial-ios

iOS Library for making animated tutorials inside your app
Objective-C
49
star
21

Bootstrap

This set of libraries is designed to help developers accomplish various tasks easier and faster
Kotlin
40
star
22

CRRollingLabel

Objective-C
30
star
23

cr_calendar

Highly customizable, feature-packed calendar widget for Flutter.
Dart
28
star
24

CRCellCollectionView

With this component, pictures in your apps collection view will look like honeycomb instead of the boring standard variant
Objective-C
28
star
25

ColorDetection

ColorDetection is an app built with OpenCV and using computer vision at its core. It’s able to detect and change colors of objects using a camera of iOS devices.
Objective-C++
21
star
26

cr_logger

Dart
9
star
27

cr_file_saver

Kotlin
3
star
28

CRRefreshControl

2
star
29

CRPlotView

1
star
30

CRPinCodeControl

1
star