-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : item_painting_color.xml 에 마진 5dp 추가 * feat : item_tool.xml 에 margin 주고 autoSizeTextType 속성 추가 * refactor : xml 에서 GridLayout 속성을 지정하도록 변경 * feat : 모바일 가로모드 대응 xml 구현 * feat : 테블릿 세로모드 xml 구현 * feat : 테블릿 가로모드 xml 구현 * feat : 다크테마와 라이트 테마에 onPrimary 색상 추가 및 각각 statusBar 색상을 onPrimary 로 변경 * feat : 모든 xml 에 PaintingView 배경색을 onPriamry로 변경하여, 다크모드에 대비 * feat : item_tool.xml 에 maxLine 속성을 1로 변경 * feat : 테블릿 세로모드 marginHorizontal 을 50->100 으로 변경 * refactor : 테블릿 세로모드 가이드라인을 통해 가로크기 조정
- Loading branch information
Showing
11 changed files
with
252 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?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="match_parent"> | ||
|
||
<woowacourse.paint.PaintingView | ||
android:id="@+id/paintingView" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:background="@color/onPrimary" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="1.0" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="1.0" /> | ||
|
||
<Button | ||
android:id="@+id/button_undo" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="17dp" | ||
android:text="@string/main_undo_button_text" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<com.google.android.material.slider.RangeSlider | ||
android:id="@+id/rs_stroke_controller" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="17dp" | ||
app:layout_constraintEnd_toStartOf="@id/guide_line" | ||
app:layout_constraintStart_toEndOf="@id/rv_painting_types" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/rv_colors" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:paddingHorizontal="17dp" | ||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | ||
app:layout_constraintEnd_toStartOf="@id/guide_line" | ||
app:layout_constraintStart_toEndOf="@id/rv_painting_types" | ||
app:layout_constraintTop_toBottomOf="@id/rs_stroke_controller" | ||
app:spanCount="5" | ||
tools:itemCount="5" | ||
tools:listitem="@layout/item_painting_color" /> | ||
|
||
<androidx.constraintlayout.widget.Guideline | ||
android:id="@+id/guide_line" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintGuide_percent="0.5" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/rv_painting_types" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:paddingHorizontal="17dp" | ||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:spanCount="4" | ||
tools:itemCount="4" | ||
tools:listitem="@layout/item_tool" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?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="match_parent"> | ||
|
||
<woowacourse.paint.PaintingView | ||
android:id="@+id/paintingView" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:background="@color/onPrimary" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"/> | ||
|
||
<Button | ||
android:id="@+id/button_undo" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="17dp" | ||
android:text="@string/main_undo_button_text" | ||
android:textSize="50sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<com.google.android.material.slider.RangeSlider | ||
android:id="@+id/rs_stroke_controller" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="17dp" | ||
app:layout_constraintEnd_toStartOf="@id/guide_line" | ||
app:layout_constraintStart_toEndOf="@id/rv_painting_types" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:trackHeight="40dp" /> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/rv_colors" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="17dp" | ||
android:orientation="vertical" | ||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | ||
app:layout_constraintEnd_toStartOf="@id/guide_line" | ||
app:layout_constraintStart_toEndOf="@id/rv_painting_types" | ||
app:layout_constraintTop_toBottomOf="@id/rs_stroke_controller" | ||
app:spanCount="5" | ||
tools:itemCount="5" | ||
tools:listitem="@layout/item_painting_color" | ||
tools:spanCount="5" /> | ||
|
||
<androidx.constraintlayout.widget.Guideline | ||
android:id="@+id/guide_line" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintGuide_percent="0.5" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/rv_painting_types" | ||
android:layout_width="200dp" | ||
android:layout_height="300dp" | ||
android:orientation="horizontal" | ||
android:paddingHorizontal="17dp" | ||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:spanCount="4" | ||
tools:itemCount="4" | ||
tools:listitem="@layout/item_tool" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?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="match_parent"> | ||
|
||
<woowacourse.paint.PaintingView | ||
android:id="@+id/paintingView" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:background="@color/onPrimary" | ||
app:layout_constraintBottom_toTopOf="@id/rs_stroke_controller" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<Button | ||
android:id="@+id/button_undo" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="17dp" | ||
android:text="@string/main_undo_button_text" | ||
android:textSize="50sp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<com.google.android.material.slider.RangeSlider | ||
android:id="@+id/rs_stroke_controller" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
app:layout_constraintBottom_toTopOf="@id/rv_colors" | ||
app:layout_constraintStart_toStartOf="@id/guide_lin_start" | ||
app:layout_constraintEnd_toEndOf="@id/guide_line_end" | ||
app:trackHeight="40dp" /> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/rv_colors" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | ||
app:layout_constraintBottom_toTopOf="@+id/rv_painting_types" | ||
app:layout_constraintStart_toStartOf="@id/guide_lin_start" | ||
app:layout_constraintEnd_toEndOf="@id/guide_line_end" | ||
app:spanCount="5" | ||
tools:itemCount="5" | ||
tools:listitem="@layout/item_painting_color" /> | ||
|
||
<androidx.constraintlayout.widget.Guideline | ||
android:id="@+id/guide_lin_start" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintGuide_percent="0.2" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<androidx.constraintlayout.widget.Guideline | ||
android:id="@+id/guide_line_end" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintGuide_percent="0.8" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/rv_painting_types" | ||
android:layout_width="0dp" | ||
android:layout_height="140dp" | ||
android:orientation="vertical" | ||
android:paddingVertical="20dp" | ||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="@id/guide_lin_start" | ||
app:layout_constraintEnd_toEndOf="@id/guide_line_end" | ||
app:spanCount="4" | ||
tools:itemCount="4" | ||
tools:listitem="@layout/item_tool" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Button xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_marginHorizontal="5dp" | ||
android:id="@+id/button_tool" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:autoSizeTextType="uniform" | ||
android:maxLines="1" | ||
tools:text="직사각형"> | ||
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="onPrimary">@color/black</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters