{"id":20009244,"url":"https://github.com/samlss/oops","last_synced_at":"2025-05-04T19:35:50.796Z","repository":{"id":201469496,"uuid":"157169688","full_name":"samlss/Oops","owner":"samlss","description":"😥A library for android that help to show the layout of loading, error, empty etc.","archived":false,"fork":false,"pushed_at":"2018-11-21T06:06:38.000Z","size":604,"stargazers_count":49,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T11:37:58.951Z","etag":null,"topics":["android","empty","error","loading"],"latest_commit_sha":null,"homepage":"","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/samlss.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}},"created_at":"2018-11-12T06:57:22.000Z","updated_at":"2022-03-21T01:01:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bb49e23-b517-4e6d-80b4-9745c517a236","html_url":"https://github.com/samlss/Oops","commit_stats":null,"previous_names":["samlss/oops"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FOops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FOops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FOops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FOops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/Oops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390664,"owners_count":21740361,"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","empty","error","loading"],"created_at":"2024-11-13T07:14:49.817Z","updated_at":"2025-05-04T19:35:50.244Z","avatar_url":"https://github.com/samlss.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Oops](https://github.com/samlss/Oops/blob/master/screenshots/logo.png)\n\n[![Download](https://api.bintray.com/packages/samlss/maven/oops/images/download.svg)](https://bintray.com/samlss/maven/oops/_latestVersion)   [![Api reqeust](https://img.shields.io/badge/API-12+-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=12#l12)    [![Apache License 2.0](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/samlss/Oops/blob/master/LICENSE)  \n\n\n\n### Features\n\n- Tiny\n\n- One line of code shows empty, error, loading, etc.\n\n- No additional layout nesting required\n\n\n![Oops](https://github.com/samlss/Oops/blob/master/screenshots/screenshot1.gif)\n\n\n### Dependency\n\n#### Gradle\nAdd it in your module build.gradle at the end of repositories:\n  ```java\n  dependencies {\n      implementation 'me.samlss:oops:1.0.0'\n  }\n  ```\n\n#### Maven\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003eme.samlss\u003c/groupId\u003e\n  \u003cartifactId\u003eoops\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### Sample Usage\n\n```java\n//Show empty layout\nOops.with('activity' or 'viewgroup').show(R.layout.layout_empty);\n\n//show error view\nView errorView = getLayoutInflater().inflate(R.layout.layout_no_net_error, null);    \nOops.with('activity' or 'viewgroup').show(errorView);\n\n//When you do not need to show the layout(empty, error, loading,etc.) anymore\n//Please invoke the method - release.    \nOops.with('activity' or 'viewgroup').release();\n\n```\n\n\n\n### License\n\n```\nCopyright 2018 samlss\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%2Fsamlss%2Foops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Foops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Foops/lists"}