{"id":17284257,"url":"https://github.com/johnkil/android-progressfragment","last_synced_at":"2025-04-12T22:25:55.881Z","repository":{"id":7103541,"uuid":"8395980","full_name":"johnkil/Android-ProgressFragment","owner":"johnkil","description":"Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial data.","archived":false,"fork":false,"pushed_at":"2016-02-24T14:16:28.000Z","size":2596,"stargazers_count":808,"open_issues_count":6,"forks_count":214,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-04T01:36:17.671Z","etag":null,"topics":["android","fragment","progress"],"latest_commit_sha":null,"homepage":"http://johnkil.github.io/Android-ProgressFragment/","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/johnkil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-02-24T20:12:56.000Z","updated_at":"2025-03-23T00:52:15.000Z","dependencies_parsed_at":"2022-07-07T11:02:46.231Z","dependency_job_id":null,"html_url":"https://github.com/johnkil/Android-ProgressFragment","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-ProgressFragment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-ProgressFragment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-ProgressFragment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-ProgressFragment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnkil","download_url":"https://codeload.github.com/johnkil/Android-ProgressFragment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107827,"owners_count":20884797,"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","fragment","progress"],"created_at":"2024-10-15T09:53:36.251Z","updated_at":"2025-04-04T02:05:25.410Z","avatar_url":"https://github.com/johnkil.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Android-ProgressFragment\n========================\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android--ProgressFragment-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/366)\n\nImplementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial data. Based on [ListFragment](http://developer.android.com/reference/android/app/ListFragment.html).\n\n\nSample\n------\n\nA sample application is available on Google Play:\n\n\u003ca href=\"http://play.google.com/store/apps/details?id=com.devspark.progressfragment.sample\"\u003e\n  \u003cimg alt=\"Get it on Google Play\"\n       src=\"http://www.android.com/images/brand/get_it_on_play_logo_small.png\" /\u003e\n\u003c/a\u003e\n\n![screenshot][1]\n\n\nCompatibility\n-------------\n\nThis library is compatible from API 4 (Android 1.6).\n\n\nUsage\n-----\n\nTo display the progress fragment you need the following code:\n\n* Create your implementation of progress fragment\n\n``` java\npublic class MyProgressFragment extends ProgressFragment {\n\t// your code of fragment\n}\n```\n\nor if you use [ActionBarSherlock](https://github.com/JakeWharton/ActionBarSherlock)\n\n``` java\npublic class MyProgressFragment extends SherlockProgressFragment {\n\t// your code of fragment\n}\n```\n\n* Setup content view and empty text (optional) in `onActivityCreate()` method.\n\n``` java\n@Override\npublic void onActivityCreated(Bundle savedInstanceState) {\n    super.onActivityCreated(savedInstanceState);\n    // Setup content view\n    setContentView(R.layout.content);\n    // Setup text for empty content\n    setEmptyText(R.string.empty);\n    // ...\n}\n```\n\n* Display of indeterminate progress indicator\n\n``` java\nsetContentShown(false);\n```\n\n\n* When the data is loaded to set whether the content is empty and show content\n\n``` java\nsetContentEmpty(/* true if content is empty else false */);\nsetContentShown(true);\n```\n\n\nGradle\n------\n\nAndroid-ProgressFragment library is now pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.\n\nProgressFragment (support-v4):\n``` xml\ndependencies {\n    compile 'com.github.johnkil.android-progressfragment:progressfragment:1.4.+'\n}\n```\n\nProgressFragment (native):\n``` xml\ndependencies {\n    compile 'com.github.johnkil.android-progressfragment:progressfragment-native:1.4.+'\n}\n```\n\nSherlockProgressFragment:\n``` xml\ndependencies {\n    compile 'com.android.support:support-v4:19.0.0'\n    compile('com.github.johnkil.android-progressfragment:sherlockprogressfragment:1.4.+') {\n        exclude module: 'support-v4'\n    }\n}\n```\n\nExample Gradle project using Android-ProgressFragment:\n\n* [Android-ProgressFragment-Gradle-Sample](https://github.com/johnkil/Android-ProgressFragment-Gradle-Sample)\n\n\nDeveloped By\n------------\n* Evgeny Shishkin - \u003cjohnkil78@gmail.com\u003e\n\n\nLicense\n-------\n\n    Copyright 2013 Evgeny Shishkin\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    \n[1]: http://i44.tinypic.com/34ffncx.png\n\n[0]: https://github.com/jkwiecien/Switcher\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnkil%2Fandroid-progressfragment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnkil%2Fandroid-progressfragment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnkil%2Fandroid-progressfragment/lists"}