Skip to content
forked from soarcn/UndoBar

The UI component for Android advanced UI pattern undo-bar, used in Gmail app, create by roman nurik

Notifications You must be signed in to change notification settings

heavyplayer/UndoBar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UndoBar

This is a implementation for Android advanced UI pattern undo-bar, used in Gmail app, create by roman nurik

UndoBar was modify from Roman(@romannurik)'s undobar concept (https://code.google.com/p/romannurik-code/), and backport it to Android 2.x and make it easier to use

UndoBar Sample UndoBar Sample UndoBar Sample

How to use this libary

  • Download this libary, import to your IDE (eclipse...) as libary project.
  • You can also depend on the .jar through Maven:
<dependency>
    <groupId>com.cocosw</groupId>
    <artifactId>undobar</artifactId>
    <version>0.3</version>
    <type>apklib</type>
</dependency>

API

  • You can use UndoBar by just one line code
    UndoBarController.show(getActivity(), "Undo-bar title" , listener, undoToken);
  • UndoBar support customize style with backgroud/icon/duration attribution. libary provide 3 Style as default, you can use in different purpose like Undo,Refresh, or just use it as replacement of Toster

Contribute

  • Feel free to fork it

Other

  • Works perfect with Crouton/Menudrawer/ABS

License

Copyright 2011, 2012 Liao Kai

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

The UI component for Android advanced UI pattern undo-bar, used in Gmail app, create by roman nurik

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.0%
  • Groovy 1.0%