-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add chevron option to title link #371
Conversation
@@ -133,6 +133,7 @@ | |||
</attr> | |||
<attr name="link" format="string" /> | |||
<attr name="linkOnClick" format="string" /> | |||
<attr name="linkWithChevron" format="boolean"/> |
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.
named "linkWithChevron" because withChevron attr already declared
📱 New catalog for testing generated: Download |
@@ -84,8 +91,10 @@ class TitleView @JvmOverloads constructor( | |||
) | |||
.takeIf { it } | |||
?.let { setTitleHeading() } | |||
|
|||
linkTextView.setTextAndVisibility(styledAttrs.getText(R.styleable.TitleView_link)) | |||
val text = styledAttrs.getText(R.styleable.TitleView_link) |
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.
I would rename it to link
or linkText
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.
Done!
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/title_text" |
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.
Is this not too much indenting? Could you review your code style in AS?
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.
oh yes! solved 😄
📱 New catalog for testing generated: Download |
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.
Marvelous!
📱 New catalog for testing generated: Download |
📱 New catalog for testing generated: Download |
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.
LGTM!
🥅 What's the goal?
As figma definition title link could have chevron.
🚧 How do we do it?
☑️ Checks
🧪 How can I test this?
If it cannot be tested explain why.