私はJavaとXMLプログラミングの新機能です。断片化されたアクティビティを作成しています。コードの実行やデバッグ時にエラーはありませんが、VideoViewは表示されません。 、 アイデアは、私は、スクロール可能なコンテンツ(可能性があります)として、テキストビューとビデオビューでタブ付きの活動をしたいですか?もう1つはAPIのレベルは何とか影響力がありますか?ラップに応じて/ビデオビューがデバイスやXMLデザインに表示されない
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mencucitangan_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.panduanberwudhu.MencuciTangan">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_name"
/>
<VideoView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/videoplayer"
android:layout_gravity="bottom"
/>
</LinearLayout>
</ScrollView>
をあなたの 'TextView'が原因match_parent'属性'にレイアウト全体を覆っています。 –
android:layout_width = "wrap_content" アンドロイド:layout_height = "wrap_content"をチェックしてみてください –
これを試してみましたが、テキストビューの幅と高さをまだ編集していないので、どうもありがとうございます –