Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allaboutapps/a3webview
Wrapper around WebView
https://github.com/allaboutapps/a3webview
id-allaboutapps-android
Last synced: about 1 month ago
JSON representation
Wrapper around WebView
- Host: GitHub
- URL: https://github.com/allaboutapps/a3webview
- Owner: allaboutapps
- License: mit
- Created: 2017-05-03T07:39:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T09:08:27.000Z (over 3 years ago)
- Last Synced: 2024-03-26T14:07:06.165Z (9 months ago)
- Topics: id-allaboutapps-android
- Language: Java
- Homepage:
- Size: 204 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A3WebView
Utilities to wrap around the Android WebView.
[ ![Build Status](https://api.travis-ci.org/allaboutapps/A3WebView.svg?branch=master) ](https://travis-ci.org/allaboutapps/A3WebView)
[ ![Download](https://api.bintray.com/packages/allaboutapps/A3-Android/at.allaboutapps.web.a3webview/images/download.svg) ](https://bintray.com/allaboutapps/A3-Android/at.allaboutapps.web.a3webview/_latestVersion)## This library contains the following
* **A3WebActivity**
Standalone Activity with Builder for easy display of HTML content.
* **A3WebFragment**
Fragment displaying HTML content.
* **A3WebView**
Wrapper around WebView that also displays loading and error.
## UsageCreate WebViewSettings with some information about what you would like to do:
```java
WebViewSettings settings =
WebViewSettings.loadUrl("https://allaboutapps.at").enableJavaScript();// or
WebViewSettings settings =
WebViewSettings.loadData(
"Displaying some inline content in a WebView");
// or
WebViewSettings settings =
WebViewSettings.loadAssetFile("imprint.html")
.disableLoadingIndicator()
.openLinksExternally();
```
Use those settings along with one of `A3WebActivity`, `A3WebFragment`, or `A3WebView` to load and display your content. The Activity also uses a builder for some additional options.```java
Intent intent =
A3WebActivity.with(getContext(), settings)
.enableHomeAsUp()
.setTitle("aaa - all about apps")
.build();
// or
Fragment fragment = A3WebFragment.newInstance(settings);// or
webView.loadWithSettings(settings);
```## Including it in your project
compile "at.allaboutapps.web:a3webview:${latestVersion}"
## License
MIT License
Copyright (c) 2017 aaa - all about apps GmbH