Giter Site home page Giter Site logo

crazyscrambler / timeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ditclear/timeline

0.0 2.0 0.0 3.59 MB

ExpandableListView做的android时间轴,child有左右滑动的效果并进行相关的操作(如:编辑、删除、置顶等)

Java 100.00%

timeline's Introduction

TimeLine

android时光轴(ExpandableListView),包含child的滑动效果

同时,在这里也推荐我的另一个库MVPTimeLine

使用listView做的android 时间轴,项目使用了MVP架构,想要了解MVP的朋友也可以star和fork下,代码少很容易学习,包含了下拉刷新操作

###自定义属性

attr type default meaning
need_offset float 0.2f 最小需要滑动的距离
click_to_open boolean false 点击展开
click_to_close boolean false 点击关闭

因为很少有ExpandableListviewchild滑动的例子加上做app时的需要,也就有了这个库,简单来说就是将child的布局换为SwipeDragLayout,然后在adpter中设置click事件。主要的代码在上边。

效果可以下载app看一下,有用的话不妨star一下

timeline's People

Contributors

ditclear avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.