14 Star 36 Fork 9

Comit / PWebView

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

PWebView

增加了加载进度条和浏览控制的WebView

使用

Gradle

compile 'com.weicong.library:pwebview:1.0.0'

布局文件

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.weicong.pwebview.MainActivity">

    <com.weicong.library.PWebView
        android:id="@+id/webView"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    </com.weicong.library.PWebView>

</RelativeLayout>

Java代码

PWebView pWebView = (PWebView) findViewById(R.id.webView);
pWebView.loadUrl("http://www.baidu.com");

// 隐藏控制栏
// pWebView.hideBrowserController();

效果图:

效果图

Comments ( 0 )

Sign in for post a comment

About

增加了加载进度条和浏览控制的WebView spread retract
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
Android
1
https://git.oschina.net/1011347848/PWebView.git
git@git.oschina.net:1011347848/PWebView.git
1011347848
PWebView
PWebView
master

Search