{"id":22737069,"url":"https://github.com/kibotu/webviewadapter","last_synced_at":"2026-05-18T04:03:22.384Z","repository":{"id":152024212,"uuid":"180090680","full_name":"kibotu/WebViewAdapter","owner":"kibotu","description":"Adapter for managing a single webview by bottom navigation.","archived":false,"fork":false,"pushed_at":"2019-08-13T14:12:28.000Z","size":169,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T03:15:14.983Z","etag":null,"topics":["adapter","android","bottom-navigation-view","hacktoberfest","tablayout","webview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/kibotu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://paypal.me/janrabe/5"}},"created_at":"2019-04-08T07:10:16.000Z","updated_at":"2021-10-06T08:26:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7919a214-cdb7-46ee-bbf3-70aed9f9a067","html_url":"https://github.com/kibotu/WebViewAdapter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kibotu/WebViewAdapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FWebViewAdapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FWebViewAdapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FWebViewAdapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FWebViewAdapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kibotu","download_url":"https://codeload.github.com/kibotu/WebViewAdapter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibotu%2FWebViewAdapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274578521,"owners_count":25310958,"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-09-11T02:00:13.660Z","response_time":74,"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":["adapter","android","bottom-navigation-view","hacktoberfest","tablayout","webview"],"created_at":"2024-12-10T22:09:35.077Z","updated_at":"2025-10-12T15:50:39.925Z","avatar_url":"https://github.com/kibotu.png","language":"Kotlin","funding_links":["https://paypal.me/janrabe/5","https://www.paypal.me/janrabe/5"],"categories":[],"sub_categories":[],"readme":"[![Donation](https://img.shields.io/badge/by%20me%20a%20coffee-brightgreen.svg)](https://www.paypal.me/janrabe/5) [![About Jan Rabe](https://img.shields.io/badge/about-me-green.svg)](https://about.me/janrabe)\n# WebViewAdapter [![](https://jitpack.io/v/kibotu/WebViewAdapter.svg)](https://jitpack.io/#kibotu/WebViewAdapter) [![](https://jitpack.io/v/kibotu/WebViewAdapter/month.svg)](https://jitpack.io/#kibotu/WebViewAdapter) [![Javadoc](https://img.shields.io/badge/javadoc-SNAPSHOT-green.svg)](https://jitpack.io/com/github/kibotu/WebViewAdapter/master-SNAPSHOT/javadoc/index.html) [![Build Status](https://travis-ci.org/kibotu/WebViewAdapter.svg)](https://travis-ci.org/kibotu/WebViewAdapter)  [![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15) [![Gradle Version](https://img.shields.io/badge/gradle-5.4.0-green.svg)](https://docs.gradle.org/current/release-notes) [![Kotlin](https://img.shields.io/badge/kotlin-1.3.30-green.svg)](https://kotlinlang.org/) [![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/kibotu/WebViewAdapter/master/LICENSE) [![androidx](https://img.shields.io/badge/androidx-brightgreen.svg)](https://developer.android.com/topic/libraries/support-library/refactor)\n\nActionBar like usability for a webview. Also modular handling of uri event handler.\n\n### How to install\n\n\trepositories {\n\t    maven {\n\t        url \"https://jitpack.io\"\n\t    }\n\t}\n\n\tdependencies {\n\n        implementation 'com.github.kibotu:WebViewAdapter:-SNAPSHOT'\n    }\n\n### How to use\n\n1 [prepare layout](app/src/main/res/layout/activity_main.xml#L10-L41)\n\n    \u003candroidx.constraintlayout.widget.ConstraintLayout\u003e\n        \u003cWebView/\u003e\n        \u003ccom.google.android.material.tabs.TabLayout/\u003e\n    \u003c/androidx.constraintlayout.widget.ConstraintLayout\u003e\n\n2 [add adapter pages](app/src/main/java/net/kibotu/webviewadapter/app/MainActivity.kt#L34-L46)\n\n     adapter = WebViewPageAdapter(webView, tabLayout)\n\n     adapter.add(Tab(\"https://github.com/kibotu/RecyclerViewPresenter\", R.string.tab_1, R.drawable.ic_edit_black_24dp, R.color.inactiveColorTint, R.color.colorPrimary))\n     adapter.add(Tab(\"https://github.com/kibotu/Heart-Rate-Ometer\", R.string.tab_2, R.drawable.ic_edit_black_24dp, R.color.inactiveColorTint, R.color.colorPrimary))\n     adapter.add(Tab(\"https://github.com/kibotu/Android-PGP\", R.string.tab_3, R.drawable.ic_edit_black_24dp, R.color.inactiveColorTint, R.color.colorPrimary))\n     adapter.add(Tab(\"https://github.com/kibotu/StreamingAndroidLogger\", R.string.tab_4, R.drawable.ic_edit_black_24dp, R.color.inactiveColorTint, R.color.colorPrimary))\n     adapter.add(Tab(\"https://github.com/kibotu/KalmanRx\", R.string.tab_5, R.drawable.ic_edit_black_24dp, R.color.inactiveColorTint, R.color.colorPrimary))\n\n     adapter.notifyDataSetChanged()\n\n3 [load intial url](app/src/main/java/net/kibotu/webviewadapter/app/MainActivity.kt#L51-L56)\n\n    adapter.selectCurrentItem(0)\n\n(optional) [add onLoading Url callback](app/src/main/java/net/kibotu/webviewadapter/app/MainActivity.kt#L36)\n\n    adapter.onLoadUrl = { logv(\"onLoading $it\") }\n\n4 profit :)\n\n### License\n\u003cpre\u003e\nCopyright 2019 Jan Rabe\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\u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkibotu%2Fwebviewadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkibotu%2Fwebviewadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkibotu%2Fwebviewadapter/lists"}