-
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
[feat] PingleTag 추가 #198
[feat] PingleTag 추가 #198
Conversation
PR 이름 수정해주세염 ~ |
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.
고생핑 ~ 다음부턴 이런 것도 feat으로 해주면 좋을 것 같아욤 ~ (add -> 진짜 파일 추가만 !!)
app/src/main/res/values/themes.xml
Outdated
<style name="Theme.Pingle.Tag" parent="Widget.MaterialComponents.Chip.Choice"> | ||
<item name="android:stateListAnimator">@null</item> | ||
<item name="chipMinTouchTargetSize">0dp</item> | ||
<item name="chipEndPadding">0dp</item> | ||
<item name="chipStartPadding">0dp</item> | ||
<item name="android:checked">false</item> | ||
<item name="chipMinHeight">0dp</item> | ||
<item name="backgroundTint">@null</item> | ||
<item name="rippleColor">@android:color/transparent</item> | ||
</style> |
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.
따로 만들지 않고 이미 만들어둔 Theme.Pingle.Chip 을 사용하는 게 좋을 것 같네요 !
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.
넹 적용 완!
app/src/main/res/values/themes.xml
Outdated
<item name="rippleColor">@android:color/transparent</item> | ||
</style> | ||
|
||
<style name="Theme.Pingle.Tag.L" parent="Theme.Pingle.Tag"> |
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.
<style name="Theme.Pingle.Tag.L" parent="Theme.Pingle.Tag"> | |
<style name="Theme.Pingle.Chip.Tag.L" parent="Theme.Pingle.Chip"> |
이런 식으로 해주면 되겠죠?
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.
적용 완
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.
네이밍 좋네욤 ~~
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.
우헤헤
app/src/main/res/values/themes.xml
Outdated
<style name="Theme.Pingle.Tag.M" parent="Theme.Pingle.Tag"> | ||
<item name="cornerRadius">50dp</item> | ||
<item name="textStartPadding">10dp</item> | ||
<item name="textEndPadding">10dp</item> | ||
<item name="android:paddingVertical">4dp</item> | ||
<item name="android:clickable">false</item> | ||
<item name="chipBackgroundColor">@color/g_10</item> | ||
<item name="android:textColor">@color/pingle_green</item> | ||
<item name="android:textAppearance">@style/TextAppearance.Pingle.Cap.Semi.12</item> | ||
</style> | ||
|
||
<style name="Theme.Pingle.Tag.S" parent="Theme.Pingle.Tag"> | ||
<item name="cornerRadius">50dp</item> | ||
<item name="textStartPadding">8dp</item> | ||
<item name="textEndPadding">8dp</item> | ||
<item name="android:paddingVertical">3dp</item> | ||
<item name="android:clickable">false</item> | ||
<item name="chipBackgroundColor">@color/g_10</item> | ||
<item name="android:textColor">@color/pingle_green</item> | ||
<item name="android:textAppearance">@style/TextAppearance.Pingle.Cap.Semi.10</item> | ||
</style> |
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.
겹치는 게 많으니 parent theme을 하나 만드는 방법도 괜찮아 보이네요 ~
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.
Theme.Pingle.Chip.Tag.All으로 만들어서 corenerRadius랑 backgroundTint 적용해씀다!
app/src/main/res/values/themes.xml
Outdated
<item name="android:clickable">true</item> | ||
<item name="chipBackgroundColor">@color/selector_pingle_tag_l_background</item> | ||
<item name="android:textColor">@color/selector_pingle_tag_l_text_color</item> | ||
<item name="android:textAppearance">@style/TextAppearance.Pingle.Sub.Semi.16</item> |
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.
체크 되고 안 되었을 때 textAppearance가 다른 것 같아요 확인 부탁합니당
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.
네엥
@@ -95,6 +95,41 @@ | |||
</item> | |||
</style> | |||
|
|||
<!-- tag --> | |||
<style name="Theme.Pingle.Chip.Tag.All" parent="Theme.Pingle.Chip"> | |||
<item name="cornerRadius">50dp</item> |
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.
요것도 중복!!
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.
굳 ~~
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.
고생핑
Related issue 🛠
Work Description ✏️
Screenshot 📸
Uncompleted Tasks 😅
N/A
To Reviewers 📢
backgroundTint로 하면 적용이 안 되고chipBackgroundColor로 설정해야 색상이 먹네용.. 새로운 사실 겟또!