Die Ränder der linken Taste ändern sich ständig, wie Sie in dem Video sehen können und ich möchte, dass sie sich nicht ändern.Constraint Layout Ränder ändern sich ständig
Ich mache einen Taschenrechner und ich möchte alle Tasten zusammen bewegen, ohne die Ränder zu ändern.
Das Video ist da: https://youtu.be/UT3zINpaMhY
Hier ist der Code:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.a3ibm.calculator.MainActivity">
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
app:layout_constraintBaseline_toBaselineOf="@+id/button2"
app:layout_constraintRight_toLeftOf="@+id/button2"
android:layout_marginRight="86dp" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintHorizontal_bias="0.864"
app:layout_constraintVertical_bias="0.319" />
</android.support.constraint.ConstraintLayout>
Unklar, was Sie bitten, erklären Sie bitte Ihr Problem. Was ist der Zweck dieses Layouts? was wirst du mit 'ConstraintLayout' erreichen? – Blasanka
Ich mache einen Taschenrechner und ich möchte alle Knöpfe zusammen bewegen, ohne die Ränder zu ändern. –