All Projects → dkzwm → ItemDecorations

dkzwm / ItemDecorations

Licence: Apache-2.0 license
A dividers library for RecyclerView which use GridLayoutManager or LinearLayoutManager,when the RecyclerView used GridLayoutManager that supports Cross-Column feature.一款RecyclerView的分割线库,支持LinearLayoutManager和GridLayoutManager,当使用GridLayoutManager时支持跨行特性

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ItemDecorations

TimelineView
A customizable and easy-to-use Timeline View library for Android. Works as a RecyclerView decorator (ItemDecoration)
Stars: ✭ 169 (+302.38%)
Mutual labels:  recyclerview, itemdecoration, recyclerview-item-decoration
StickyHeader
A simple lightweight sticky header ItemDecorator for RecyclerView
Stars: ✭ 108 (+157.14%)
Mutual labels:  recyclerview, itemdecoration
FlexItemDecoration
FlexItemDecoration, can customize the head, bottom, leftmost, rightmost dividing line, but also customize any one of the dividing lines and batch custom multiple dividing lines
Stars: ✭ 52 (+23.81%)
Mutual labels:  recyclerview, itemdecoration
FancyAdapters
A collection of customizable RecyclerView Adapters for Android, that provide various functionality like item selection, contextual action mode controls, drag&drop and swiping, among other.
Stars: ✭ 49 (+16.67%)
Mutual labels:  recyclerview, recyclerview-item-decoration
Chipslayoutmanager
ANDROID. ChipsLayoutManager (SpanLayoutManager, FlowLayoutManager). A custom layout manager for RecyclerView which mimicric TextView span behaviour, flow layouts behaviour with support of amazing recyclerView features
Stars: ✭ 3,138 (+7371.43%)
Mutual labels:  recyclerview, span
Greedo Layout For Android
Full aspect ratio grid LayoutManager for Android's RecyclerView
Stars: ✭ 1,588 (+3680.95%)
Mutual labels:  grid, recyclerview
InfiniteScrollRecyclerView
Enables the RecyclerView to Auto scroll for indefinite time.
Stars: ✭ 49 (+16.67%)
Mutual labels:  recyclerview, recyclerview-item-decoration
Timeline
瀑布流式的时间轴
Stars: ✭ 2,028 (+4728.57%)
Mutual labels:  recyclerview, itemdecoration
SpacingItemDecoration
ItemDecoration for RecyclerView that allows you to set spacing between and around list items in flexible way.
Stars: ✭ 83 (+97.62%)
Mutual labels:  recyclerview, itemdecoration
Android-RecyclerView-Loadmore
RecyclerView Loadmore and Swipe refresh for LinearLayout GridLayout and StaggeredLayout
Stars: ✭ 27 (-35.71%)
Mutual labels:  recyclerview, gridlayoutmanager
awesome-grids-css
A curated list of awesome Grids CSS System 🤘
Stars: ✭ 34 (-19.05%)
Mutual labels:  grid
ui-grid-angular2
ui-grid in Angular 2
Stars: ✭ 35 (-16.67%)
Mutual labels:  grid
react-auto-mosaic
Automatic box behavior in the grid - responsive mosaic
Stars: ✭ 12 (-71.43%)
Mutual labels:  grid
codeKK-Android
http://p.codekk.com/
Stars: ✭ 29 (-30.95%)
Mutual labels:  recyclerview
hexagonTab
Hexagon bookmarks accented with a chosen colour. Customise the layout, style, background and bookmarks with hexagonTab.
Stars: ✭ 65 (+54.76%)
Mutual labels:  grid
AndroidRecyclerViewWithLoadingEmptyAndRetry
recyclerview
Stars: ✭ 16 (-61.9%)
Mutual labels:  recyclerview
RecyclerViewItemTouchUsing
图文混排发帖(完美复现汽车之家论坛发帖)
Stars: ✭ 23 (-45.24%)
Mutual labels:  recyclerview
slickgrid-universal
Slickgrid-Universal is a monorepo which includes all Editors, Filters, Extensions, Services and is Framework Agnostic to take full advantage of SlickGrid core lib.
Stars: ✭ 29 (-30.95%)
Mutual labels:  grid
fortune
🔮Fortune is your friendly CSS properties framework.
Stars: ✭ 16 (-61.9%)
Mutual labels:  grid
GenericAdapter
⛳️ Easy to use android databinding ready recyclerview adapter
Stars: ✭ 26 (-38.1%)
Mutual labels:  recyclerview

ItemDecorations

English | 中文

ItemDecorations is a dividers library for RecyclerView which use GridLayoutManager or LinearLayoutManager

Features

1.Support cross-column when the RecyclerView used GridLayoutManager
2.Support horizontal orientation and vertical orientation
3.Support reversed layout
4.Support draw the divider inside each of item

Gradle

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

dependencies {  
    compile 'com.github.dkzwm:ItemDecorations:0.1.0’
}

How to use

LinearItemDecoration linearItemDecoration = new LinearItemDecoration.Builder(context)
          .divider(new ColorDivider()).marginStart(10).marginEnd(10)
          .drawInsideEachOfItem(true).build();
recyclerView.addItemDecoration(linearItemDecoration);

GridItemDecoration gridItemDecoration = new GridItemDecoration.Builder(context)
        .drawInsideEachOfItem(true).columnDivider(new ColorDivider(Color.BLACK))
        .rowDivider(new ColorDivider(Color.BLACK)).build();
recyclerView.addItemDecoration(gridItemDecoration);

Snapshot

Drawing Drawing

Drawing Drawing

License

  Copyright 2017 dkzwm

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].