文章目录 WebView HTTP 使用HttpURLConnection 使用OkHttp 封装网络操作 封装HttpURLConnection 封装OkHttp WebView WebView 可以在 应用程序中(而不是浏览器) 展示一些网页。 布局文件 web_layout.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android: