最近真的是饱受webView的折磨啊,最近刚做了一个webview视屏点击放大全屏播放的功能,这里记录一下
页面xml文件的代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/ll_contain"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white_fff"
android:orientation="vertical">
<include layout="@layout/commen_head" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_gravity="top"
android:progressDrawable="@drawable/progress_style" />
<WebView
android:id="@+id/web_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"></WebView>
</LinearLayout>
<FrameLayout
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"