diff --git a/app/src/main/res/layout/fragment_contact.xml b/app/src/main/res/layout/fragment_contact.xml index 770b298a..645bbb5f 100644 --- a/app/src/main/res/layout/fragment_contact.xml +++ b/app/src/main/res/layout/fragment_contact.xml @@ -15,7 +15,8 @@ + android:layout_height="match_parent" + android:background="@color/paleGrayBackground"> @@ -71,11 +72,11 @@ android:layout_height="wrap_content" android:layout_marginEnd="@dimen/margin_medium" android:layout_marginTop="@dimen/margin_large" + android:hint="@string/email_address" + android:labelFor="@+id/contactEmailEditText" app:error="@{contactViewModel.emailInputError}" app:errorEnabled="true" - android:labelFor="@+id/contactEmailEditText" app:layout_constraintEnd_toEndOf="parent" - android:hint="@string/email_address" app:layout_constraintStart_toEndOf="@+id/contactNameInputLayout" app:layout_constraintTop_toBottomOf="@+id/topicSpinner"> @@ -100,11 +101,11 @@ android:layout_marginEnd="@dimen/margin_large" android:layout_marginStart="@dimen/margin_large" android:hint="@string/your_message" + android:labelFor="@+id/contactMessageEditText" app:error="@{contactViewModel.messageInputError}" app:errorEnabled="true" app:hintEnabled="false" android:scrollbars="vertical" - android:labelFor="@+id/contactMessageEditText" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/contactNameInputLayout"> @@ -114,6 +115,7 @@ style="@style/ContactMessageInputStyle" android:layout_width="match_parent" android:layout_height="113dp" + android:hint="@string/your_message" android:paddingBottom="12dp" android:paddingEnd="@dimen/margin_medium" android:paddingStart="@dimen/margin_medium" @@ -126,12 +128,12 @@ android:id="@+id/characterCounter" android:layout_width="0dp" android:layout_height="wrap_content" + android:paddingTop="113dp" android:text="@{contactViewModel.messageCounter}" android:textSize="@dimen/text_size_tiny" app:layout_constraintEnd_toEndOf="@id/contactMessageInputLayout" - tools:layout_editor_absoluteY="291dp" - android:paddingTop="113dp" app:layout_constraintTop_toTopOf="@id/contactMessageInputLayout" + tools:layout_editor_absoluteY="291dp" tools:text="12 / 250"/> @color/colorAccent @color/paleGray @color/colorAccent + false + false