一、用户协议相关内容展示
二、activity_webview.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <WebView android:id="@+id/webView" android:layout_width="match_parent" android:layout_height="match_parent"> </WebView> </LinearLayout>
三、WebViewActivity.class
user _agreement.html为内容文档,若提供的是Word文档,可使用以下地址转化成html文件
地址:http://www.docpe.com/word/word-to-html.aspx
import android.app.Activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.webkit.WebSettings; imp