{"id":13642365,"url":"https://github.com/iammert/StatusView","last_synced_at":"2025-04-20T16:31:57.923Z","repository":{"id":94173409,"uuid":"80124503","full_name":"iammert/StatusView","owner":"iammert","description":"Custom status view for Android.","archived":false,"fork":false,"pushed_at":"2018-03-07T06:41:54.000Z","size":591,"stargazers_count":779,"open_issues_count":3,"forks_count":82,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-10-29T20:03:08.680Z","etag":null,"topics":["android","custom-view","statusview"],"latest_commit_sha":null,"homepage":null,"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/iammert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-26T15:01:57.000Z","updated_at":"2024-09-30T06:52:00.000Z","dependencies_parsed_at":"2023-03-13T17:04:51.233Z","dependency_job_id":null,"html_url":"https://github.com/iammert/StatusView","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/iammert%2FStatusView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FStatusView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FStatusView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iammert%2FStatusView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iammert","download_url":"https://codeload.github.com/iammert/StatusView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223832983,"owners_count":17210759,"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","custom-view","statusview"],"created_at":"2024-08-02T01:01:30.475Z","updated_at":"2025-04-20T16:31:57.905Z","avatar_url":"https://github.com/iammert.png","language":"Java","readme":"# StatusView\nCustom status view for Android.\n\n\u003cimg src=\"https://raw.githubusercontent.com/iammert/StatusView/master/art/art.gif\"/\u003e\n\n# Usage\n\nAdd to XML\n\nIf you want to use ConnectionStatusView\n```java\n\u003ciammert.com.library.ConnectionStatusView\n        android:id=\"@+id/status\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"48dp\"\n        app:dismissOnComplete=\"true\" /\u003e\n```\nIf you want to use your own layout for status\n```java\n\u003ciammert.com.library.StatusView\n        android:id=\"@+id/status\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"48dp\"\n        app:dismissOnComplete=\"true\"\n        app:complete=\"@layout/completeLayout\"\n        app:error=\"@layout/errorLayout\"\n        app:loading=\"@layout/loadingLayout\"/\u003e\n```\n\nThen call status method\n```java\nstatusView.setStatus(Status.LOADING);\nstatusView.setStatus(Status.ERROR);\nstatusView.setStatus(Status.COMPLETE);\nstatusView.setStatus(Status.IDLE); //hide status\n```\n\nIf you want to dismiss automagically after oncomplete is called, then add ```app:dismissOnComplete=\"true\"``` as attribute.\n\n# Getters\n\nYou can inflate your custom views for all statuses(ERROR/COMPLETE/LOADING). And you can also get this views to control included UI widgets like button/imageview.\n```java\nView viewError = statusView.getErrorView();\nView viewComplete = statusView.getCompleteView();\nView viewLoading = statusView.getLoadingView();\n```\n\n# Listeners\n```java\nstatusView.setOnErrorClickListener(listener);\nstatusView.setOnLoadingClickListener(listener);\n```\n\n# Import\n\nAdd this to you project build.gradle\n```\nallprojects {\n        repositories {\n                ...\n                maven { url 'https://jitpack.io' }\n        }\n}\n```\nAdd this dependency to your app build.gradle\n\n```\ncompile 'com.github.iammert:StatusView:1.3'\n```\n\nLicense\n--------\n\n\n    Copyright 2017 Mert Şimşek.\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","funding_links":[],"categories":["空白页"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2FStatusView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiammert%2FStatusView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiammert%2FStatusView/lists"}