私は Android 用の小さな下部と右のバーでレイアウトを作成しようとしてきましたが、画面の残りの部分は相対的なレイアウトにする必要があります。しかし、私はまだこのようなものを得ています
両方の「明るいオレンジ色」のバーを下/右の境界線に配置し、残りを画像またはビデオで埋める必要があります。
以下は私のコードです。間違いを見つけるのを手伝ってもらえますか?
<?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"
android:weightSum="1.0" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.8333"
android:layout_gravity="top"
android:weightSum="1.0" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="left"
android:layout_weight="0.8333">
<VideoView
android:id="@+id/videoView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"/>
<ImageView
android:id="@+id/imageView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitCenter"
android:contentDescription="@string/hello" />
</RelativeLayout>
<ImageView
android:id="@+id/rightImage"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="right"
android:layout_weight="0.1667"
android:contentDescription="@string/hello"/>
</LinearLayout>
<ImageView
android:id="@+id/bottomImage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.1667"
android:layout_gravity="bottom"
android:contentDescription="@string/hello"/>
</LinearLayout>
助けてくれてありがとう。
ミラノ