{"id":24452625,"url":"https://github.com/santalu/empty-view","last_synced_at":"2025-04-07T11:10:45.407Z","repository":{"id":144164793,"uuid":"99779838","full_name":"santalu/empty-view","owner":"santalu","description":"A view that displays state of screen like loading, error, empty","archived":false,"fork":false,"pushed_at":"2020-02-07T17:43:05.000Z","size":407,"stargazers_count":379,"open_issues_count":4,"forks_count":46,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-31T10:06:12.829Z","etag":null,"topics":["android","empty-view","emptylayout","emptyview","errorview","statelayout","stateview"],"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/santalu.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-08-09T07:44:50.000Z","updated_at":"2025-02-10T14:39:28.000Z","dependencies_parsed_at":"2023-05-30T20:00:14.586Z","dependency_job_id":null,"html_url":"https://github.com/santalu/empty-view","commit_stats":null,"previous_names":["santalu/emptyview"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fempty-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fempty-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fempty-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santalu%2Fempty-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santalu","download_url":"https://codeload.github.com/santalu/empty-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640465,"owners_count":20971557,"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-view","emptylayout","emptyview","errorview","statelayout","stateview"],"created_at":"2025-01-21T01:16:12.756Z","updated_at":"2025-04-07T11:10:45.386Z","avatar_url":"https://github.com/santalu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EmptyView\n\n[![](https://jitpack.io/v/santalu/emptyview.svg)](https://jitpack.io/#santalu/emptyview) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-EmptyView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6039) [![](https://img.shields.io/badge/AndroidWeekly-%23270-blue.svg)](http://androidweekly.net/issues/issue-270) [![Build Status](https://travis-ci.org/santalu/emptyview.svg?branch=master)](https://travis-ci.org/santalu/emptyview)\n\nA view that displays states of screen like loadingType, error, empty etc.\n\n## Samples\n\n\u003ctable \u003e\n  \u003ctr\u003e\n    \u003ctd align=\"left\"\u003e\u003cimg src=\"https://github.com/santalu/emptyview/blob/master/screens/loading.png\"/\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cimg src=\"https://github.com/santalu/emptyview/blob/master/screens/error.png\"/\u003e\u003c/td\u003e\n     \u003ctd align=\"left\"\u003e\u003cimg src=\"https://github.com/santalu/emptyview/blob/master/screens/empty.png\"/\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage\n\n### Gradle\n```\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n```\ndependencies {\n  implementation 'com.github.santalu:emptyview:1.3.6'\n}\n```\n\n### XML\n```xml\n\u003ccom.santalu.emptyview.EmptyView\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/empty_view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:ev_gravity=\"center\"\n    app:ev_empty_button=\"@string/try_again\"\n    app:ev_empty_buttonTextColor=\"@color/colorPrimaryDark\"\n    app:ev_empty_drawable=\"@drawable/ic_sentiment_dissatisfied\"\n    app:ev_empty_drawableTint=\"@color/colorPrimary\"\n    app:ev_empty_text=\"@string/empty\"\n    app:ev_empty_title=\"@string/error_endpoint_title\"\n    app:ev_error_backgroundColor=\"@color/red\"\n    app:ev_error_button=\"@string/try_again\"\n    app:ev_error_buttonTextColor=\"@color/white\"\n    app:ev_error_drawable=\"@drawable/ic_sentiment_very_dissatisfied\"\n    app:ev_error_drawableTint=\"@color/white\"\n    app:ev_error_text=\"@string/error_unknown\"\n    app:ev_error_textColor=\"@color/white\"\n    app:ev_error_title=\"@string/error_unknown_title\"\n    app:ev_error_titleTextColor=\"@color/white\"\n    app:ev_font=\"@font/allerta\"\n    app:ev_loading=\"circular\"\n    app:ev_loading_drawable=\"@drawable/ic_sentiment_satisfied\"\n    app:ev_loading_drawableTint=\"@color/colorPrimary\"\n    app:ev_loading_title=\"@string/loadingType\"\n    app:ev_loading_type=\"circular\"                             \n    app:ev_transition=\"auto\"\u003e\n\n    *** your content here ***\n\n\u003c/com.santalu.emptyview.EmptyView\u003e\n```\n\n## Attributes\n\n| Name        |  Value  |\n| ------------- |:-------------:|\n| ev_gravity | top,center,bottom default center |\n| ev_transition | slide, explode, fade default none |\n| ev_font | reference |\n| ev_titleTextSize | dimension |\n| ev_textSize | dimension |\n| ev_letterSpacing | dimension |\n| ev_lineSpacingExtra | dimension |\n| ev_lineSpacingExtraMultiplier | dimension |\n| ev_buttonTextSize | dimension |\n| ev_loading_type | circular default none |\n| ev_loading_title | string |\n| ev_loading_titleTextColor | color |\n| ev_loading_text | string |\n| ev_loading_textColor | color |\n| ev_loading_drawable | reference |\n| ev_loading_drawableTint | color |\n| ev_loading_backgroundColor | color |\n| ev_empty_title | string |\n| ev_empty_titleTextColor | color |\n| ev_empty_text | string |\n| ev_empty_textColor | color |\n| ev_empty_button | string |\n| ev_empty_buttonTextColor | color |\n| ev_empty_buttonBackgroundColor | color |\n| ev_empty_drawable | reference |\n| ev_empty_drawableTint | color |\n| ev_empty_backgroundColor | color |\n| ev_error_title | string |\n| ev_error_titleTextColor | color |\n| ev_error_text | string |\n| ev_error_textColor | color |\n| ev_error_button | string |\n| ev_error_buttonTextColor | color |\n| ev_error_buttonBackgroundColor | color |\n| ev_error_drawable | reference |\n| ev_error_drawableTint | color |\n| ev_error_backgroundColor | color |\n\n## Notes\n\n* Use `exclude(int... ids)` or `exclude(View... views)` methods to exclude views from visibility changes\n* Use `include(int... ids)` or `include(View... views)` methods to include views for visibility changes\n\n## License\n```\nCopyright 2017 Fatih Santalu\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%2Fsantalu%2Fempty-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantalu%2Fempty-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantalu%2Fempty-view/lists"}