android - How to fit image in full screen in ImageViewTouch -
i using [imageviewtouch][1]
library zoom image instead of imageview.
<it.sephiroth.android.library.imagezoom.imageviewtouch android:id="@+id/imageweb" android:layout_width="fill_parent" android:layout_height="fill_parent" android:adjustviewbounds="true" android:background="@drawable/bg_loading" android:scaletype="fitcenter" />
i want load image on imageviewtouch control , width of image auto fits screen. how fit width , height both mobile screen?
here when 3 times double tap means in 1st time zoomed in 2nd time in 3rd times fits height , width of the device screen why not fit @ time of first time.
but not loaded fit height , width @ first time.? please me sort out issue.
i used library classes may have change here thing.
1) [first][2] 2) [second][3]
please check screenshots :
when first time loaded automatically :
after 3 times double tap means here first , second time zoom , 3rd time fits why not fitted @ time of first time when imageview loaded image.
i tried below answers not works.
thank support
in it.sephirot.android.library.imagezoom.imageviewtouchbase
change line
protected displaytype mscaletype = displaytype.fit_if_bigger;
in
protected displaytype mscaletype = displaytype.fit_to_screen;
Comments
Post a Comment