1
我有一个线性布局的webview控件。我想在vebview控件中播放html视频。 我试图在纵向模式下显示与屏幕相同的视频,并在横向模式下显示全屏。在Android Webview中播放视频
这是我的XML布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<WebView
android:id="@+id/myBrowser"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitXY"
/>
</LinearLayout>
,你可以找到如下问题的截图:
我收到以下错误:android.util.AndroidRuntimeException:requestFeature()必须在添加内容之前调用 – onder
不要在requestFeature()之前调用setContentView()。 – Ameer