Fixed layout - apparently ConstraintLayout doesn't work properly for dialogs yet, at least in this case

This commit is contained in:
Christian Basler 2017-04-25 08:07:33 +02:00
parent d704a40b66
commit d36ffe1939

View File

@ -15,7 +15,7 @@
~ limitations under the License. ~ limitations under the License.
--> -->
<android.support.constraint.ConstraintLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -31,10 +31,9 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/select_encoding_warning" android:text="@string/select_encoding_warning"
app:layout_constraintLeft_toLeftOf="parent" android:layout_alignParentTop="true"
app:layout_constraintTop_toTopOf="parent" android:layout_alignParentStart="true"
tools:layout_constraintLeft_creator="1" android:layout_alignParentEnd="true"/>
tools:layout_constraintTop_creator="1"/>
<RadioGroup <RadioGroup
@ -43,9 +42,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="24dp" android:paddingBottom="24dp"
android:paddingTop="24dp" android:paddingTop="24dp"
app:layout_constraintLeft_toLeftOf="@+id/description" android:layout_alignStart="@+id/description"
app:layout_constraintRight_toRightOf="@+id/description" android:layout_alignEnd="@+id/description"
app:layout_constraintTop_toBottomOf="@+id/description"> android:layout_below="@+id/description">
<RadioButton <RadioButton
android:id="@+id/simple" android:id="@+id/simple"
@ -72,10 +71,8 @@
android:text="@string/ok" android:text="@string/ok"
android:textColor="@color/colorAccent" android:textColor="@color/colorAccent"
app:layout_constraintHorizontal_bias="1.0" app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintRight_toRightOf="@+id/radioGroup" android:layout_alignRight="@+id/radioGroup"
app:layout_constraintTop_toBottomOf="@+id/radioGroup" android:layout_below="@+id/radioGroup"/>
tools:layout_constraintRight_creator="1"
tools:layout_constraintTop_creator="1"/>
<Button <Button
android:id="@+id/dismiss" android:id="@+id/dismiss"
@ -84,7 +81,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/cancel" android:text="@string/cancel"
android:textColor="@color/colorAccent" android:textColor="@color/colorAccent"
app:layout_constraintRight_toLeftOf="@+id/ok" android:layout_toLeftOf="@+id/ok"
app:layout_constraintTop_toBottomOf="@+id/radioGroup"/> android:layout_below="@+id/radioGroup"/>
</android.support.constraint.ConstraintLayout> </RelativeLayout>