Giter Site home page Giter Site logo

0359xiaodong / bottombardrawer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martinrajniak/bottombardrawer

0.0 2.0 0.0 580 KB

BottomBarDrawerLayout acts as a top-level container for window content that allows for interactive "drawer" view to be pulled out from the bottom edge of the window. This version of drawer is working with always visible part of the drawer that serves as bar that when dragged or touched performs open/close operation.

bottombardrawer's Introduction

BottomBarDrawer

BottomBarDrawerLayout acts as a top-level container for window content that allows for interactive "drawer" view to be pulled out from the bottom edge of the window. This version of drawer is working with always visible part of the drawer that serves as bar that when dragged or touched performs open/close operation.

The code is mostly based on the DrawerLayout class from the Android support library v4 API.

DrawerLayout was rewritten to support vertical scrolling of drawer view, specifically to allow users to drag views from bottom to top. The idea is based on the Google play music Android application that allows opening the mostly hidden drawer view from the bottom by dragging its visible content to the top. In the music app it is used to display current play list and to manage music controller.

As in Google play music this layout support these features:

  • setting a visible content that is draggable by user from bottom to top
  • fading the main content when drawer view is being opened
  • clearing out the drawer view content when drawer is being opened
  • allowing to open and close drawer view by either tapping on the visible content or by dragging the view

Developed By

License

Copyright 2013 Martin Rajniak

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.

bottombardrawer's People

Contributors

martinrajniak avatar

Watchers

James Cloos 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.