All Projects → ckrgithub → FlexItemDecoration

ckrgithub / FlexItemDecoration

Licence: Apache-2.0 License
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

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FlexItemDecoration

SpacingItemDecoration
ItemDecoration for RecyclerView that allows you to set spacing between and around list items in flexible way.
Stars: ✭ 83 (+59.62%)
Mutual labels:  recyclerview, decoration, itemdecoration
TimelineView
A customizable and easy-to-use Timeline View library for Android. Works as a RecyclerView decorator (ItemDecoration)
Stars: ✭ 169 (+225%)
Mutual labels:  recyclerview, itemdecoration
ItemDecorations
A dividers library for RecyclerView which use GridLayoutManager or LinearLayoutManager,when the RecyclerView used GridLayoutManager that supports Cross-Column feature.一款RecyclerView的分割线库,支持LinearLayoutManager和GridLayoutManager,当使用GridLayoutManager时支持跨行特性
Stars: ✭ 42 (-19.23%)
Mutual labels:  recyclerview, itemdecoration
Timeline
瀑布流式的时间轴
Stars: ✭ 2,028 (+3800%)
Mutual labels:  recyclerview, itemdecoration
StickyHeader
A simple lightweight sticky header ItemDecorator for RecyclerView
Stars: ✭ 108 (+107.69%)
Mutual labels:  recyclerview, itemdecoration
react-native-nlist
原生Listview Native lListView react-native encapsulation Memory recovery reusing High performance
Stars: ✭ 60 (+15.38%)
Mutual labels:  recyclerview
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 (-5.77%)
Mutual labels:  recyclerview
CeilingLayout
CeilingLayout用来控制子View的吸顶联滑,理论上支持实现了NestedScrollingChild的联滑控件,如NestedScrollView、RecyclerView、SmartRefreshLayout等;只需要在xml里配置需要吸顶子View的位置索引就能自动实现吸顶联滑效果。
Stars: ✭ 26 (-50%)
Mutual labels:  recyclerview
Android-Expandable-ConcatAdapter
A sample project that shows how to make an expandable RecyclerView easily with the ConcatAdapter
Stars: ✭ 40 (-23.08%)
Mutual labels:  recyclerview
ClockScroller
A cool animated RecyclerView clock face scroller handle inspired by the following MaterialUp submission - https://material.uplabs.com/posts/codepen-scrolling-clock
Stars: ✭ 75 (+44.23%)
Mutual labels:  recyclerview
AccordionRecycler
Android RecyclerView Adapter with nested items & expand/contract functionality
Stars: ✭ 17 (-67.31%)
Mutual labels:  recyclerview
Launcher-OnePlus
Customizable and Open Source Launcher for Android
Stars: ✭ 73 (+40.38%)
Mutual labels:  recyclerview
react-native-background-shapes
Beautiful backgrounds shapes to React Native based in flex (Android + IOS)
Stars: ✭ 65 (+25%)
Mutual labels:  flex
CarouselGifViewer
Efficiently display a list of GIFs in a carousel (RecyclerView).
Stars: ✭ 33 (-36.54%)
Mutual labels:  recyclerview
Katana
Katana is CSS Layout System made with Flexbox
Stars: ✭ 57 (+9.62%)
Mutual labels:  flex
adapster
Android library designed to enrich and make your RecyclerView adapters more SOLID
Stars: ✭ 17 (-67.31%)
Mutual labels:  recyclerview
AdapterLayout
ViewGroup backed by RecyclerView.Adapter = magic
Stars: ✭ 58 (+11.54%)
Mutual labels:  recyclerview
RxDiffUtil
A lightweight Rx wrapper around DiffUtil with Activity lifecycle support (Deprecated)
Stars: ✭ 30 (-42.31%)
Mutual labels:  recyclerview
WheelPickerByRecyclerView
用RecyclerView实现的滚轮选择器
Stars: ✭ 14 (-73.08%)
Mutual labels:  recyclerview
Android-RecyclerViewHelper
RecyclerView的工具类,更方便的实现Adapter,item点击事件,更快的实现加载提示,分页加载。
Stars: ✭ 31 (-40.38%)
Mutual labels:  recyclerview

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 中文文档.

Effect

vertical-grid vertical-grid-2 vertical-linear
custom-line-linear custom-line-grid stiky-header

Demo

Download APK

Dependencies

add dependencies:

	dependencies {
		implementation 'ckrjfrog.FlexItemDecoration:Decoration:1.1.3'//gradle plugin 3.0(inclusive) above used
		//compile 'ckrjfrog.FlexItemDecoration:Decoration:1.1.3'//gradle plugin 3.0 below used
	}

Function And Use

1.DividerGridItemDecoration

		DividerGridItemDecoration.Builder builder = new DividerGridItemDecoration.Builder(context,orientation,SPAN_COUNT);
		builder.setDivider(R.drawable.bg_divider_list)//set the drawable of the dividing line
		       .setShowOtherStyle(false)
		       .removeHeaderDivider(false)
                       .removeFooterDivider(false)
                       .removeLeftDivider(false)
                       .removeRightDivider(false)
		       .subDivider(1, 4)//custom multiple lines
                       .setSubDividerHeight(24)//valid in vertical direction
                       .setSubDividerWidth(24)//valid in horizontal direction
                       .setSubDividerDrawable(R.drawable.bg_divider_offset_grid)//set the drawable of the multiple dividing lines
		       .redrawDivider(2)//custom any one of the dividing lines(exclude the head,bottom,leftmost,rightmost dividing line)
                       .redrawDividerHeight(30)//valid in vertical direction
		       .redrawDividerWidth(30)//valid in horizontal direction
                       .redrawDividerDrawable(R.drawable.bg_divider_redraw_grid)//set the drawable of the dividing line
		       .redrawHeaderDivider()//custom the head dividing line,valid in vertical direction
                       .redrawHeaderDividerHeight(40)
                       .redrawHeaderDividerDrawable(R.drawable.bg_divider_offset_grid);
		       .redrawFooterDivider()//custom the bottom dividing line,valid in vertical direction
                       .redrawFooterDividerHeight(40)
                       .redrawFooterDividerDrawable(R.drawable.bg_divider_offset_grid)
		       .redrawLeftDivider()//custom the leftmost dividing line,valid in horizontal direction
                       .redrawLeftDividerWidth(40)
                       .redrawLeftDividerDrawable(R.drawable.bg_divider_list)
		       .redrawRightDivider()//custom the rightmost dividing line,valid in horizontal direction
                       .redrawRightDividerWidth(40)
                       .redrawRightDividerDrawable(R.drawable.bg_divider_list);
		recyclerView.addItemDecoration(builder.build());

2.DividerLinearItemDecoration

		DividerLinearItemDecoration.Builder builder = new DividerLinearItemDecoration.Builder(context, orientation);//orientation:方向
		builder.setDivider(R.drawable.bg_divider_list)//set the drawable of the dividing line
                       .removeHeaderDivider(false)//valid in vertical direction
                       .removeFooterDivider(false)//valid in vertical direction
                       .removeLeftDivider(false)//valid in horizontal direction
                       .removeRightDivider(false)//valid in horizontal direction
		       .subDivider(1, 4);//custom multiple lines
		       .setSubDividerHeight(24)//valid in vertical direction
                       .setSubDividerWidth(24)//valid in horizontal direction
                       .setSubDividerDrawable(R.drawable.bg_divider_offset)
		       .redrawDivider(2)//custom any one of the dividing lines(exclude the head,bottom,leftmost,rightmost dividing line)
                       .redrawDividerHeight(30)//valid in vertical direction
		       .redrawDividerWidth(30)//valid in horizontal direction
                       .redrawDividerDrawable(R.drawable.bg_divider_redraw)
		       .redrawHeaderDivider()//custom the head dividing line,valid in vertical direction
                       .redrawHeaderDividerHeight(40)
                       .redrawHeaderDividerDrawable(R.drawable.bg_divider_offset);
		       .redrawFooterDivider()//custom the bottom dividing line,valid in vertical direction
                       .redrawFooterDividerHeight(40)
                       .redrawFooterDividerDrawable(R.drawable.bg_divider_offset)
		       .redrawLeftDivider()//custom the leftmost dividing line,valid in horizontal direction
                       .redrawLeftDividerWidth(40)
                       .redrawLeftDividerDrawable(R.drawable.bg_divider_list)
		       .redrawRightDivider()custom the rightmost dividing line,valid in horizontal direction
                       .redrawRightDividerWidth(40)
                       .redrawRightDividerDrawable(R.drawable.bg_divider_list);
		recyclerView.addItemDecoration(builder.build());

My Other Project

PageRecyclerView

CollapsingRefresh

License

Copyright 2018 ckrgithub

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].