Skip to content

Conversation

@minwang1
Copy link
Contributor

@minwang1 minwang1 commented Sep 25, 2022

Link to GitHub issues it solves. closes #1920

pekingme
pekingme previously approved these changes Sep 26, 2022
Copy link
Contributor

@pekingme pekingme left a 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>
Copy link
Contributor

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.

Copy link
Contributor

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

Comment on lines 72 to 75
<!-- The radius of the active tick. -->
<attr name="activeTickRadius" format="dimension" />
<!-- The radius of the inactive tick. -->
<attr name="inactiveTickRadius" format="dimension" />
Copy link
Contributor

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.

Copy link
Contributor

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.

@pekingme pekingme dismissed their stale review September 26, 2022 22:47

Sorry. Undo approval, change to request changes.

Copy link
Contributor

@pekingme pekingme left a 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.

Comment on lines 72 to 75
<!-- The radius of the active tick. -->
<attr name="activeTickRadius" format="dimension" />
<!-- The radius of the inactive tick. -->
<attr name="inactiveTickRadius" format="dimension" />
Copy link
Contributor

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>
Copy link
Contributor

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

@minwang1
Copy link
Contributor Author

@pekingme thanks, please review again.

Copy link
Contributor

@pekingme pekingme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minwang1
Copy link
Contributor Author

please check it out

Copy link
Contributor

@pekingme pekingme left a 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.

@pekingme pekingme added Reviewing Internally An internal change has been created and sent for review. and removed Work in progress (WIP) PR labels Oct 4, 2022
@pekingme pekingme self-assigned this Oct 4, 2022
@pekingme pekingme added Resolving Internal Failures The changes in this PR cause internal test failures. Team is working on resolving them. Reviewing Internally An internal change has been created and sent for review. and removed Reviewing Internally An internal change has been created and sent for review. Resolving Internal Failures The changes in this PR cause internal test failures. Team is working on resolving them. labels Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewing Internally An internal change has been created and sent for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Slider] Tick size changeable

2 participants