{"id":23300230,"url":"https://github.com/shts/storiesprogressview","last_synced_at":"2025-05-15T08:06:53.344Z","repository":{"id":40643780,"uuid":"97924480","full_name":"shts/StoriesProgressView","owner":"shts","description":"show horizontal progress like instagram stories.","archived":false,"fork":false,"pushed_at":"2023-10-21T17:59:30.000Z","size":51941,"stargazers_count":888,"open_issues_count":39,"forks_count":203,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-04-07T02:19:53.177Z","etag":null,"topics":["android","instagram","library"],"latest_commit_sha":null,"homepage":null,"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/shts.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,"publiccode":null,"codemeta":null}},"created_at":"2017-07-21T08:23:37.000Z","updated_at":"2025-04-03T02:22:37.000Z","dependencies_parsed_at":"2024-06-21T19:07:00.399Z","dependency_job_id":"6f3213b0-b0c7-4035-8908-fbb923fb9de4","html_url":"https://github.com/shts/StoriesProgressView","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shts%2FStoriesProgressView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shts%2FStoriesProgressView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shts%2FStoriesProgressView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shts%2FStoriesProgressView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shts","download_url":"https://codeload.github.com/shts/StoriesProgressView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248870800,"owners_count":21175106,"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","instagram","library"],"created_at":"2024-12-20T09:10:42.496Z","updated_at":"2025-04-14T11:26:57.457Z","avatar_url":"https://github.com/shts.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"StoriesProgressView\n====\n\nLibrary that shows a horizontal progress like Instagram stories.\n\n[![](https://jitpack.io/v/shts/StoriesProgressView.svg)](https://jitpack.io/#shts/StoriesProgressView)\n\n\u003cimg src=\"image/capture.png\" width=200 /\u003e\n\n\u003cimg src=\"image/image.gif\" width=200 /\u003e \n\n^She is [Yui Kobayashi](http://www.keyakizaka46.com/s/k46o/artist/07)\n\nHow to Use\n----\n\nTo see how a StoriesProgressView can be added to your xml layouts, check the sample project.\n\n```xml\n    \u003cjp.shts.android.storiesprogressview.StoriesProgressView\n        android:id=\"@+id/stories\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"3dp\"\n        android:layout_gravity=\"top\"\n        android:layout_marginTop=\"8dp\" /\u003e\n```\nOverview\n\n```java\npublic class YourActivity extends AppCompatActivity implements StoriesProgressView.StoriesListener {\n    private StoriesProgressView storiesProgressView;\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        storiesProgressView = (StoriesProgressView) findViewById(R.id.stories);\n        storiesProgressView.setStoriesCount(PROGRESS_COUNT); // \u003c- set stories\n        storiesProgressView.setStoryDuration(1200L); // \u003c- set a story duration\n        storiesProgressView.setStoriesListener(this); // \u003c- set listener\n        storiesProgressView.startStories(); // \u003c- start progress\n    }\n\n    @Override\n    public void onNext() {\n        Toast.makeText(this, \"onNext\", Toast.LENGTH_SHORT).show();\n    }\n\n    @Override\n    public void onPrev() {\n        // Call when finished revserse animation.\n        Toast.makeText(this, \"onPrev\", Toast.LENGTH_SHORT).show();\n    }\n\n    @Override\n    public void onComplete() {\n        Toast.makeText(this, \"onComplete\", Toast.LENGTH_SHORT).show();\n    }\n\n    @Override\n    protected void onDestroy() {\n        // Very important !\n        storiesProgressView.destroy();\n        super.onDestroy();\n    }\n}\n```\n\nSkip and Reverse story\n---\n\n\u003cimg src=\"image/skip-reverse.gif\" width=200 /\u003e\n\n```java\n  storiesProgressView.skip();\n  storiesProgressView.reverse();\n```\n\nPause and Resume story\n---\n\u003cimg src=\"image/pause-resume.gif\" width=200 /\u003e\n\n```java\n  storiesProgressView.pause();\n  storiesProgressView.resume();\n```\n\n\nInstall\n---\n\nAdd it in your root build.gradle at the end of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\n```\n\nAdd the dependency\n\n```\ndependencies {\n    implementation 'com.github.shts:StoriesProgressView:3.0.0'\n}\n\n```\n\nLicense\n---\n\n```\nCopyright (C) 2017 Shota Saito(shts)\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshts%2Fstoriesprogressview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshts%2Fstoriesprogressview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshts%2Fstoriesprogressview/lists"}