Сonnect correct values

Report a typo

This is a problem that often occurs in real life. You have an XML code where resource values are hardcoded. You need to arrange them according to their meaning.

We've also attached an app layout to make it easier for you to navigate the names and locations of the items.

Android app with "to-do list" title two EditTexts and CheckBox

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="16dp">

    <EditText
        android:id="@+id/titleEditText"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Title"
        android:inputType="text" />

    <EditText
        android:id="@+id/descriptionEditText"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Description"
        android:inputType="textMultiLine" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginTop="16dp"
        android:text="Priority"
        android:textSize="18sp" />

    <CheckBox
        android:id="@+id/priorityCheckBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:text="Important"
        android:textSize="18sp" />

</LinearLayout>
Match the items from left and right columns
android:padding="16dp"
android:hint="Title"
android:hint="Description"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:text="Priority"
android:textSize="18sp"
android:text="Important"
android:layout_marginTop="@dimen/verticalSpace"
android:padding="@dimen/allSideSpace"
android:text="@string/important"
android:hint="@string/text_description"
android:layout_marginStart="@dimen/horizontalSpace"
android:textSize="@dimen/mediumTextSize"
android:hint="@string/text_title"
android:text="@string/priority"
___

Create a free account to access the full topic