0
我有一個videoview播放視頻,然後在那layout.But其他一些按鈕,但視頻的黑色條出現在佈局的底部。我應該做什麼使黑色條在videoview的底部。Android VideoView黑條出現在底部
<?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"
android:background="@color/White" >
<RelativeLayout
android:id="@+id/first_intro"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginBottom="10dp"
android:layout_marginLeft="14dp"
android:layout_marginRight="14dp"
android:layout_marginTop="14dp"
android:background="@color/intro2_bg"
android:padding="@dimen/sidearea_padding" >
<Button
android:id="@+id/remove_page_from_introthird"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_alignParentRight="true"
android:layout_marginTop="5dp"
android:background="@drawable/cross" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/footer_btns_layout_linear"
android:layout_centerInParent="true"
android:layout_marginBottom="20dp" >
<VideoView
android:id="@+id/videoView_introthree"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical"
android:background="@android:color/transparent" />
</LinearLayout>
<LinearLayout
android:id="@+id/footer_btns_layout_linear"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:weightSum="1" >
<Button
android:id="@+id/prev_btn2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginRight="8dp"
android:layout_weight="0.5"
android:background="@drawable/previous_selecter" />
<Button
android:id="@+id/nxt_btn2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_weight="0.5"
android:background="@drawable/get_start_selecter" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
我嘗試了外部佈局中的視頻視圖和內部佈局中的按鈕,但它不起作用。 – Anu
不工作意味着?它顯示任何錯誤? –
我的意思是在視頻懸停時出現的黑條在底部按鈕的頂部 – Anu