{"id":21130307,"url":"https://github.com/soarcn/UndoBar","last_synced_at":"2025-07-09T01:33:07.174Z","repository":{"id":6536711,"uuid":"7777968","full_name":"soarcn/UndoBar","owner":"soarcn","description":"[Deprecated] Android Library that implements Snackbars (former known as Undobar) from Google's Material Design documentation.","archived":true,"fork":false,"pushed_at":"2015-07-02T11:40:33.000Z","size":1852,"stargazers_count":575,"open_issues_count":1,"forks_count":130,"subscribers_count":31,"default_branch":"master","last_synced_at":"2023-10-25T19:06:22.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://soarcn.github.io/UndoBar","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soarcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-23T15:57:09.000Z","updated_at":"2023-09-08T16:37:18.000Z","dependencies_parsed_at":"2022-09-13T08:31:50.779Z","dependency_job_id":null,"html_url":"https://github.com/soarcn/UndoBar","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarcn%2FUndoBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarcn%2FUndoBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarcn%2FUndoBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarcn%2FUndoBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soarcn","download_url":"https://codeload.github.com/soarcn/UndoBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476370,"owners_count":17480215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T05:32:35.514Z","updated_at":"2024-11-20T05:32:42.906Z","avatar_url":"https://github.com/soarcn.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"UndoBar\n=======\n[![Build Status](https://travis-ci.org/soarcn/UndoBar.svg?branch=master)](https://travis-ci.org/soarcn/UndoBar)\n\nThis lib is deprecated in favor of Google's Design Support Library which includes a Snackbar and is no longer being developed.\n\nThanks for all your support!\n\n\nAndroid Library that implements Snackbars (former known as Undobar) from Google's Material Design documentation.\n\n![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/kitkat.png?raw=true)\n![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/redo.png?raw=true)\n![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/refresh.png?raw=true)\n![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/customize.png?raw=true)\n![UndoBar Sample](https://github.com/soarcn/UndoBar/blob/master/art/material.png?raw=true)\n\n\nHow to use this library\n=======\n\n- Download this library, import to your IDE (eclipse...) as a library project.\n- Using Gradle(from 0.5)\n\n    ```groovy\n    compile 'com.cocosw:undobar:1.+@aar' \n    ```\n- Using Maven\n\n    ```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.cocosw\u003c/groupId\u003e\n        \u003cartifactId\u003eundobar\u003c/artifactId\u003e\n        \u003cversion\u003e*\u003c/version\u003e\n        \u003ctype\u003eapklib\u003c/type\u003e\n    \u003c/dependency\u003e\n    ```\n\nAPI\n=======\n\n- You can also use UndoBar with builder style.\n\n    ``` java\n    new UndoBar(getActivity()).message(\"Undo-bar title\").listener(listener).show();\n    ```\n- Or you can use UndoBar by just one line code (Deprecated from 1.4)\n    \n    ``` java\n    UndoBarController.show(getActivity(), \"Undo-bar title\" , listener, undoToken);\n    ```\n\n- UndoBar support customize style with background/icon/duration/animation attribution.\n\n- UndoBar will determine if tranlucent mode(4.4) is using and adjust its position.\n\n\nStyle\n========\n\n- UndoBar provides 3 default styles. You can use them for different purposes like undo,refresh, or just use it as replacement of toasts.\n For example, you can use retry style in this way.\n\n    ``` java\n    new UndoBarController.UndoBar(this).message(loader.getException().getMessage()).style(UndoBarController.RETRYSTYLE).listener(this).show();\n    ```\n\n- UndoBar will switch to KitKat L\u0026F in API-19 target and Material design in API20+.\n- 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.\n\n    ```xml\n    \u003cstyle name=\"MaterialTheme\" parent=\"android:Theme.Light\"\u003e\n        \u003citem name=\"undoBarStyle\"\u003e@style/UndoBarMaterialStyle\u003c/item\u003e\n    \u003c/style\u003e\n    ```\n\n- You can change undobar style completely by define your own style\n\n    ```xml\n        \u003cstyle name=\"UndoBarClassicStyle\"\u003e\n            \u003citem name=\"containerStyle\"\u003e@style/UndoBarClassic\u003c/item\u003e\n            \u003citem name=\"messageStyle\"\u003e@style/UndoBarMessageClassic\u003c/item\u003e\n            \u003citem name=\"buttonStyle\"\u003e@style/UndoBarButtonClassic\u003c/item\u003e\n            \u003citem name=\"dividerStyle\"\u003e@style/UndoBarDividerClassic\u003c/item\u003e\n            \u003citem name=\"inAnimation\"\u003e@anim/undobar_classic_in_anim\u003c/item\u003e\n            \u003citem name=\"outAnimation\"\u003e@anim/undobar_classic_out_anim\u003c/item\u003e\n        \u003c/style\u003e\n    ```\n\nAdvanced usage\n======\n\n- Using UndoBarController.AdvancedUndoListener if you need to get notification when UndoBar was cleared or hidden.\n- UndoBar is designed to dynamically add to activity viewgroup, so you need to handle screen-rotation by your self. Check [this](https://github.com/soarcn/UndoBar/blob/master/example/src/com/cocosw/undobar/example/SnackBar.java) example to see more.\n\n\nContribute\n=======\n\n- Feel free to fork it\n\n\nLicense\n=======\n\n    Copyright 2011, 2015 Kai Liao\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoarcn%2FUndoBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoarcn%2FUndoBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoarcn%2FUndoBar/lists"}