Skip to content

Commit

Permalink
[ADD/#11] FAB 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Jan 4, 2024
1 parent f60d343 commit 1a78863
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 4 deletions.
9 changes: 9 additions & 0 deletions presentation/src/main/res/drawable/ic_plus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="14dp"
android:height="14dp"
android:viewportWidth="14"
android:viewportHeight="14">
<path
android:pathData="M5.951,14V8.057H0V6.004H5.951V0H8.175V6.004H14V8.057H8.175V14H5.951Z"
android:fillColor="#ffffff"/>
</vector>
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="56dp" />
<solid
android:color="@color/red_500" />
</shape>
43 changes: 39 additions & 4 deletions presentation/src/main/res/layout/fragment_our_todo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
app:layout_constraintTop_toTopOf="@id/rv_our_trip_friend" />

<ImageView
android:id="@+id/btn_our_todo_add"
android:id="@+id/btn_our_todo_add_friend"
android:layout_width="45dp"
android:layout_height="0dp"
android:layout_marginEnd="18dp"
Expand All @@ -236,9 +236,9 @@
android:layout_marginTop="4dp"
android:text="초대"
android:textColor="@color/gray_500"
app:layout_constraintEnd_toEndOf="@id/btn_our_todo_add"
app:layout_constraintStart_toStartOf="@id/btn_our_todo_add"
app:layout_constraintTop_toBottomOf="@id/btn_our_todo_add" />
app:layout_constraintEnd_toEndOf="@id/btn_our_todo_add_friend"
app:layout_constraintStart_toStartOf="@id/btn_our_todo_add_friend"
app:layout_constraintTop_toBottomOf="@id/btn_our_todo_add_friend" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down Expand Up @@ -309,6 +309,41 @@

</androidx.coordinatorlayout.widget.CoordinatorLayout>

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="14dp"
android:paddingHorizontal="18dp"
android:layout_marginBottom="24dp"
android:elevation="2dp"
android:layout_marginEnd="16dp"
android:id="@+id/btn_our_todo_add_todo"
android:background="@drawable/shape_red500_fill_56_rect"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="같이 할 일"
style="@style/TextAppearance.Doorip.Body1.Bold"
android:textColor="@color/white_000"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:id="@+id/tv_our_todo_add_todo"/>

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toEndOf="@id/tv_our_todo_add_todo"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:src="@drawable/ic_plus"
android:layout_marginStart="8dp"/>

</androidx.constraintlayout.widget.ConstraintLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

</layout>

0 comments on commit 1a78863

Please sign in to comment.