-
Notifications
You must be signed in to change notification settings - Fork 270
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
Android: Apply slider padding from css #170
base: main
Are you sure you want to change the base?
Conversation
Boss, will you merge, reject or request to update this feature? :) |
Since its java only, we will wait for iOS impl |
Please fix for ios also |
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.
Thank you for this 👍
return (int) (dp * Resources.getSystem().getDisplayMetrics().density); | ||
} | ||
|
||
public static int pxToDp(int px) { |
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.
Why not just using PixelUtil, instead of implementing both conversions on your own?
@BlackJohnny & @wojteg1337 I believe that this could solve the #258, how do you think? |
Any news on this? |
It would be nice if we could fix the padding issue #258 |
Summary:
This PR applies the padding information from the CSS style associated to the Slider component.
This can be useful when you need to add some overlay on the slider.
NOTE: I did not add the support for IOS. Maybe someone could help with this.
Test Plan:
or