|
|
|
@ -6,89 +6,126 @@ |
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
tools:context=".ui.main.ui.visitor.appointment.VisitorAppointmentFragment"> |
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
|
<androidx.core.widget.NestedScrollView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center_vertical"> |
|
|
|
|
|
|
|
|
|
<AutoCompleteTextView |
|
|
|
|
android:id="@+id/appointment" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:completionThreshold="1" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:hint="@string/prompt_appointment" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
android:fillViewport="true"> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/choose_time_layout" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/appointment"> |
|
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:text="@string/prompt_choose_time" /> |
|
|
|
|
android:layout_gravity="center_vertical"> |
|
|
|
|
|
|
|
|
|
<Spinner |
|
|
|
|
android:id="@+id/choose_time" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
<AutoCompleteTextView |
|
|
|
|
android:id="@+id/appointment" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:completionThreshold="1" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:hint="@string/prompt_appointment" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/tip" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:textSize="18sp" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/appointment" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/show_word_top" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/choose_time_layout" /> |
|
|
|
|
<EditText |
|
|
|
|
android:id="@+id/chooseDate" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:ems="10" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:hint="@string/prompt_choose_date" |
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
android:inputType="date" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tip" /> |
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
|
android:id="@+id/notes" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="@dimen/size_200" |
|
|
|
|
android:background="@drawable/border" |
|
|
|
|
android:ems="15" |
|
|
|
|
android:gravity="start|top" |
|
|
|
|
android:hint="@string/prompt_input_notes" |
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
android:inputType="textMultiLine" |
|
|
|
|
android:maxLength="@integer/post_content" |
|
|
|
|
android:maxLines="@integer/post_content_maxLines" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/show_word_top" /> |
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/choose_time_layout" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/chooseDate"> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/show_word_bottom" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/notes" /> |
|
|
|
|
<TextView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:text="@string/prompt_choose_time" /> |
|
|
|
|
|
|
|
|
|
<Spinner |
|
|
|
|
android:id="@+id/choose_time" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/show_word_top" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/choose_time_layout" /> |
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
|
android:id="@+id/notes" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="@dimen/size_200" |
|
|
|
|
android:background="@drawable/border" |
|
|
|
|
android:ems="15" |
|
|
|
|
android:gravity="start|top" |
|
|
|
|
android:hint="@string/prompt_input_notes" |
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
android:inputType="textMultiLine" |
|
|
|
|
android:maxLength="@integer/post_content" |
|
|
|
|
android:maxLines="@integer/post_content_maxLines" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/show_word_top" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/show_word_bottom" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/notes" /> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/submit" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:enabled="false" |
|
|
|
|
android:text="@string/submit_appointment" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/show_word_bottom" /> |
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
|
</LinearLayout> |
|
|
|
|
</androidx.core.widget.NestedScrollView> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/submit" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:text="@string/submit_appointment" |
|
|
|
|
android:enabled="false" |
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/show_word_bottom" /> |
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
|
</FrameLayout> |