<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintDimensionRatio="h,12:7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ryan" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="184dp"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="@+id/imageView"
app:layout_constraintTop_toTopOf="@+id/imageView"
app:srcCompat="@drawable/logo" />
<TextView
android:id="@+id/textView13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="@string/title_label"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView" />
<TextView
android:id="@+id/textView14"
android:layout_width="0dp"
android:layout_height="159dp"
android:layout_marginTop="24dp"
android:text="@string/vision_desc_label"
app:layout_constraintEnd_toEndOf="@+id/imageView2"
app:layout_constraintStart_toStartOf="@+id/textView15"
app:layout_constraintTop_toBottomOf="@+id/textView15" />
<TextView
android:id="@+id/textView15"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/vision_label"
app:layout_constraintStart_toStartOf="@+id/textView16"
app:layout_constraintTop_toBottomOf="@+id/textView16" />
<TextView
android:id="@+id/textView16"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/dsec_label"
app:layout_constraintStart_toStartOf="@+id/textView13"
app:layout_constraintTop_toBottomOf="@+id/textView13" />
</androidx.constraintlayout.widget.ConstraintLayout>
-실습하기
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#E4CF0F"
android:backgroundTint="#D5C008">
<Button
android:id="@+id/button33"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="4"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/button51"
app:layout_constraintEnd_toStartOf="@+id/button34"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button30" />
<Button
android:id="@+id/button53"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="9"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button52"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button52"
app:layout_constraintTop_toTopOf="@+id/button52"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/button31"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="2"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button30"
app:layout_constraintEnd_toStartOf="@+id/button32"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button30"
app:layout_constraintTop_toTopOf="@+id/button30"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/button34"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="5"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button33"
app:layout_constraintEnd_toStartOf="@+id/button35"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button33"
app:layout_constraintTop_toTopOf="@+id/button33"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/button35"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="6"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button34"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button34"
app:layout_constraintTop_toTopOf="@+id/button34"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/button51"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="7"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/button54"
app:layout_constraintEnd_toStartOf="@+id/button52"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button33" />
<Button
android:id="@+id/button54"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/button55"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button51" />
<Button
android:id="@+id/button55"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="0"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button54"
app:layout_constraintEnd_toStartOf="@+id/button56"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button54"
app:layout_constraintTop_toTopOf="@+id/button54"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/button56"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="X"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button55"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button55"
app:layout_constraintTop_toTopOf="@+id/button55"
app:layout_constraintVertical_bias="0.0" />
<Button
android:id="@+id/button30"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="1"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/button33"
app:layout_constraintEnd_toStartOf="@+id/button31"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/guideline2" />
<Button
android:id="@+id/button32"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="3"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button31"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button31"
app:layout_constraintTop_toTopOf="@+id/button31"
app:layout_constraintVertical_bias="0.0" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.73" />
<Button
android:id="@+id/button52"
android:layout_width="0dp"
android:layout_height="0dp"
android:backgroundTint="#1E9F9F"
android:insetTop="0dp"
android:insetBottom="0dp"
android:text="8"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="@+id/button51"
app:layout_constraintEnd_toStartOf="@+id/button53"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/button51"
app:layout_constraintTop_toTopOf="@+id/button51"
app:layout_constraintVertical_bias="0.0" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="98dp"
android:layout_height="86dp"
app:layout_constraintBottom_toTopOf="@+id/button31"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.328"
app:srcCompat="@drawable/fingerprint" />
<TextView
android:id="@+id/textView21"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:text="@string/logo_label"
app:layout_constraintEnd_toEndOf="@+id/imageView3"
app:layout_constraintStart_toStartOf="@+id/imageView3"
app:layout_constraintTop_toBottomOf="@+id/imageView3" />
<TextView
android:id="@+id/textView23"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="@string/pass_label"
app:layout_constraintBottom_toBottomOf="@+id/textView22"
app:layout_constraintEnd_toStartOf="@+id/textView24"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/textView22"
app:layout_constraintTop_toTopOf="@+id/textView22"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/textView24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="@string/pass_label"
app:layout_constraintBottom_toBottomOf="@+id/textView23"
app:layout_constraintEnd_toStartOf="@+id/textView25"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/textView23"
app:layout_constraintTop_toTopOf="@+id/textView23"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/textView22"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="32dp"
android:text="@string/pass_label"
app:layout_constraintEnd_toStartOf="@+id/textView23"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView21" />
<TextView
android:id="@+id/textView25"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="@string/pass_label"
app:layout_constraintBottom_toBottomOf="@+id/textView24"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/textView24"
app:layout_constraintTop_toTopOf="@+id/textView24"
app:layout_constraintVertical_bias="0.0" />
</androidx.constraintlayout.widget.ConstraintLayout>