# TopToBottomView **Repository Path**: xiaoxuandev/TopToBottomView ## Basic Information - **Project Name**: TopToBottomView - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-06-19 - **Last Updated**: 2021-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TopToBottomView 从上往下拉的抽屉效果 ## 先来张效果图 ![效果图](https://github.com/luchongbin/TopToBottomView/blob/master/gif/gif.gif) ## 使用说明: 1、Add the JitPack repository to your build file ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` 2、Add the dependency ``` dependencies { implementation 'com.github.luchongbin:TopToBottomView:v1.0.0' } ``` 3、使用的xml 实例如下: ``` //绑定Toolbar ``` 4、 在需要打开抽屉或者关闭抽屉的地方使用如下: ``` TopToBottomLayout mTopToBottomLayout = findViewById(R.id.sliding_down_toolbar_layout); mTopToBottomLayout.openPanel();//打开抽屉 mTopToBottomLayout.closePanel();//关闭抽屉 ``` ## License MIT License Copyright (c) 2018 卢崇斌 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.