-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Slider] setup/get active and inactive tick radius #2994
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
Conversation
pekingme
left a comment
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.
Thanks for the PR!
| <dimen name="mtrl_slider_track_height">4dp</dimen> | ||
|
|
||
| <dimen name="mtrl_slider_tick_radius">1dp</dimen> | ||
| <dimen name="mtrl_slider_inactive_tick_radius">1dp</dimen> |
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.
Since this is same as the active one, let's remove this and just keep mtrl_slider_tick_radius and use it for both activeTickRadius and inactiveTickRadius.
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.
Please remove mtrl_slider_inactive_tick_radius
| <!-- The radius of the active tick. --> | ||
| <attr name="activeTickRadius" format="dimension" /> | ||
| <!-- The radius of the inactive tick. --> | ||
| <attr name="inactiveTickRadius" format="dimension" /> |
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.
Remember to add this in the public.xml.
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.
Please rename these to tickRadiusActive and tickRadiusInactive. And move them right below the tickColorXXX attributes.
Sorry. Undo approval, change to request changes.
pekingme
left a comment
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.
Approval with change requests.
| <!-- The radius of the active tick. --> | ||
| <attr name="activeTickRadius" format="dimension" /> | ||
| <!-- The radius of the inactive tick. --> | ||
| <attr name="inactiveTickRadius" format="dimension" /> |
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.
Please rename these to tickRadiusActive and tickRadiusInactive. And move them right below the tickColorXXX attributes.
| <dimen name="mtrl_slider_track_height">4dp</dimen> | ||
|
|
||
| <dimen name="mtrl_slider_tick_radius">1dp</dimen> | ||
| <dimen name="mtrl_slider_inactive_tick_radius">1dp</dimen> |
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.
Please remove mtrl_slider_inactive_tick_radius
|
@pekingme thanks, please review again. |
pekingme
left a comment
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.
Thanks! Could you also add the new attributes in the doc?
|
please check it out |
pekingme
left a comment
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.
Great! Will pull this for internal reviews.
Link to GitHub issues it solves. closes #1920