Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
soarcn committed Oct 7, 2014
1 parent 84dd997 commit 3f17901
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -9,6 +9,7 @@ UndoBar was modified from Roman(@romannurik)'s undobar concept (https://code.goo
![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/redo.png?raw=true)
![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/refresh.png?raw=true)
![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/customize.png?raw=true)
![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/material.png?raw=true)


How to use this library
Expand Down Expand Up @@ -40,12 +41,12 @@ API
- UndoBar provides 3 default styles. You can use them for different purposes like undo,refresh, or just use it as replacement of toasts.
- UndoBar will switch to KitKat look and feel in API-19 target and after.
- UndoBar will determine if tranlucent mode(4.4) is using and adjust its position.
- You can overwrite style in your project to change the look and feel. For example, you can use following lines in your style.xml to always use KitKat style UndoBar.
- You can set theme in your appliation to change the look and feel. For example, you can use following lines in your style.xml to always use material style UndoBar.

```xml
<style name="UndoBar" parent="UndoBarKitKat"/>
<style name="UndoBarMessage" parent="UndoBarMessageKitKat"/>
<style name="UndoBarButton" parent="UndoBarButtonKitKat"/>
<style name="MaterialTheme" parent="android:Theme.Light">
<item name="undoBarStyle">@style/UndoBarMaterialStyle</item>
</style>
```

Contribute
Expand Down
Binary file added art/material.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f17901

Please sign in to comment.