fix: 연차 설정 화면 ScrollView 추가
- 작은 화면에서 저장 버튼이 잘리지 않도록 ScrollView로 감싸기 - 저장 버튼 가시성 확보 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,128 +1,135 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:fillViewport="true">
|
||||||
android:padding="24dp"
|
|
||||||
android:gravity="center_horizontal">
|
|
||||||
|
|
||||||
<!-- Header Title -->
|
<LinearLayout
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="나의 연차 설정"
|
|
||||||
android:textSize="20sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="@color/text_primary"
|
|
||||||
android:layout_marginBottom="32dp"/>
|
|
||||||
|
|
||||||
<!-- Total Annual Leave Setting -->
|
|
||||||
<androidx.cardview.widget.CardView
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="24dp"
|
android:orientation="vertical"
|
||||||
app:cardCornerRadius="16dp"
|
android:padding="24dp"
|
||||||
app:cardElevation="4dp"
|
android:gravity="center_horizontal">
|
||||||
app:cardBackgroundColor="@color/surface">
|
|
||||||
|
|
||||||
<LinearLayout
|
<!-- Header Title -->
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="나의 연차 설정"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="@color/text_primary"
|
||||||
|
android:layout_marginBottom="32dp"/>
|
||||||
|
|
||||||
|
<!-- Total Annual Leave Setting -->
|
||||||
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:layout_marginBottom="24dp"
|
||||||
android:padding="24dp"
|
app:cardCornerRadius="16dp"
|
||||||
android:gravity="center">
|
app:cardElevation="4dp"
|
||||||
|
app:cardBackgroundColor="@color/surface">
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="총 연차"
|
android:orientation="vertical"
|
||||||
android:textSize="16sp"
|
android:padding="24dp"
|
||||||
android:textColor="@color/text_secondary"
|
android:gravity="center">
|
||||||
android:layout_marginBottom="16dp"/>
|
|
||||||
|
|
||||||
<!-- NumberPicker for Total Days -->
|
<TextView
|
||||||
<NumberPicker
|
android:layout_width="wrap_content"
|
||||||
android:id="@+id/npTotalDays"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:text="총 연차"
|
||||||
android:layout_height="wrap_content"
|
android:textSize="16sp"
|
||||||
android:layout_marginBottom="8dp"/>
|
android:textColor="@color/text_secondary"
|
||||||
|
android:layout_marginBottom="16dp"/>
|
||||||
|
|
||||||
<TextView
|
<!-- NumberPicker for Total Days -->
|
||||||
android:layout_width="wrap_content"
|
<NumberPicker
|
||||||
android:layout_height="wrap_content"
|
android:id="@+id/npTotalDays"
|
||||||
android:text="일"
|
android:layout_width="wrap_content"
|
||||||
android:textSize="14sp"
|
android:layout_height="wrap_content"
|
||||||
android:textColor="@color/text_tertiary"/>
|
android:layout_marginBottom="8dp"/>
|
||||||
|
|
||||||
</LinearLayout>
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="일"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/text_tertiary"/>
|
||||||
|
|
||||||
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Remaining Annual Leave Display -->
|
</androidx.cardview.widget.CardView>
|
||||||
<androidx.cardview.widget.CardView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="32dp"
|
|
||||||
app:cardCornerRadius="16dp"
|
|
||||||
app:cardElevation="4dp"
|
|
||||||
app:cardBackgroundColor="@color/surface">
|
|
||||||
|
|
||||||
<LinearLayout
|
<!-- Remaining Annual Leave Display -->
|
||||||
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:layout_marginBottom="32dp"
|
||||||
android:padding="24dp"
|
app:cardCornerRadius="16dp"
|
||||||
android:gravity="center">
|
app:cardElevation="4dp"
|
||||||
|
app:cardBackgroundColor="@color/surface">
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="남은 연차"
|
android:orientation="vertical"
|
||||||
android:textSize="16sp"
|
android:padding="24dp"
|
||||||
android:textColor="@color/text_secondary"
|
android:gravity="center">
|
||||||
android:layout_marginBottom="8dp"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tvRemainingDays"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:text="남은 연차"
|
||||||
android:text="0.0"
|
android:textSize="16sp"
|
||||||
android:textSize="36sp"
|
android:textColor="@color/text_secondary"
|
||||||
android:textStyle="bold"
|
android:layout_marginBottom="8dp"/>
|
||||||
android:textColor="@color/primary"
|
|
||||||
android:layout_marginBottom="4dp"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/tvRemainingDays"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:text="일"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="14sp"
|
android:text="0.0"
|
||||||
android:textColor="@color/text_tertiary"/>
|
android:textSize="36sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="@color/primary"
|
||||||
|
android:layout_marginBottom="4dp"/>
|
||||||
|
|
||||||
</LinearLayout>
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="일"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/text_tertiary"/>
|
||||||
|
|
||||||
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Calculation Info -->
|
</androidx.cardview.widget.CardView>
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="※ 연차: -1일 차감 / 반년: -0.5일 차감"
|
|
||||||
android:textSize="13sp"
|
|
||||||
android:textColor="@color/text_tertiary"
|
|
||||||
android:layout_marginBottom="24dp"
|
|
||||||
android:gravity="center"/>
|
|
||||||
|
|
||||||
<!-- Save Button -->
|
<!-- Calculation Info -->
|
||||||
<com.google.android.material.button.MaterialButton
|
<TextView
|
||||||
android:id="@+id/btnSaveAnnualLeave"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="56dp"
|
android:text="※ 연차: -1일 차감 / 반년: -0.5일 차감"
|
||||||
android:text="저장"
|
android:textSize="13sp"
|
||||||
android:textSize="16sp"
|
android:textColor="@color/text_tertiary"
|
||||||
android:textStyle="bold"
|
android:layout_marginBottom="24dp"
|
||||||
app:cornerRadius="12dp"
|
android:gravity="center"/>
|
||||||
android:backgroundTint="@color/primary"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
<!-- Save Button -->
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btnSaveAnnualLeave"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="56dp"
|
||||||
|
android:text="저장"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:cornerRadius="12dp"
|
||||||
|
android:backgroundTint="@color/primary"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|||||||
Reference in New Issue
Block a user