Böyle basit bir düzen vardır: beklediğim olarak LinearLayout scrollview doldurmak olmaz NedenseEkranı doldurmak için Düzen nasıl uzatılır?
<ScrollView android:layout_height="0dp" android:layout_width="fill_parent" android:layout_weight="1" android:background="@color/red_start">
<LinearLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical" android:background="@color/blue_start">
<TextView style="@style/MyTextViewLabel" android:text="From" android:layout_marginTop="5dp"/>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/shape_white_rounded">
<TextView style="@style/MyTextViewLabel.Black" android:id="@+id/tv_sender" />
</LinearLayout>
<TextView style="@style/MyTextViewLabel" android:text="Subject" android:layout_marginTop="5dp"/>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/shape_white_rounded">
<TextView style="@style/MyTextViewLabel.Black" android:id="@+id/tv_subject" />
</LinearLayout>
<TextView style="@style/MyTextViewLabel" android:text="Body" android:layout_marginTop="5dp"/>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/shape_white_rounded">
<TextView style="@style/MyTextViewLabel.Black" android:id="@+id/tv_body" />
</LinearLayout>
</LinearLayout>
</ScrollView>
(o posta için var). Temel olarak, tv_body ekranını doldurmak istiyorum ve daha fazla metin varsa - kaydırılabilir olmalıdır. Şu an böyle görünüyor. O scrollview streç göstermek için renkleri eklendi ama LinearLayout Eğer android:layout_height="match_parent"
için scrollview içinde android:layout_height="0dp"
değiştirmek ne olur .. değil
Büyük yapmadığını, teşekkürler! Bu – katit
parlak çalıştım, bana da yardımcı oldu .. – bluszcz
İç içe geçirilmiş Doğrusal düzenler Scroll View içinde. Bu durumda işe yaramıyor :( –