Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kishan2612/Material-Backdrop-Android
Material Backdrop
https://github.com/kishan2612/Material-Backdrop-Android
android android-architecture android-development android-library android-ui backdrop layout material-components material-design material-design-2 material-ui navigation-bar navigation-drawer navigation-menus navigationview
Last synced: 3 months ago
JSON representation
Material Backdrop
- Host: GitHub
- URL: https://github.com/kishan2612/Material-Backdrop-Android
- Owner: kishan2612
- License: mit
- Created: 2018-07-25T08:03:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T12:40:37.000Z (about 4 years ago)
- Last Synced: 2024-07-04T06:18:33.252Z (4 months ago)
- Topics: android, android-architecture, android-development, android-library, android-ui, backdrop, layout, material-components, material-design, material-design-2, material-ui, navigation-bar, navigation-drawer, navigation-menus, navigationview
- Language: Java
- Homepage:
- Size: 307 KB
- Stars: 106
- Watchers: 7
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-material-design - Material-Backdrop-Android - Andother material backdrop for android (Android / Components)
README
# Material-Backdrop-Android
### This library is created based on Backdrop component from material design.[Backdrop](https://material.io/design/components/backdrop.html)
![alt text](https://github.com/kishan2612/Material-DropView-Android/blob/master/images/backdrop1.png)
![alt text](https://github.com/kishan2612/Material-DropView-Android/blob/master/images/backdrop2.png)### Usage
1. Include repository
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
2. Include project as local library
```
dependencies {
implementation 'com.github.kishan2612:Material-Backdrop-Android:v1.1.0'
}
```
3. Include the widget in your layout```
```
### The container must contain only two child or it may throw an Exception.
The developer can customize the backlayer and frontlayer of their choice. Use public methods to show and hide the backlayer.4. In onCreate method
```
backdropContainer =(BackdropContainer)findViewById(R.id.backdropcontainer);backdropContainer.attachToolbar(toolbar)
.dropInterpolator(new LinearInterpolator())
.dropHeight(height)
.build();
```### Customization
app:menuIcon="@drawable/ic_menu_24px" - You can use your own icon or app logo
app:closeIcon="@drawable/ic_close_24px" - You can use your own icon or app logo
app:duration="500" - default duration is 1000ms if duration is not specified
dropInterpolator(new LinearInterpolator()) - You can use own interpolator
dropHeight(height) - The height is sneek height of front layer.(Dp)
eg :
```
int height= this.getResources().getDimensionPixelSize(R.dimen.sneek_height);
```
### Public Methods
```
backdropContainer.showBackview();
backdropContainer.closeBackview();
```
### CompatabiliyApi 16+
## ChangeLog
#### V1.1 :
crash fixed.
# License```
MIT LicenseCopyright (c) 2018 kishan V
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.
```