Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedromassango/IBackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
https://github.com/pedromassango/IBackdrop
android android-app android-application android-architecture android-development android-library android-sdk android-studio android-ui androidstudio backdrop jetpack jetpack-sharebutton kotlin-library material material-components material-design material-theme material-ui sdk-android
Last synced: 3 months ago
JSON representation
A library to simply use Backdrop in your project (make it easy). Read more ->
- Host: GitHub
- URL: https://github.com/pedromassango/IBackdrop
- Owner: pedromassango
- License: apache-2.0
- Created: 2018-07-06T14:24:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T22:24:02.000Z (about 5 years ago)
- Last Synced: 2024-06-16T02:42:09.780Z (5 months ago)
- Topics: android, android-app, android-application, android-architecture, android-development, android-library, android-sdk, android-studio, android-ui, androidstudio, backdrop, jetpack, jetpack-sharebutton, kotlin-library, material, material-components, material-design, material-theme, material-ui, sdk-android
- Language: Kotlin
- Homepage: https://blog.usejournal.com/android-material-design-components-backdrop-96a3044a3b2
- Size: 1.51 MB
- Stars: 138
- Watchers: 5
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-material-design - IBackdrop - Kotlin Material Backdrop (Android / Components)
README
# IBackdrop
[![](https://jitpack.io/v/pedromassango/IBackdrop.svg)](https://jitpack.io/#pedromassango/IBackdrop)A library to setup a backdrop component in your project since for now there is no a easy way to implement that in our project. Words from official material link: "A backdrop appears behind all other surfaces in an app, displaying contextual and actionable content". Here is an example of what you get using this library:
## Requirements
- Android API level 16 or greater
- Your favorite IDE## Setting up
*Current version:* [![](https://jitpack.io/v/pedromassango/IBackdrop.svg)](https://jitpack.io/#pedromassango/IBackdrop)
Gradle:
Step 1. Add the JitPack repository to your build file.
Add it in your root build.gradle at the end of repositories:
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
...
}
}
```Step 2. Adding Dependency
```groovy
dependencies {
...
implementation 'com.github.pedromassango:IBackdrop:CURRENT-VERSION'
...
}
```Maven:
Step 1. Register jitpack.io
```xml
jitpack.io
https://jitpack.io
```
Step 2. Add the dependency
```xml
com.github.pedromassango
IBackdrop
CURRENT-VERSION```
### Basic usage
I wrote a step by step for how to use this library on Medium, follow the link:
https://blog.usejournal.com/android-material-design-components-backdrop-96a3044a3b2### TODO
- [x] Handle Device Orientation Changes (you can set it in your manifest's activity tag)
- [x] Call Toolbar via XML (by reference)
- [x] Set a custom animation duration
- [x] Set a custom backdrop view size
- [ ] set Inactive state to front layer when the back layer is visible (grey the layer)#### :heart: Star :heart: the repo to support the project or :smile:[Follow Me](https://github.com/pedromassango).Thanks!
[![Twitter Follow](https://img.shields.io/twitter/follow/pedromassangom.svg?style=social&label=Follow)](https://twitter.com/pedromassangom)