GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FishAngler/FlowLayoutManager: Android 3rd party library to make implementing a FlowLayoutManager

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

140 Commits
140 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
flowlayoutmanager
flowlayoutmanager
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
FlowLayoutManager.zip
FlowLayoutManager.zip
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
image_1.png
image_1.png
 
 
image_2.png
image_2.png
 
 
image_3.png
image_3.png
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

FlowLayoutManager

Android 3rd party library to make implementing a FlowLayoutManager

FlowLayoutManager is a layoutManager that works with Android RecyclerView Widget, to layout views in flow style, with support of predictive animations, item per line limit, auto measurement & alignments (left or right)

Screenshots

Installation

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.simonebortolin:FlowLayoutManager:1.8.0'
}

Item per line limitation

Single item per line

recyclerView.setLayoutManager(new FlowLayoutManager().singleItemPerLine());
recyclerView.setLayoutManager(FlowLayoutManager().singleItemPerLine())

or x items per line

recyclerView.setLayoutManager(new FlowLayoutManager().maxItemsPerLine(x));
recyclerView.setLayoutManager(FlowLayoutManager().maxItemsPerLine(x))

to remove Item per line limitation

((FlowLayoutManager)recyclerView.getLayoutManager()).removeItemPerLineLimit();
(recyclerView.getLayoutManager() as FlowLayoutManager).removeItemPerLineLimit()

Auto measurement

FlowLayoutManager flowLayoutManager = new FlowLayoutManager();
flowLayoutManager.setAutoMeasureEnabled(true);
recyclerView.setLayoutManager(flowLayoutManager);
flowLayoutManager = FlowLayoutManager()
flowLayoutManager.setAutoMeasureEnabled(true)
recyclerView.setLayoutManager(flowLayoutManager)

Alignment

recyclerView.setLayoutManager(new FlowLayoutManager().setAlignment(Alignment.LEFT));
recyclerView.setLayoutManager(FlowLayoutManager().setAlignment(Alignment.LEFT))

Alignment could be LEFT, CENTER or RIGHT.

Credits

I thank all the authors of the various commits that I have included in my fork

License

Copyright (c) 2016 xiaofeng-han
  
Licensed under the GNU GENERAL PUBLIC LICENSE (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://github.com/simonebortolin/FlowLayoutManager/blob/master/LICENSE

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Android 3rd party library to make implementing a FlowLayoutManager

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.