The Wayback Machine - https://web.archive.org/web/20200910003611/https://github.com/pedromassango/IBackdrop
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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:

Gradle:

Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
		...
	}
}

Step 2. Adding Dependency

dependencies {
        ...
	    implementation 'com.github.pedromassango:IBackdrop:CURRENT-VERSION'
	    ...
	}

Maven:

Step 1. Register jitpack.io

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>

Step 2. Add the dependency

<dependency>
    <groupId>com.github.pedromassango</groupId>
    <artifactId>IBackdrop</artifactId>
    <version>CURRENT-VERSION</version>
</dependency>

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

  • Handle Device Orientation Changes (you can set it in your manifest's activity tag)
  • Call Toolbar via XML (by reference)
  • Set a custom animation duration
  • Set a custom backdrop view size
  • set Inactive state to front layer when the back layer is visible (grey the layer)

❤️ Star ❤️ the repo to support the project or 😄Follow Me.Thanks!

Twitter Follow

You can’t perform that action at this time.