0

これが私のレイアウトです。次のような警告が表示"Nested weights are bad for performance"されImageViewます。どうすればこれを回避でき、何が間違っていますか?

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@android:color/white">


<LinearLayout 
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:orientation="horizontal"
    android:layout_weight="1.50">

    <ImageView 
        android:layout_width="0dp"
        android:layout_height="60dp"
        android:background="@drawable/left_top"
        android:layout_weight=".75"  
        android:contentDescription="@string/title" 
        />
     <ImageView 
        android:layout_width="0dp"
        android:layout_height="60dp"
        android:layout_weight="1.25"
        android:contentDescription="@string/title" 
        />

    <ImageView
        android:layout_width="0dp"
        android:layout_height="60dp"
        android:background="@drawable/right_top" 
        android:layout_weight="0.50"
        android:contentDescription="@string/title"  />

</LinearLayout>


    <ImageView
        android:id="@+id/imagefirstname"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="3"
        android:contentDescription="@string/app_name"
        android:background="@drawable/logo"
        android:scaleType="center"
        android:layout_gravity="center_horizontal" 
        />


        <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:text="@string/welcome_title"
        android:textSize="25sp"
        android:layout_gravity="center"
        android:gravity="center"
         /> 

    <LinearLayout 
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:orientation="horizontal"
    android:layout_weight=".75">

    <ImageView 
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:background="@drawable/left_bottom"
        android:layout_weight=".75"
        android:contentDescription="@string/title" 
        />
     <ImageView 
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1.25"
        android:contentDescription="@string/title" 
        />

    <ImageView
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:background="@drawable/right_bottom" 
        android:layout_weight="0.50"
        android:contentDescription="@string/title"  />

</LinearLayout>



</LinearLayout>

目的を達成するための正しい方法を教えてください。この質問は基本的すぎるかもしれませんが、適切な解決策が見つかりませんでした。

私を助けてください。

4

1 に答える 1