{"id":22093357,"url":"https://github.com/gturedi/statefullayout","last_synced_at":"2025-10-09T06:34:33.030Z","repository":{"id":68183717,"uuid":"82232720","full_name":"gturedi/StatefulLayout","owner":"gturedi","description":"Android layout to show template for loading, empty, error etc. states","archived":false,"fork":false,"pushed_at":"2020-01-05T10:37:27.000Z","size":1035,"stargazers_count":803,"open_issues_count":2,"forks_count":69,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-09-26T21:57:41.177Z","etag":null,"topics":["android","android-layout","android-library","anroid-layout","custom-view","layout","loader","loading","stateful"],"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/gturedi.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}},"created_at":"2017-02-16T22:32:39.000Z","updated_at":"2025-09-22T15:16:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"e244a03f-c95a-423a-aa76-bdf3c5484a92","html_url":"https://github.com/gturedi/StatefulLayout","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/gturedi/StatefulLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gturedi%2FStatefulLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gturedi%2FStatefulLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gturedi%2FStatefulLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gturedi%2FStatefulLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gturedi","download_url":"https://codeload.github.com/gturedi/StatefulLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gturedi%2FStatefulLayout/sbom","scorecard":{"id":447649,"data":{"date":"2025-08-11","repo":{"name":"github.com/gturedi/StatefulLayout","commit":"e7ce7c41036a805419120647d40d4cdb7a8a8577"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T07:17:33.312Z","repository_id":68183717,"created_at":"2025-08-19T07:17:33.312Z","updated_at":"2025-08-19T07:17:33.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000821,"owners_count":26082950,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-layout","android-library","anroid-layout","custom-view","layout","loader","loading","stateful"],"created_at":"2024-12-01T03:14:11.604Z","updated_at":"2025-10-09T06:34:33.006Z","avatar_url":"https://github.com/gturedi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## StatefulLayout\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-StatefulLayout-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5325)  [![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)  [![MavenCentral](https://maven-badges.herokuapp.com/maven-central/com.github.gturedi/stateful-layout/badge.svg?style=flat)](https://oss.sonatype.org/content/repositories/releases/com/github/gturedi/stateful-layout/)  [![Build Status](https://travis-ci.org/gturedi/StatefulLayout.svg?branch=master)](https://travis-ci.org/gturedi/StatefulLayout)  [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nAndroid layout to show most common state templates like loading, empty, error etc. To do that all you need to is wrap \nthe target area(view) with StatefulLayout.\n\n![alt text](sample.gif)\n\n## Usage\nYou can download it from jitpack.io\n```groovy\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\ndependencies {\n     compile 'com.github.gturedi:StatefulLayout:1.2.2'\n}\n```\n\nAlternatively you can use Sonatype Repository, add dependecy to app/build.gradle\n```groovy\ndependencies {\n     compile 'com.github.gturedi:stateful-layout:1.2.1'\n}\n```\nSnapshots of the development version are available in [Sonatype's `snapshots` repository](https://oss.sonatype.org/content/repositories/snapshots/com/github/gturedi)\n\n```\n\nThen wrap a view which target area(view) to show states with StatefulLayout\n```xml\n  \u003ccom.gturedi.views.StatefulLayout\n        android:id=\"@+id/stateful\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:stfAnimationEnabled=\"true\"\n        app:stfInAnimation=\"@android:anim/slide_in_left\"\n        app:stfOutAnimation=\"@android:anim/slide_out_right\"\n        \u003e\n    \n        \u003c!-- your content here  --\u003e\n        \u003cLinearLayout\n            android:id=\"@+id/target\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            \u003e\n            ...\n        \u003c/LinearLayout\u003e\n\n    \u003c/com.gturedi.views.StatefulLayout\u003e\n```\n\nFinally in your activity/fragment get StatefulLayout reference and call showXXX methods\n```java\nStatefulLayout stateful = (StatefulLayout) findViewById(R.id.stateful);\nstateful.showLoading();\n//stateful.showEmpty(getString(R.string.testMessage));\n//stateful.showError(getString(R.string.testMessage), clickListener);\n//etc.\n```\n\n## API\nState methods have overloads for customization. If you pass clickListener parameter as null, relevant state button \nwill be hided. More customization please look [CustomStateOptions.java](library/src/main/java/com/gturedi/views/CustomStateOptions.java)\n\n- setAnimationEnabled(boolean animationEnabled)\n- setInAnimation(@AnimRes int inAnimation)\n- setOutAnimation(@AnimRes int outAnimation)\n- showContent()\n- showLoading(String message)\n- showEmpty(String message)\n- showError(String message, OnClickListener clickListener)\n- showOffline(String message, OnClickListener clickListener)\n- showLocationOff(String message, OnClickListener clickListener)\n- showCustom(CustomStateOptions options)\n\n## Xml Attributes\n| Name | Type | Default | Description |\n|:----:|:----:|:-------:|:-----------:|\n| stfAnimationEnabled | boolean | true | Indicates whether to place the animation on state changes |\n| stfInAnimation | anim | @android:anim/fade_in | Animation started begin of state change |\n| stfOutAnimation | anim | @android:anim/fade_out | Animation started end of state change |\n\n## Customization\nJust override relevant resource in your app to customize state views appearance\n\n- To Override **strings** [strings.xml variables](library/src/main/res/values/strings.xml)\n\n- To Override **styles** [styles.xml](library/src/main/res/values/styles.xml)\n\n- To Override **layout** [stf_template.xml](library/src/main/res/layout/stf_template.xml)\n\n## License\n    Copyright 2017 Gökhan Türedi (turedi.gokhan@gmail.com)\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgturedi%2Fstatefullayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgturedi%2Fstatefullayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgturedi%2Fstatefullayout/lists"}