In letzter Zeit gibt es mit Android Studio 2.2 ein neues ConstraintLayout, das das Entwerfen erheblich vereinfacht, aber im Gegensatz zu RelativeLayoutund Linearlayoutkann ich kein ScrollViewSurround verwenden ConstraintLayot. Ist das möglich? Wenn das so ist, wie?
dh
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
<android.support.constraint.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
<!-- Have whatever children you want inside -->
</android.support.constraint.ConstraintLayout>
</ScrollView>
layout_height="wrap_content", zeigt die App einen leeren Bildschirm an, aber wenn ich benutze layout_height="match_parent", wird die App nicht scrollen.