# yangchong211/YCWebView

基于腾讯x5开源库，提高webView开发效率，大概要节约你百分之六十的时间成本。该案例支持处理js的交互逻辑且无耦合、同时暴露进度条加载进度、可以监听异常error状态、支持视频播放并且可以全频、支持加载word，xls，ppt，pdf，txt等文件文档、发短信、打电话、发邮件、打开文件操作上传图片、唤起原生App、支持webView页面截图、x5库为最新版本，功能强大。

Repository: https://github.com/yangchong211/YCWebView
Canonical: https://ross.abutalabs.com/products/ycwebview
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2022-03-01T04:40:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3317, "days_push": 1646, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1762, forks 270 (observed 2026-08-28T04:05:32.830893+00:00)

## What it is
YCWebView is an Android WebView wrapper library built on Tencent's X5 WebView kernel that bundles common WebView features: decoupled JS bridge interaction, progress and error listeners, fullscreen video playback, document loading (word/xls/ppt/pdf/txt), scheme handling, and OkHttp-based resource interception caching. It also serves as a comprehensive reference of WebView pitfalls and optimization techniques.

## Use cases
- embed web pages in an android app with less boilerplate
- handle javascript-to-native communication without coupling
- show a wechat-style loading progress bar on web pages
- play html5 videos in fullscreen with rotation support
- load word, excel, ppt, pdf and txt documents in-app
- intercept and cache web resources via okhttp
- handle tel/sms/mailto/alipay/wechat scheme links uniformly
- monitor webview load errors like 404, no network, and ssl errors

## When to choose
- you want a batteries-included X5-based WebView for Android
- you need JS bridge, video fullscreen, file preview, and caching out of the box
- you want to learn common WebView pitfalls and optimizations

## When to avoid
- you target iOS or non-Android platforms
- you prefer the plain system WebView without the X5 kernel dependency
- you need actively maintained releases (last release March 2022)

## Facets
- artifact type: library
- maturity: maintenance
- function: web-framework, http-client, caching, middleware
- domain: mobile-development, android-tools, web-development, developer-tools
- platform: -
- tags: webview, tencent-x5, js-bridge, video-playback, file-preview, progress-bar, scheme-interception, httpdns, okhttp-cache, dark-mode, android

## Member repositories
- yangchong211/YCWebView (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:32.830893+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:27:03.180956+00:00, confidence not recorded.
  - readme: https://github.com/yangchong211/YCWebView (fetched 2026-08-28T04:05:32.830893+00:00, sha 1c65fa09ebf8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
