Skip to content

Commit

Permalink
[UI/#11] OurTodoFragment 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Jan 4, 2024
1 parent 1a78863 commit 24d7571
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.going.presentation.todo.ourtodo.todolist

import com.going.presentation.R
import com.going.presentation.databinding.FragmentOurTodoBinding
import com.going.presentation.databinding.FragmentOurTodoCompleteBinding
import com.going.ui.base.BaseFragment
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class OurTodoCompleteFragment() : BaseFragment<FragmentOurTodoBinding>(R.layout.fragment_our_todo) {
class OurTodoCompleteFragment() :
BaseFragment<FragmentOurTodoCompleteBinding>(R.layout.fragment_our_todo_complete) {

}
22 changes: 22 additions & 0 deletions presentation/src/main/res/drawable/sel_todo_shape_tv_name.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_selected="false">
<shape android:shape="rectangle">
<stroke
android:width="2dp"
android:color="@color/gray_400" />
<corners android:radius="2dp" />
</shape>
</item>

<item android:state_selected="true">
<shape android:shape="rectangle">
<stroke
android:width="2dp"
android:color="@color/red_500" />
<corners android:radius="2dp" />
</shape>
</item>

</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp" />
<solid
android:color="@color/gray_50" />
</shape>
8 changes: 4 additions & 4 deletions presentation/src/main/res/layout/fragment_our_todo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp"
android:layout_marginTop="14dp"
android:background="@drawable/shape_white_fill_gray100_line_8_rect"
android:background="@drawable/shape_rect_8_white000_fill_gray100_line"
android:paddingHorizontal="18dp"
android:paddingTop="22dp"
android:paddingBottom="29dp"
Expand Down Expand Up @@ -168,7 +168,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp"
android:background="@drawable/shape_white_fill_gray100_line_8_rect"
android:background="@drawable/shape_rect_8_white000_fill_gray100_line"
android:paddingVertical="22dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -280,7 +280,7 @@
android:layout_height="5dp"
android:layout_marginHorizontal="10dp"
android:layerType="software"
android:src="@drawable/shape_gray100_dash_line" />
android:src="@drawable/shape_line_gray100_fill_dash_8" />

</LinearLayout>

Expand Down Expand Up @@ -318,7 +318,7 @@
android:elevation="2dp"
android:layout_marginEnd="16dp"
android:id="@+id/btn_our_todo_add_todo"
android:background="@drawable/shape_red500_fill_56_rect"
android:background="@drawable/shape_rect_56_red500_fill"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent">

Expand Down
28 changes: 28 additions & 0 deletions presentation/src/main/res/layout/fragment_our_todo_complete.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">

<data>

</data>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_our_todo_complete"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white_000">

<androidx.recyclerview.widget.RecyclerView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/rv_our_todo_complete"
android:layout_marginTop="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginHorizontal="23dp"
tools:listitem="@layout/item_our_todo"/>

</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
36 changes: 36 additions & 0 deletions presentation/src/main/res/layout/item_our_todo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:paddingBottom="15dp"
android:background="@drawable/shape_rect_4_gray50_fill">

<TextView
android:id="@+id/tv_our_todo_item_title"
style="@style/TextAppearance.Doorip.Body3.Medi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:textColor="@color/gray_700"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="숙소 예약금 걸기" />

<TextView
android:id="@+id/tv_our_todo_item_date"
style="@style/TextAppearance.Doorip.Detail3.Regular"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:textColor="@color/gray_300"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="2023.09.23까지" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 24d7571

Please sign in to comment.