Code Monkey home page Code Monkey logo

leaqi / swipedrawer Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 13.0 17.17 MB

Android SwipeDrawer滑动抽屉库,支持上下左右四个方向,打开模式有抽屉、覆盖、固定三种,支持无限嵌套、边缘滑动等,SwipeDrawer还可以用来做下拉刷新,支持ListView、RecyclerView、GridView、ScrollView等。

Home Page: https://leaqi.github.io/SwipeDrawer

License: Apache License 2.0

Java 100.00%
android drag drawer java layout swipe swipedrawer view viewgroup

swipedrawer's People

Contributors

leaqi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

swipedrawer's Issues

设置把手handle

您好!请问怎么设置把手handle,用于拖动上下拉之类的

设置把手问题

你好,我通过1.5版本新加入的app:bottomOffset="50dp"功能设置拖曳把手,一切如预期效果。
但是发现一个问题,就是一个页面如果有多个方向的抽屉,那么在拖曳其他方向时,有把手方向上的抽屉会带着把手一起完全隐藏,就意味着app:bottomOffset="50dp"属性效果失效了,然而点击遮挡层关闭时,是会把把手露出在主页面的。请教请教,谢谢!!!

滚动问题

NestedScrollView 套 recycler。 recycler在往下滑的过程中会和下拉刷新手势有冲突

默认关闭

大佬,我实在没找到哪里设置默认关闭,都是默认打开的。在onCreate里面调用了closeDrawer(),也没有关闭。

能否支持抽屉自动隐藏

我现在做法不是很优雅

  1. 在 setOnDrawerSwitch -> onOpen 里开启定时器,超时则关闭抽屉
  2. leftLayout 用自定义的 LinearLayout 类,在 onDispatchTouch 事件中增加一个回调,遇到 ACTION_UP 或者 ACTION_CANCEL 则复位定时器

给作者点个赞

项目不仅优秀,而且文档很详细,给使用者很大的帮助。

强制手机横屏,view显示异常

手机在竖屏情况下没有问题,但是强制设置手机为横屏情况,这个view就只会显示一半了(可能跟手机的分辨率有关系)

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.