option to force fill image to view#12
option to force fill image to view#12jeancaffou wants to merge 1 commit intosephiroth74:masterfrom jeancaffou:patch-1
Conversation
fill image instead of fit to view and image can not be smaller than the view in any dimension
|
jean for some reason this slows down my scrolling horizontally on the image to a point of being a bit unresponsive. |
|
Using above code i can fill image in fit to Screen , right now its not happening. why? |
|
"Using above code i can fill image in fit to Screen , right now its not happening. why?" because fill modifier is not supported |
|
why dont use the setDisplayType( DisplayType.FIT_TO_SCREEN ) ? |
|
@Malachiasz Which Fill modifier is not supported? So what is the use of above mentioned code? |
|
Well, the above code works for me. |
|
hi @jeancaffou thanks for your reply... I used above code. which you mentioned in first post on this thread. but its really didnt work for me. Please can u please explain me more about this.? public boolean FORCE_FILL = false; Thanks. |
|
@sephiroth74 Thanks for your reply. I used this line setDisplayType( DisplayType.FIT_TO_SCREEN ). I am able to make fit image on screen but when i double tap the image and than scroll the image Images is cutting and i cant able to see remaning part. only able to see fir to screen part. Please can u help me to sort out this issue. Thanks |
|
I mentioned the diff. The full code of ImageViewTouchBase.java |
|
Thanks for your fast response. @jeancaffou . I used some extra things also because i want to integrate this ImageViewTouch with Universal Image Loader also. I used below xml file content for ImageViewTouch. I used correct scaleType? And i Changed in ImageViewTouch file as i had some issues with view pager scaling. http://stackoverflow.com/questions/13359205/image-isnt-displayed-in-imageviewzoom Thanks |
fill image in view instead of fit to view and image can not be smaller than the view in any dimension
example:
I'm sorry for the large diff, as I used a code formatter, the actual difference is:
in ImageViewTouchBase class
and
in getProperBaseMatrix method in ImageViewTouchBase class