{"id":20752528,"url":"https://github.com/andhikayuana/android-core","last_synced_at":"2026-05-16T22:31:26.593Z","repository":{"id":88789037,"uuid":"90371681","full_name":"andhikayuana/android-core","owner":"andhikayuana","description":"simple android framework","archived":false,"fork":false,"pushed_at":"2018-10-14T09:48:52.000Z","size":158,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-17T18:17:05.894Z","etag":null,"topics":["android","android-library","android-mvp","android-mvp-architecture"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andhikayuana.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-05-05T12:06:08.000Z","updated_at":"2019-04-27T12:07:14.000Z","dependencies_parsed_at":"2023-06-12T15:00:33.049Z","dependency_job_id":null,"html_url":"https://github.com/andhikayuana/android-core","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andhikayuana/android-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fandroid-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fandroid-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fandroid-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fandroid-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andhikayuana","download_url":"https://codeload.github.com/andhikayuana/android-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andhikayuana%2Fandroid-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-library","android-mvp","android-mvp-architecture"],"created_at":"2024-11-17T08:41:55.438Z","updated_at":"2026-05-16T22:31:26.575Z","avatar_url":"https://github.com/andhikayuana.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Core Skeleton\n\nSimple and easy to implementation boilerplate Android Project with MVP Architecture, its contains :\n\n1. **BaseActivity**\n2. **BaseFragment**\n3. **BaseDialogFragment**\n4. **BaseRecyclerViewAdapter**\n5. **BaseViewHolder**\n6. **BasePresenter**\n7. **BaseView**\n\n## Installation\n\nAdd it in your root build.gradle at the end of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd the dependency\n\n```groovy\ndependencies {\n    compile 'com.github.andhikayuana:android-core:0.0.1-alpha'\n}\n```\n\n## How to use this\n\n1. Fragment\n\n```java\npublic class LoginFragment extends BaseFragment\u003cLoginPresenter\u003e {\n\n    @Override\n    public void showLoading() {\n        //do your implementation\n    }\n\n    @Override\n    public void dismissLoading() {\n        //do your implementation\n    }\n\n    @Override\n    public void showError(Throwable throwable) {\n        //do your implementation\n    }\n\n    @Override\n    protected void initView(View v) {\n        //do your implementation\n    }\n\n    @Override\n    protected LoginPresenter initPresenter() {\n        return new LoginPresenter();\n    }\n\n    @Override\n    protected int setView() {\n        return R.layout.fragment_login;\n    }\n}\n```\n\n2. Presenter\n\n```java\npublic class LoginPresenter extends BasePresenter\u003cLoginView\u003e {\n    //do your implementation\n}\n```\n\n3. View\n\n```java\npublic interface LoginView extends BaseView {\n    //do your implementation\n}\n```\n\n4. RecyclerViewAdapter\n\n```java\npublic class ContactsAdapter extends BaseRecyclerViewAdapter\u003cContact, ContactsViewHolder\u003e {\n\n    public ContactsAdapter(Context context) {\n        super(context);\n    }\n\n    @Override\n    protected ContactsViewHolder initViewHolder(View view) {\n        return new ContactsViewHolder(view);\n    }\n\n    @Override\n    protected int setItemView(int viewType) {\n        return R.layout.item_contact;\n    }\n}\n```\n\nExample use in activity\n\n```java\nContactsAdapter adapter = new ContactsAdapter(this);\n\n// now you can use some methods :\nadapter.get(1); // to get an item object by position\nadapter.add(contact); // to add an item\nadapter.indexOf(contact); // to get index of an item\nadapter.updateAt(1, contact); // to update item at some index position\nadapter.addAll(contacts); // to add item list or array of item\nadapter.remove(contact); // to remove an item\nadapter.removeItemAt(1); // to remove item at some index\nadapter.clear(); // to remove all item\n```\n\n5. RecyclerView ViewHolder\n\n```java\npublic class ContactsViewHolder extends BaseViewHolder\u003cContact\u003e {\n\n    public ContactsViewHolder(View itemView) {\n        super(itemView);\n    }\n\n    @Override\n    public void bind(Contact item) {\n\n    }\n}\n```\n\n6. DialogFragment\n\n```java\npublic class AddContactDialogFragmnet extends BaseDialogFragment {\n\n    @Override\n    protected void initView(View view) {\n        //do your implementation\n    }\n\n    @Override\n    protected Dialog setupDialog(AlertDialog.Builder builder) {\n        //do your implementation like setTitle(); and many more\n        return builder.create();\n    }\n\n    @Override\n    protected int setView() {\n        return R.layout.dialog_fragment_add_contact;\n    }\n}\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\nMIT License\n\nCopyright (c) 2017 Andhika Yuana\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandhikayuana%2Fandroid-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandhikayuana%2Fandroid-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandhikayuana%2Fandroid-core/lists"}