feat(gift): 운송장 등록 화면 레이아웃을 추가한다
This commit is contained in:
@@ -0,0 +1,231 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/black"
|
||||
android:focusableInTouchMode="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="@dimen/spacing_4">
|
||||
<ImageButton
|
||||
android:id="@+id/btn_back"
|
||||
android:layout_width="@dimen/spacing_48"
|
||||
android:layout_height="@dimen/spacing_48"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/a11y_back"
|
||||
android:src="@drawable/ic_new_bar_back" />
|
||||
<TextView
|
||||
style="@style/Typography.Heading4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:fontFamily="@font/medium"
|
||||
android:text="@string/gift_tracking_title"
|
||||
android:textColor="@color/white" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="@dimen/spacing_14"
|
||||
android:paddingTop="@dimen/spacing_24"
|
||||
android:paddingBottom="@dimen/spacing_48">
|
||||
<TextView
|
||||
style="@style/Typography.Body1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/gift_detail_info"
|
||||
android:textColor="@color/white" />
|
||||
<LinearLayout
|
||||
android:id="@+id/summary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_12"
|
||||
android:background="@drawable/bg_creator_channel_fantalk_reply"
|
||||
android:padding="@dimen/spacing_14"
|
||||
android:orientation="vertical" />
|
||||
<TextView
|
||||
style="@style/Typography.Body1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_24"
|
||||
android:text="@string/gift_tracking_destination"
|
||||
android:textColor="@color/white" />
|
||||
<LinearLayout
|
||||
android:id="@+id/mailbox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_12"
|
||||
android:background="@drawable/bg_creator_channel_fantalk_reply"
|
||||
android:padding="@dimen/spacing_14"
|
||||
android:orientation="vertical" />
|
||||
<TextView
|
||||
style="@style/Typography.Body1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_24"
|
||||
android:text="@string/gift_detail_tracking"
|
||||
android:textColor="@color/white" />
|
||||
<TextView
|
||||
style="@style/Typography.Body5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_12"
|
||||
android:labelFor="@id/courier"
|
||||
android:text="@string/gift_tracking_courier"
|
||||
android:textColor="@color/gray_300" />
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_4"
|
||||
android:background="@drawable/bg_creator_channel_fantalk_reply">
|
||||
<Spinner
|
||||
android:id="@+id/courier"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:backgroundTint="@color/gray_400"
|
||||
android:minHeight="@dimen/spacing_48"
|
||||
android:popupBackground="@color/gray_900"
|
||||
android:spinnerMode="dropdown" />
|
||||
</FrameLayout>
|
||||
<TextView
|
||||
style="@style/Typography.Body5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_20"
|
||||
android:labelFor="@id/tracking_number"
|
||||
android:text="@string/gift_tracking_number"
|
||||
android:textColor="@color/gray_300" />
|
||||
<EditText
|
||||
android:id="@+id/tracking_number"
|
||||
style="@style/Typography.Body3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_4"
|
||||
android:background="@drawable/bg_creator_channel_fantalk_reply"
|
||||
android:backgroundTint="@null"
|
||||
android:hint="@string/gift_tracking_number_hint"
|
||||
android:imeOptions="actionDone"
|
||||
android:importantForAutofill="no"
|
||||
android:inputType="number"
|
||||
android:digits="0123456789"
|
||||
android:maxLength="14"
|
||||
android:minHeight="@dimen/spacing_48"
|
||||
android:padding="@dimen/spacing_14"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/gray_500" />
|
||||
<TextView
|
||||
android:id="@+id/tracking_number_error"
|
||||
style="@style/Typography.Caption3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_8"
|
||||
android:accessibilityLiveRegion="polite"
|
||||
android:text="@string/gift_tracking_number_error"
|
||||
android:textColor="@color/red_400"
|
||||
android:visibility="gone" />
|
||||
<TextView
|
||||
style="@style/Typography.Caption3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_24"
|
||||
android:background="@drawable/bg_creator_channel_fantalk_reply"
|
||||
android:padding="@dimen/spacing_14"
|
||||
android:text="@string/gift_tracking_guidance"
|
||||
android:textColor="@color/gray_300" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<ProgressBar
|
||||
android:id="@+id/progress"
|
||||
android:layout_width="@dimen/spacing_48"
|
||||
android:layout_height="@dimen/spacing_48"
|
||||
android:layout_gravity="center"
|
||||
android:indeterminateTint="@color/soda_400" />
|
||||
<LinearLayout
|
||||
android:id="@+id/error"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/spacing_24"
|
||||
android:visibility="gone">
|
||||
<TextView
|
||||
android:id="@+id/error_message"
|
||||
style="@style/Typography.Body3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/gray_500" />
|
||||
<Button
|
||||
android:id="@+id/retry"
|
||||
style="@style/Typography.Body5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_14"
|
||||
android:background="@drawable/bg_creator_channel_live_retry"
|
||||
android:backgroundTint="@color/gray_800"
|
||||
android:minHeight="@dimen/spacing_48"
|
||||
android:paddingHorizontal="@dimen/spacing_20"
|
||||
android:text="@string/gift_inbox_retry"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@color/white" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/actions"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/spacing_14"
|
||||
android:paddingVertical="@dimen/spacing_8"
|
||||
android:visibility="gone">
|
||||
<android.widget.Button
|
||||
android:id="@+id/cancel"
|
||||
style="@style/Typography.Body2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/spacing_8"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_creator_channel_outline_button"
|
||||
android:backgroundTint="@null"
|
||||
android:enabled="false"
|
||||
android:minHeight="@dimen/spacing_48"
|
||||
android:padding="@dimen/spacing_14"
|
||||
android:text="@string/gift_inbox_canceled"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@color/gray_500" />
|
||||
<android.widget.Button
|
||||
android:id="@+id/submit"
|
||||
style="@style/Typography.Heading4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_creator_channel_fantalk_write_send_disabled"
|
||||
android:backgroundTint="@null"
|
||||
android:enabled="false"
|
||||
android:fontFamily="@font/medium"
|
||||
android:minHeight="@dimen/spacing_48"
|
||||
android:padding="@dimen/spacing_14"
|
||||
android:text="@string/gift_tracking_submit"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="@color/gray_500" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user