Skip to content
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

RoundedCornersTransformation support individual corner radius setting #85

Closed
kenshin171 opened this issue Sep 7, 2019 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@kenshin171
Copy link

Is your feature request related to a problem? Please describe.
Currently the RoundedCornersTransformation only allows the setting of the radius for all corners, RoundedCornersTransformation(radius:Float). It would be nice to have the flexibility to specify the corners that I would to have the radius applied only.

Describe the solution you'd like
Example would be for the api to be like RoundedCornersTransformation(radius:Float, RoundedCornersTransformation.TOP_LEFT or RoundedCornersTransformation.TOP_RIGHT) using an IntDef to specify corners to apply the radius.

The IntDef list could be like

RoundedCornersTransformation.TOP_RIGHT
RoundedCornersTransformation.TOP_LEFT
RoundedCornersTransformation.BOTTOM_LEFT
RoundedCornersTransformation.BOTTOM_RIGHT
RoundedCornersTransformation.ALL
@kenshin171 kenshin171 added the enhancement New feature or request label Sep 7, 2019
@Toffor
Copy link

Toffor commented Sep 10, 2019

Also i wonder that is RoundedCornersTransformation applied for placeholder and error drawables.

@colinrtwhite
Copy link
Member

Fixed by #103.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants