{"id":21174841,"url":"https://github.com/mindinventory/shimmertextview","last_synced_at":"2025-07-09T21:31:18.873Z","repository":{"id":50330010,"uuid":"513454914","full_name":"Mindinventory/ShimmerTextView","owner":"Mindinventory","description":"ShimmerTextView is a simple library to integrate shimmer effect in your TextView.","archived":false,"fork":false,"pushed_at":"2024-03-27T12:28:59.000Z","size":2084,"stargazers_count":32,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-03-28T08:51:16.402Z","etag":null,"topics":["android","android-application","androidlibrary","animation","animation-library","shimmer","shimmer-android","shimmer-animation","shimmer-effect","shimmer-layout","shimmer-loading","shimmer-text-view","textview-android"],"latest_commit_sha":null,"homepage":"https://www.mindinventory.com/android-application-development.php","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mindinventory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-07-13T09:14:34.000Z","updated_at":"2024-03-22T06:35:03.000Z","dependencies_parsed_at":"2024-03-26T08:37:32.095Z","dependency_job_id":"93973aa5-11c5-4860-9d96-809e53b3bb4e","html_url":"https://github.com/Mindinventory/ShimmerTextView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2FShimmerTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2FShimmerTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2FShimmerTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindinventory%2FShimmerTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mindinventory","download_url":"https://codeload.github.com/Mindinventory/ShimmerTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225597409,"owners_count":17494149,"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","android-application","androidlibrary","animation","animation-library","shimmer","shimmer-android","shimmer-animation","shimmer-effect","shimmer-layout","shimmer-loading","shimmer-text-view","textview-android"],"created_at":"2024-11-20T16:56:24.204Z","updated_at":"2024-11-20T16:56:24.882Z","avatar_url":"https://github.com/Mindinventory.png","language":"Kotlin","readme":"ShimmerTextView [![](https://jitpack.io/v/Mindinventory/ShimmerTextView.svg)](https://jitpack.io/#Mindinventory/ShimmerTextView) ![](https://img.shields.io/github/languages/top/Mindinventory/ShimmerTextView) ![](https://img.shields.io/github/license/mindinventory/ShimmerTextView)\n====\n\nShimmerTextView is a simple library to integrate shimmer effect in your TextView.\n\n![image](art/ShimmerTextView.gif)\n![image](art/ShimmerTextViewOffer.gif)\n\n# Key features\n\n* Set a base color in ShimmerTextView.\n* Set a highlight color in ShimmerTextView.\n* Set animation duration for shimmer effect(in millisecond).\n* Set animation direction(left_to_right, top_to_bottom, right_to_left, bottom_to_top).\n* Set ShimmerTextView shape(Linear/Radial)\n\n# Usage\n**Dependencies**\n- **Step 1: Add the JitPack repository in your project build.gradle file**\n```bash\nallprojects {\n\t    repositories {\n\t\t    ...\n\t\t    maven { url 'https://jitpack.io' }\n\t    }\n    }\n```\n\n **or**\n    \nIf Android studio version is Arctic Fox or upper then add it in your settings.gradle:\n```bash\n dependencyResolutionManagement {\n    \t\trepositories {\n        \t\t...\n        \t\tmaven { url 'https://jitpack.io' }\n    \t\t}\n\t   }\n```\n\n- **Step 2: Add the dependency in your app module build.gradle file**\n```bash\ndependencies {\n\t\t    ...\n\t        implementation 'com.github.Mindinventory:ShimmerTextView:x.x.x'\n\t}\n```\n\n**Implementation**\n\n* Step 1 : Use custom ShimmerTextView in XML.\n\n        \u003ccom.app.shimmertextview.ShimmerTextView\n            android:id=\"@+id/textView\"\n            android:layout_width=\"0dp\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/text_mi\"\n            android:textSize=\"24sp\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintStart_toEndOf=\"@id/ivLeftToRight\"\n            app:layout_constraintTop_toTopOf=\"@id/ivLeftToRight\"\n            app:layout_constraintBottom_toTopOf=\"@id/tvLeftToRight\"\n            app:shimmer_base_color=\"@color/dark_red\"\n            app:shimmer_colored=\"true\"\n            app:shimmer_highlight_color=\"@color/orange\"\n            android:fontFamily=\"@font/poppins_bold\"\n            app:shimmer_duration=\"3000\"\n            android:layout_marginHorizontal=\"16dp\"\n            android:includeFontPadding=\"false\"/\u003e\n\n* Step 2 : Use all attributes dynamically in your.\n\n        class MainActivity : AppCompatActivity() {\n            override fun onCreate(savedInstanceState: Bundle?) {\n                super.onCreate(savedInstanceState)\n                setContentView(R.layout.activity_main)\n                        \n                val textView = findViewById\u003cShimmerTextView\u003e(R.id.textView)\n                textView.setBaseColor(ContextCompat.getColor(this, R.color.dark_red))\n                .setHighLightColor(ContextCompat.getColor(this, R.color.orange))\n                .setDirection(Shimmer.Direction.LEFT_TO_RIGHT)\n                .build()\n                textView.startShimmer()\n            }\n        }\n\n**XML Properties**\n\n| Properties              | Description                                                                        |\n|-------------------------|------------------------------------------------------------------------------------|\n| shimmer_base_color      | Set base color of ShimmerTextView                                                  |\n| Shimmer_highlight_color | Set highlight color of shimmer animation                                           |\n| shimmer_colored         | Set it to true for colored ShimmerTextView                                         |\n| shimmer_duration        | Set duration for animation                                                         |\n| shimmer_direction       | Set animation direction(left_to_right,top_to_bottom, right_to_left, bottom_to_top) |\n\nThat's it 👍 and you're good to go 🚀\n\n### Guideline to report an issue/feature request\n---------\nIt would be very helpful for us, if the reporter can share the below things to understand the root cause of the issue.\n\n* Library version.\n* Code snippet.\n* Logs if applicable.\n* Screenshot/video with steps to reproduce the issue.\n\n### LICENCE\n----------------\nShimmerTextView is [MIT-licensed.](https://git.mindinventory.com/mi-android/android-libs/shimmertextview/-/blob/master/LICENSE)\n\n### Let us know!\n---------\nIf you use open-source libraries in your project, please make sure to credit us and Give a star to [www.mindinventory.com](https://www.mindinventory.com/)\n\nPlease feel free to use this component and let us know if you are interested to building Apps or Designing Products.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindinventory%2Fshimmertextview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindinventory%2Fshimmertextview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindinventory%2Fshimmertextview/lists"}