• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Dynamically changing the viewpager child width

softeyes

Lurker
Hi,

I am customizing the the swipe effect in view pager and I need to dynamically change the width of the view pager child which is an image view.

on Touch of the view pager based on page number and left or right scroll
I am cropping the image and I need to set it to the view pager adapter.

I have set width wrap_content but the cropped image is occupying the entire screen width.

Please let me know.
 
Welcome to Android Forums softeyes:D
So that I may help you further I mst ask- are developing an app?
 
Back
Top Bottom