All Projects → vivian8725118 → Timeline

vivian8725118 / Timeline

瀑布流式的时间轴

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Timeline

TimelineView
A customizable and easy-to-use Timeline View library for Android. Works as a RecyclerView decorator (ItemDecoration)
Stars: ✭ 169 (-91.67%)
Mutual labels:  timeline, recyclerview, itemdecoration
SpacingItemDecoration
ItemDecoration for RecyclerView that allows you to set spacing between and around list items in flexible way.
Stars: ✭ 83 (-95.91%)
Mutual labels:  recyclerview, itemdecoration
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (-63.12%)
Mutual labels:  customview, recyclerview
Android-RecyclerView-Loadmore
RecyclerView Loadmore and Swipe refresh for LinearLayout GridLayout and StaggeredLayout
Stars: ✭ 27 (-98.67%)
Mutual labels:  recyclerview, staggeredgridlayoutmanager
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 (-97.93%)
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 (-97.44%)
Mutual labels:  recyclerview, itemdecoration
epg magic carousel
Awesome RecyclerView with custom LayoutManager
Stars: ✭ 98 (-95.17%)
Mutual labels:  recyclerview, customview
StickyHeader
A simple lightweight sticky header ItemDecorator for RecyclerView
Stars: ✭ 108 (-94.67%)
Mutual labels:  recyclerview, itemdecoration
Timeline View
Android Timeline View is used to display views like Tracking of shipment/order, steppers etc.
Stars: ✭ 3,553 (+75.2%)
Mutual labels:  recyclerview, timeline
Featuredrecyclerview
Ultimate recycler view.
Stars: ✭ 872 (-57%)
Mutual labels:  customview, recyclerview
Codeeditor
Code Editor Native Way
Stars: ✭ 155 (-92.36%)
Mutual labels:  customview
Inboxrecyclerview
Build expandable descendant navigation, inspired by Google Inbox
Stars: ✭ 1,953 (-3.7%)
Mutual labels:  recyclerview
Kvkcalendar
A most fully customization calendar and timeline library for iOS 📅
Stars: ✭ 160 (-92.11%)
Mutual labels:  timeline
Wcstimeline
Simple timeline with data model.
Stars: ✭ 165 (-91.86%)
Mutual labels:  timeline
Customtvrecyclerview
Stars: ✭ 154 (-92.41%)
Mutual labels:  recyclerview
Easyadapter
Android 轻量级适配器,简化使用,适应所有的AbsListView、RecyclerView。支持HeaderView与FooterView~
Stars: ✭ 160 (-92.11%)
Mutual labels:  recyclerview
Flutter app
🔥🔥🔥本项目包括各种基本控件使用(Text、TextField、Icon、Image、Listview、Gridview、Picker、Stepper、Dialog、Slider、Row、Appbar、Sizebox、BottomSheet、Chip、Dismissible、FlutterLogo、Check、Switch、TabBar、BottomNavigationBar、Sliver等)、豆瓣电影、tubitv、每日一文、和天气、百姓生活、随机诗词、联系人、句子迷、好奇心日报、有道精品课、高德定位、音乐播放器🎵、追书神器等板块
Stars: ✭ 2,140 (+5.52%)
Mutual labels:  timeline
Android List To Grid
Implementation of List to Grid: Icon Transition
Stars: ✭ 147 (-92.75%)
Mutual labels:  recyclerview
Circleview
Create circular view in android (change color, border & shadow) ⚫
Stars: ✭ 147 (-92.75%)
Mutual labels:  customview
Android Collectiondemo
集合了多个框架编译的demo,GreenDao数据库、网络访问、recyclerview、Lottie动画等
Stars: ✭ 166 (-91.81%)
Mutual labels:  recyclerview

TimeLine

This project aims to provide a easy way to use Staggered TimeLine implementation.

中文版文档

Provide the gradle dependency

  implementation 'com.vivian.widgets:TimeLineItemDecoration:1.5'

Usage

If you want to use this TimeLine in your project, you have to do the following.

  • Set the StaggeredGridLayoutManager to your RecyclerView
mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));
mRecyclerView.addItemDecoration(new ItemDecoration(this, 100));

The second ctor-parameter will define the distance. In that case 100px.

Currently there are 2 styles available, as seen in the Screenshots. You can find the implementation for the second style here. DotItemDecoration.java

DotItemDecoration mItemDecoration = new DotItemDecoration
                .Builder(this)
                .setOrientation(DotItemDecoration.VERTICAL)//if you want a horizontal item decoration,remember to set horizontal orientation to your LayoutManager
                .setItemStyle(DotItemDecoration.STYLE_DRAW)//choose to draw or use resource
                .setTopDistance(20)//dp
                .setItemInterVal(10)//dp
                .setItemPaddingLeft(10)//default value equals to item interval value
                .setItemPaddingRight(10)//default value equals to item interval value
                .setDotColor(Color.WHITE)
                .setDotRadius(2)//dp
                .setDotPaddingTop(0)
                .setDotInItemOrientationCenter(false)//set true if you want the dot align center
                .setLineColor(Color.RED)//the color of vertical line
                .setLineWidth(1)//dp
                .setEndText("END")//set end text
                .setTextColor(Color.WHITE)
                .setTextSize(10)//sp
                .setDotPaddingText(2)//dp.The distance between the last dot and the end text
                .setBottomDistance(40)//you can add a distance to make bottom line longer
                .create();

if you want to do something according to the column of span,implements SpanIndexListener of this project SpanIndexListener.

mItemDecoration.setSpanIndexListener(new SpanIndexListener() {
        @Override
        public void onSpanIndexChange(View view, int spanIndex) {
           view.setBackgroundResource(spanIndex == 0 ? R.drawable.pop_left : R.drawable.pop_right);
        }
});

Example

Contact

If you have any problem with this,you can add my wechat:vivian8725118,or email me:[email protected]/[email protected]. I'll reply you when I saw it.

License

Copyright 2017 Vivian

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