Git Product home page Git Product logo

gwebview's Introduction

GWebView


  1. 增加下拉刷新,并且解决滑动冲突 下拉刷新参考 https://github.com/gzfgeh/GSwipeRefresh
  2. 增加超时判断,屏蔽webview自带错误页面,显示自定义错误页面
  3. 增加默认的加载中、无网络判断、服务器错误页面
  4. 一般app都有显示自己app特点的加载中、无网络判断、服务器错误页面,很简单就可以切换
    
    <com.gzfgeh.GWebView xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              xmlns:app="http://schemas.android.com/apk/res-auto"
              android:id="@+id/web_view"
              app:layout_error="@layout/error_layout" />
          
    
  5. 一般错误页面都有重新加载按钮,所以代码中提供了设置重载方式
    webView.loadUrl("https://www.google.com")
        .setErrorReloadId(R.id.reload);
  6. 所有设置都是链式方式设置
  7. 使用

  Add it in your root build.gradle at the end of repositories:

maven { url "https://jitpack.io" }

Add the dependency

compile 'com.github.gzfgeh:GWebView:v1.0.0'

gwebview's People

Contributors

gzfgeh avatar

Stargazers

huimin avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

alittlecute

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.