Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charbgr/BlurNavigationDrawer

Android - Blur Navigation Drawer like Etsy app.
https://github.com/charbgr/BlurNavigationDrawer

Last synced: about 6 hours ago
JSON representation

Android - Blur Navigation Drawer like Etsy app.

Awesome Lists containing this project

README

        

Blur Navigation Drawer Library[DEPRECATED]
=========================
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-BlurNavigationDrawer-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/874)

Blur Navigation Drawer like Etsy app.


Demo
====
You can download a demo [here](https://play.google.com/store/apps/details?id=com.charbgr.BlurNavigationDrawer.sample.app).

Updates
=======
- Version 1.1
* Add support for v7 Android Support Library.

How to Use
==========

Declare your layout
```xml

```
Or replace your default toggle with this awesome blurred toggle effect just by adding 4 letters !

For example:

```java
mDrawerToggle = new ActionBarDrawerToggle(
getActivity(), /* host Activity */
mDrawerLayout, /* DrawerLayout object */
R.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */
R.string.navigation_drawer_open, /* "open drawer" description for accessibility */
R.string.navigation_drawer_close /* "close drawer" description for accessibility */
);
```
to
```java
mDrawerToggle = new BlurActionBarDrawerToggle(
getActivity(), /* host Activity */
mDrawerLayout, /* DrawerLayout object */
R.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */
R.string.navigation_drawer_open, /* "open drawer" description for accessibility */
R.string.navigation_drawer_close /* "close drawer" description for accessibility */
);
```
and set your radius or your down scale factor
```java
mDrawerToggle.setRadius(15);
mDrawerToggle.setDownScaleFactor(6.0f);
```

and enjoy your blur effect!

Contributing
============
Feel free to fork it and pull request if you want to fix a bug ! ;)