Skip to content

Conversation

@melikaafrakhteh
Copy link

What?

To support different sizes for normal and selected dots, I added getter and setter for them.

@tralfamadore
Copy link
Contributor

Hi, thank you for your contribution, could you please add changelog record for the change you made?

*
* @param size dot color
*/
public void setDotSize(int size) {
Copy link

Choose a reason for hiding this comment

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

What is the reason for this feature? Do you need dynamically change dot sizes?

Copy link
Author

@melikaafrakhteh melikaafrakhteh Sep 26, 2022

Choose a reason for hiding this comment

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

yes, because I cannot use xml and I have to change the size of dots programmatically in code. The default size is not ok for my slider.

* @param size dot color
*/
public void setDotSize(int size) {
dotNormalSize = size;
Copy link

Choose a reason for hiding this comment

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

seems like you need also change dotMinimumSize, like in constructor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants