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

How to round slides ? #61

Open
cryinrain69 opened this issue Mar 5, 2020 · 1 comment
Open

How to round slides ? #61

cryinrain69 opened this issue Mar 5, 2020 · 1 comment

Comments

@cryinrain69
Copy link

Hi.
How to round slides same as in the image:
https://imagehost.imageupload.net/2020/03/05/screenshot_1583394150.png

I downloaded the demo project and run it but it does not appear as in the image.
https://github.com/firdausmaulan/GlideSlider-Example

Sorry for my english.
Thanks.

@tyagichirag5
Copy link

tyagichirag5 commented Apr 25, 2020

Hey @cryinrain69 ,
Use Glide Transformations to round corner slides

e.g:
var requestOptions = RequestOptions()
requestOptions = requestOptions.transforms(CenterCrop(), RoundedCorners(20))

or You can use Style also

<style name="GlideSliderCardStyle" parent="Base.CardView"> match_parent match_parent XXdp </style>

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

No branches or pull requests

2 participants