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