В layout присутствуют несколько вертикально расположенных TextView но отображается только один,верхний.
Что не так, как исправить?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#dcd8c8"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/txt91"
android:textColor="#000000"
android:text="Глава №1"
android:textSize="24sp"
android:textStyle="bold" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="100dp">
<TextView
android:id="@+id/txt92"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="#000000"
android:textSize="18sp"
android:text="@string/text103"/>
</ScrollView>
</LinearLayout>
TextView
занимать всю площадь контейнера (LinearLayout
), в который он вложен (высота и ширинаmatch_parent
) - он и занимает ее, остальным не осталось места,