firdausmaulan / GlideSlider

Glide Image Slider
178 stars 57 forks source link

How to round slides ? #61

Open cryinrain69 opened 4 years ago

cryinrain69 commented 4 years ago

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 commented 4 years ago

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