{"id":18270274,"url":"https://github.com/medyo/Dynamicbox","last_synced_at":"2025-04-05T01:30:29.264Z","repository":{"id":17658405,"uuid":"20462998","full_name":"medyo/Dynamicbox","owner":"medyo","description":"Android library to show Loading view when waiting for initial state","archived":true,"fork":false,"pushed_at":"2018-03-12T14:52:27.000Z","size":547,"stargazers_count":452,"open_issues_count":5,"forks_count":85,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-11-05T11:52:40.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/medyo.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}},"created_at":"2014-06-03T23:07:28.000Z","updated_at":"2024-10-18T14:34:44.000Z","dependencies_parsed_at":"2022-09-26T21:41:27.909Z","dependency_job_id":null,"html_url":"https://github.com/medyo/Dynamicbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2FDynamicbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2FDynamicbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2FDynamicbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medyo%2FDynamicbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medyo","download_url":"https://codeload.github.com/medyo/Dynamicbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276021,"owners_count":20912285,"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":[],"created_at":"2024-11-05T11:38:28.210Z","updated_at":"2025-04-05T01:30:28.905Z","avatar_url":"https://github.com/medyo.png","language":"Java","readme":"Dynamicbox\n========== \n\n# Deprecated, Please refer the new implementation at: https://github.com/medyo/StateViews\n\n![Icon](https://raw.github.com/medyo/dynamicbox/master/screenshots/cat-box-icon.png \"Dynamic Box\")  \n\nDynamicBox is a library which inflates custom layouts to indicate : \n \n* loading content\n* show an exception\n* or even a custom view.  \n\nThe philosophy behind this library is to improve the UX through informing the user about what's happening behind, if the data is loading or an exception is thrown while fetching data...\n\nScreenshots\n---\n \n\u003cimg src=\"https://raw.github.com/medyo/dynamicbox/master/screenshots/demo_popcorn_loading.png\" alt=\"Popcorn Screen shot\" width=\"250\"\u003e \u003cimg src=\"https://raw.github.com/medyo/dynamicbox/master/screenshots/demo_gplay_no_internet.png\" alt=\"Google play screen shot\" width=\"250\"\u003e \u003cimg src=\"https://raw.github.com/medyo/dynamicbox/master/screenshots/demo_slack_loading.png\" alt=\"Slack screen shot\" width=\"250\"\u003e \u003cimg src=\"https://raw.github.com/medyo/dynamicbox/master/screenshots/demo_gmail_no_messages.png\" alt=\"Gmail screen shot\" width=\"250\"\u003e\n\n__Supports:__\n\n- `ListView`\n- `GridView`\n- `ExpandableListView`\n- `Activity`\n- `FragmentActivity`\n- `Fragment`\n- `LinearLayout`\n- `RelativeLayout`\n- `ScrollView`\n- `FrameLayout`\n- `RecyclerView`\n- `ViewGroup`\n- `or any view type overriding from one of these`\n\nIncluding in your project : Maven Central\n---------------------\n\n```compile 'com.github.medyo:dynamicbox:1.2@aar'```\n\nUsage\n---------------------\n\n```\nDynamicBox box = new DynamicBox(this,view);\n```\n*`this` : refers to the current Activity*  \n*`view` : refers to the target view, eg a ListView or a layout*\n\nExample\n---------------------\n\n- View\n\n```\nListView lv = (ListView)findViewById(R.id.listView);    \nDynamicBox box = new DynamicBox(this,lv);\n```\n\n- Layout id\n\n```\nDynamicBox box = new DynamicBox(this,R.layout.activity_activity);\n```\n_____\n\n**To Show the loading View**  \n```\nbox.showLoadingLayout();\n```\n\n**To Show Internet off View**  \n```\nbox.showInternetOffLayout();\n```\n\n**To Show Exception View**  \n```\nbox.showExceptionLayout();\n```\n\n**To Show a Custom View**  \n```\nView customView = getLayoutInflater().inflate(R.layout.custom_view, null, false);\nbox.addCustomView(customView,\"greenmonster\");\nbox.showCustomView(\"greenmonster\");\n```  \n\n**To set Loading Message**\n```\nbox.setLoadingMessage(\"Loading your music ...\");\n```\n\n**To Override Strings**\nPlease refer to [strings.xml variables](DynamicBox/src/main/res/values/strings.xml)\n\n**To Override Default style**\nPlease refer to [styles.xml](DynamicBox/src/main/res/values/styles.xml)\n\n**To Override Default Layouts**\nPlease refer to [res/layouts](DynamicBox/src/main/res/layout/)\n\n**See the example project for more details** [Sample](DynamicBoxExample/src/main/java/mehdi/sakout/dynamicboxexample/)\n\nApps using DynamicBox  \n---------------------   \n[![ElBotola](https://raw.github.com/medyo/dynamicbox/master/screenshots/apps/com.mobiacube.elbotola.png)](https://play.google.com/store/apps/details?id=com.mobiacube.elbotola)  \n\nFeel free to shoot me an email if your app is using it\n\nDeveloped By\n---------------------\nEl Mehdi Sakout \u003celmehdi.sakout@gmail.com\u003e\n\nResources\n---------------------\nThanks to [IconKa](http://www.iconka.com) for the cat icon.\n\nLicense\n---------------------\n\nMIT  \n[http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT)\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedyo%2FDynamicbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedyo%2FDynamicbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedyo%2FDynamicbox/lists"}