Code Monkey home page Code Monkey logo

slidingdrawerexample's Introduction

there are two branches:

1, master

this demo is from an opensource project : Android Misc Widgets (include SlidingDrawer, Breath Button, and etc)

you can clone the origin code by svn : http://android-misc-widgets.googlecode.com/svn/trunk


2, mike (only include the code and souces for SlidingDrawer) 


  Note One: the origin code (SlidingDrawer--Version1)have two bugs:

      1, blink, either when the panel is closed or click the handle
      
      2, when set <uses-sdk> in AndroidManifest.xml, when the panel is closed, click the handle, the handle will disappear.
      
      
  solution:
 
         http://blog.csdn.net/lovehong0306/article/details/7451264 (Updated to Version2)
         
      
  Note Two: the Version2 still have one bug:
          
      1, when use method panel.setOpen(true, true), the panel can not display animation, the user experence is very bad.
      

  solution:

        add separate animation for first opening panel. it's a workround solution. (Update to Version3)
        
        
        
------------------------"Animation"------------------------------

Now the code is updated to Version3, there are two types of the "animation".

1, stardard animation, when use method panel.setOpen(true, true), just run at the first time.

2, onTouchEvent()
       -----GestureDetector()
                ------PanelOnGestureListener()
                          ------onDown()
                          ------onFling()----------invalidate();  
                          ------onScroll()
                                              
                                        
        

           

        







slidingdrawerexample's People

Contributors

mikewang0326 avatar

Watchers

丁丫乙 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.