{"id":18925838,"url":"https://github.com/michael-rapp/androidmaterialviews","last_synced_at":"2026-03-01T08:34:16.310Z","repository":{"id":57721481,"uuid":"44245095","full_name":"michael-rapp/AndroidMaterialViews","owner":"michael-rapp","description":"Provides views that are part of the Material Design guidelines","archived":false,"fork":false,"pushed_at":"2019-02-23T18:42:21.000Z","size":9270,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T22:06:29.945Z","etag":null,"topics":["android","chip","floatingactionbutton","material-design","progress-bar","view"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michael-rapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-14T12:07:08.000Z","updated_at":"2021-04-03T07:56:43.000Z","dependencies_parsed_at":"2022-09-26T21:41:29.795Z","dependency_job_id":null,"html_url":"https://github.com/michael-rapp/AndroidMaterialViews","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialViews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialViews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialViews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-rapp%2FAndroidMaterialViews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-rapp","download_url":"https://codeload.github.com/michael-rapp/AndroidMaterialViews/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249080267,"owners_count":21209497,"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":["android","chip","floatingactionbutton","material-design","progress-bar","view"],"created_at":"2024-11-08T11:13:36.457Z","updated_at":"2026-03-01T08:34:16.269Z","avatar_url":"https://github.com/michael-rapp.png","language":"Java","readme":"# AndroidMaterialViews - README\n\n[![API-Level](https://img.shields.io/badge/API-14%2B-orange.svg)](https://android-arsenal.com/api?level=14) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X75YSLEJV3DWE)\n\n\"AndroidMaterialViews\" is an Android-library, which provides various views, which are part of Android's Material Design guidelines, but which are not provided by the official Android SDK. The library's views can also be used on pre-Lollipop \ndevices.\n\n![](doc/images/example.png)\n\nThe library provides the following views:\n\n- A `CircularProgressBar`, which allows to visualize an indeterminate progress as an animated circle.\n- A `FloatingActionButton`, which is a round, colored button with a shadow and an icon. The button supports to become shown or hidden in an animated manner.\n- A `Chip`, which acts like a tag, containing a text and optionally an icon and a close button.\n\n## License Agreement\n\nThis project is distributed under the Apache License version 2.0. For further information about this license agreement's content please refer to its full version, which is available at http://www.apache.org/licenses/LICENSE-2.0.txt.\n\nPrior to version 2.0.1 this library was distributed under the GNU Lesser General Public License version 3.0 (GLPLv3).\n\n## Download\n\nThe latest release of this library can be downloaded as a zip archive from the download section of the project's Github page, which is available [here](https://github.com/michael-rapp/AndroidMaterialViews/releases). Furthermore, the library's source code is available as a Git repository, which can be cloned using the URL https://github.com/michael-rapp/AndroidMaterialViews.git.\n\nAlternatively, the library can be added to your Android app as a Gradle dependency by adding the following to the respective module's `build.gradle` file:\n\n```groovy\ndependencies {\n    compile 'com.github.michael-rapp:android-material-views:3.0.1'\n}\n```\n\nBefore version 2.0.0 this project was hosted on [Sourceforge](https://sourceforge.net/projects/androidmaterialviews). These older versions used the legacy Eclipse ADT folder structure and are not available as Gradle artifacts.\n\n## Examples\n\nThe following examples provide a quick overview on how to use the views, which are provided by the library, in your own Android app. This project also contains the source code of an example app, which implements an use case of the library for demonstration purposes, as well as a more detailed documentation in the [Wiki](https://github.com/michael-rapp/AndroidMaterialViews/wiki) and auto-generated javadoc files.\n\n### CircularProgressBar\n\nThe XML code below shows how the view `CircularProgressBar` can be added to a XML layout resource. This example contains all of the view's custom attributes.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    android:layout_width=\"match_parent\" \n    android:layout_height=\"match_parent\" \u003e\n\n    \u003cde.mrapp.android.view.CircularProgressBar \n        android:id=\"@+id/circular_progress_bar\" \n        android:layout_width=\"@dimen/circular_progress_bar_size_normal\" \n        android:layout_height=\"@dimen/circular_progress_bar_size_normal\" \n        android:color=\"@color/circular_progress_bar_color\" \n        android:thickness=\"@dimen/circular_progress_bar_thickness_normal\" /\u003e \n\n\u003c/RelativeLayout\u003e\n```\n\n### FloatingActionButton\n\nThe following example demonstrates how a `FloatingActionButton` can be declared within a XML layout resource. The example contains all of the view's custom attributes.\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \n    android:layout_width=\"match_parent\" \n    android:layout_height=\"match_parent\" \u003e\n\n    \u003cde.mrapp.android.view.FloatingActionButton \n        android:id=\"@+id/floating_action_button\" \n        android:layout_width=\"wrap_content\" \n        android:layout_height=\"wrap_content\" \n        android:color=\"@color/floating_action_button_color\" \n        android:icon=\"@drawable/floating_action_button_icon\" \n        custom:size=\"normal\" \n        custom:activatedColor=\"@color/floating_action_button_activated_color\" \n        custom:pressedColor=\"@color/floating_action_button_pressed_color\" \n        custom:disabledColor=\"@color/floating_action_button_disabled_color\" \n        custom:visibilityAnimationDuration=\"500\" /\u003e \n\n\u003c/RelativeLayout\u003e\n```\n\n## Chip\n\nThe following XML code shows how a `Chip` can be added to a XML resource. The example contains a text as well as an icon and a close button. By using a Chip's `addCloseListener`-method, listeners can be registered to be notified when a chip has been closed.\n\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" \n    xmlns:custom=\"http://schemas.android.com/apk/res-auto\" \n    android:layout_width=\"match_parent\" \n    android:layout_height=\"match_parent\" \u003e\n\n    \u003cde.mrapp.android.view.Chip \n        android:id=\"@+id/chip\" \n        android:layout_width=\"wrap_content\" \n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/chip_text\"\n        android:color=\"@color/chip_color_\" \n        android:icon=\"@drawable/chip_icon\" /\u003e \n\n\u003c/RelativeLayout\u003e\n```\n\nIf a dark theme should be used by a `Chip`, this can be achieved by adding a `style`-tag like shown in the following:\n\n```xml\n\u003cde.mrapp.android.view.Chip \n    style=\"@style/Chip\"\n    ...\n```\n\n## Contact information\n\nFor personal feedback or questions feel free to contact me via the mail address, which is mentioned on my [Github profile](https://github.com/michael-rapp). If you have found any bugs or want to post a feature request please use the [bugtracker](https://github.com/michael-rapp/AndroidMaterialViews/issues) to report them.\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=X75YSLEJV3DWE"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rapp%2Fandroidmaterialviews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-rapp%2Fandroidmaterialviews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-rapp%2Fandroidmaterialviews/lists"}