ConstraintLayout内のScrollView内のConstraintLayoutが表示されない
どのようにすればScrollView内のConstraintLayoutを表示させることができますか?
Android Studioのバージョンは最新です。
xml
1<android.support.constraint.ConstraintLayout 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent"> 6 7 <android.support.v7.widget.Toolbar 8 android:id="@+id/toolbar" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content" 11 app:layout_constraintTop_toTopOf="parent" 12 app:layout_constraintLeft_toLeftOf="parent"> 13 </android.support.v7.widget.Toolbar> 14 15 <ScrollView 16 android:layout_width="match_parent" 17 android:layout_height="wrap_content" 18 app:layout_constraintLeft_toLeftOf="parent" 19 app:layout_constraintTop_toBottomOf="@id/toolbar"> 20 <android.support.constraint.ConstraintLayout 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content"> 23 <TextView 24 android:id="@+id/text" 25 style="@style/text" 26 android:text="hi" 27 app:layout_constraintLeft_toLeftOf="parent" 28 app:layout_constraintTop_toBottomOf="parent"/> 29 </android.support.constraint.ConstraintLayout> 30 </ScrollView> 31</android.support.constraint.ConstraintLayout>
回答1件
あなたの回答
tips
プレビュー