{"id":18270183,"url":"https://github.com/romainpiel/Shimmer-android","last_synced_at":"2025-04-04T23:31:46.636Z","repository":{"id":14763740,"uuid":"17485132","full_name":"romainpiel/Shimmer-android","owner":"romainpiel","description":"(DEPRECATED) An Android TextView with a shimmering effect","archived":true,"fork":false,"pushed_at":"2016-10-10T13:28:38.000Z","size":311,"stargazers_count":1993,"open_issues_count":13,"forks_count":437,"subscribers_count":90,"default_branch":"master","last_synced_at":"2024-10-13T02:38:17.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/romainpiel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-03-06T16:54:23.000Z","updated_at":"2024-09-30T06:53:59.000Z","dependencies_parsed_at":"2022-09-22T15:41:56.417Z","dependency_job_id":null,"html_url":"https://github.com/romainpiel/Shimmer-android","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainpiel%2FShimmer-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainpiel%2FShimmer-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainpiel%2FShimmer-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainpiel%2FShimmer-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romainpiel","download_url":"https://codeload.github.com/romainpiel/Shimmer-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"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-05T11:38:23.184Z","updated_at":"2025-04-04T23:31:45.959Z","avatar_url":"https://github.com/romainpiel.png","language":"Java","readme":"# Shimmer for Android\n\nThis library is DEPRECATED, as I don't have time to mainatin it anymore. But feel free to go through the code and copy that into your project, it still does its job.\n\nShimmer-android is an Android port of [Facebook Shimmer library for iOS](https://github.com/facebook/Shimmer).\n\n[![ScreenShot](shimmer.gif)](http://youtu.be/7EOsegp4J2o)\n\n[http://youtu.be/7EOsegp4J2o](http://youtu.be/7EOsegp4J2o)\n\nExamples of usage:\n- show a loading indicator\n- show a highlighted `TextView`.\n\n## How to use\n\nGradle dependency:\n```groovy\ncompile 'com.romainpiel.shimmer:library:1.4.0@aar'\n```\n\nAdd a `ShimmerTextView` to your layout:\n```xml\n\u003ccom.romainpiel.shimmer.ShimmerTextView\n    android:id=\"@+id/shimmer_tv\"\n    android:text=\"@string/shimmer\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:textColor=\"#444\"\n    android:textSize=\"50sp\"/\u003e\n```\n\nTo start the animation:\n```java\nshimmer = new Shimmer();\nshimmer.start(myShimmerTextView);\n```\n\nYou may want to keep track of the shimmer instance after the animation is started if you want to stop it.\n\nTo stop it:\n```java\nshimmer.cancel();\n```\n\n## Customization\n\n### Customizing the view\n\nYou can change the color of the reflection using the custom attribute `reflectionColor`:\n\n```xml\n\u003ccom.romainpiel.shimmer.ShimmerTextView\n    android:id=\"@+id/shimmer_tv\"\n    android:text=\"@string/shimmer\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:textColor=\"#444\"\n    android:textSize=\"50sp\"\n    app:reflectionColor=\"#f00\"/\u003e\n```\n\n### Customizing the animation\n\nThe animation can be tweaked like a usual `ObjectAnimator`:\n```java\n// DON'T COPY THIS CODE TO YOUR PROJECT! It is just an example\nshimmer.setRepeatCount(0)\n    .setDuration(500)\n    .setStartDelay(300)\n    .setDirection(Shimmer.ANIMATION_DIRECTION_RTL)\n    .setAnimatorListener(new Animator.AnimatorListener(){});\n```\n\n### Custom Shimmer view\n\nShimmer also includes a [`ShimmerButton`](https://github.com/RomainPiel/Shimmer-android/blob/master/library/src/main/java/com/romainpiel/shimmer/ShimmerButton.java). It works exactly the same way as a `ShimmerTextView`.\nHave a look at how it's implemented and you can apply the same effect on your custom view if you need it.\n\n## Sample\n\nSee the [sample](https://github.com/RomainPiel/Shimmer-android/tree/master/sample) for a common use of this library.\n\n## License\n```\nCopyright 2014 Romain Piel\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromainpiel%2FShimmer-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromainpiel%2FShimmer-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromainpiel%2FShimmer-android/lists"}