Git Product home page Git Product logo

mydrawer's Introduction

MyDrawer

手撸一个slidingdrawer简易库,实现基本功能

image

以下为自定义属性

<declare-styleable name="MyDrawer">
    <attr name="content" format="reference" /> //主体view  必须指定
    <attr name="drag" format="reference" />    //拖动view  必须指定
    <attr name="handler" format="reference" /> //手柄view  必须包含在drag里面,可以为空
    <attr name="isOpen" format="boolean" /> //是否打开     初始化的时候是否打开
    <attr name="dragtype"/> //拖动方向
</declare-styleable>


<attr name="dragtype">
    <enum name="left" value="0"/> //从左边滑出来
    <enum name="right" value="1"/> //从右边滑出来
    <enum name="top" value="2"/> //从顶部滑出来
    <enum name="bottom" value="3"/> //从底部滑出来
</attr>

回调函数 public interface MyDrawerListener{

      public void open(); //打开

      public void close(); //关闭

  }

mydrawer's People

Contributors

songpeng152 avatar wushaoge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mydrawer's Issues

MyDrawer控件问题反馈

你好,我用了你的控件,发现一个问题,如果content布局里包含有地图控件,滑动就会有问题,有抖动,没网络的时候更为明显,麻烦解答下这个问题的原因是什么呢?盼回复,谢谢!

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.