-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI/#44] 취향 태그 뷰 / UI 수정 #49
Changes from 6 commits
e99f325
9d54c17
bee5ed6
a6be1f5
fdc934b
257d189
de5bebd
39e4754
9eb3bc6
2c59c56
9749194
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package com.going.domain.entity | ||
|
||
data class PreferenceData( | ||
val number: Int, | ||
val leftPrefer: String, | ||
val number: String, | ||
val question : String, | ||
val rightPrefer: String, | ||
val leftPrefer : String, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.going.presentation.preferencetag | ||
|
||
import android.content.Context | ||
import android.graphics.Rect | ||
import android.view.View | ||
import androidx.recyclerview.widget.RecyclerView | ||
|
||
class PreferenceTagDecoration (val context: Context) : RecyclerView.ItemDecoration() { | ||
|
||
override fun getItemOffsets( | ||
outRect: Rect, | ||
view: View, | ||
parent: RecyclerView, | ||
state: RecyclerView.State | ||
) { | ||
super.getItemOffsets(outRect, view, parent, state) | ||
val position = parent.getChildAdapterPosition(view) | ||
|
||
if (position == 0) outRect.top = 50 | ||
else outRect.top = 0 | ||
outRect.bottom = 10 | ||
Comment on lines
+19
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 리사이클러뷰를 이렇게......진짜 유빈 갓이네 |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:aapt="http://schemas.android.com/aapt" | ||
android:width="360dp" | ||
android:height="104dp" | ||
android:viewportWidth="360" | ||
android:viewportHeight="104"> | ||
<path | ||
android:pathData="M0,0h360v104h-360z"> | ||
<aapt:attr name="android:fillColor"> | ||
<gradient | ||
android:startX="180" | ||
android:startY="0" | ||
android:endX="180" | ||
android:endY="104" | ||
android:type="linear"> | ||
<item android:offset="0" android:color="#00F3F3F6"/> | ||
<item android:offset="0.28" android:color="#FFF3F3F6"/> | ||
</gradient> | ||
</aapt:attr> | ||
</path> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="34dp" | ||
android:height="22dp" | ||
android:viewportWidth="34" | ||
android:viewportHeight="22"> | ||
<path | ||
android:pathData="M16.907,20.194C15.187,21.336 13.128,22 10.914,22C4.886,22 0,17.075 0,11C0,4.925 4.886,0 10.914,0C13.128,0 15.187,0.664 16.907,1.806C18.647,0.664 20.729,0 22.967,0C29.061,0 34.001,4.925 34.001,11C34.001,17.075 29.061,22 22.967,22C20.729,22 18.647,21.336 16.907,20.194Z" | ||
android:fillColor="#FF4F17" | ||
android:fillType="evenOdd"/> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item> | ||
<shape android:shape="rectangle"> | ||
<solid android:color="@color/white_000" /> | ||
</shape> | ||
</item> | ||
<item | ||
android:left="-2dp" | ||
android:right="-2dp" | ||
android:top="-2dp"> | ||
<shape android:shape="rectangle"> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/gray_200" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_checked="true"> | ||
<shape> | ||
<solid android:color="@color/black_000" /> | ||
<corners android:radius="24dp" /> | ||
<solid android:color="@color/gray_400" /> | ||
<corners android:radius="4dp" /> | ||
Comment on lines
+5
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 디자인 반영 좋아요~ gray 700 좋습니다~ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 푸하하 gray_400이지롱 |
||
</shape> | ||
</item> | ||
|
||
<item android:state_checked="false"> | ||
<shape> | ||
<solid android:color="@color/gray_300" /> | ||
<corners android:radius="24dp" /> | ||
<solid android:color="@color/gray_50" /> | ||
<corners android:radius="4dp" /> | ||
</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"> | ||
<solid android:color="@color/white_000" /> | ||
<corners android:radius="4dp" /> | ||
<stroke android:color="@color/gray_200" android:width="1dp" /> | ||
</shape> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 함수화 좋습니다~