bm-x / PhotoView

图片浏览缩放控件
2.63k stars 539 forks source link

the image can't show in the center of the window when I use universe-ImageLoader to display a picture #28

Open chuwe1 opened 8 years ago

bm-x commented 8 years ago

u can use the method

setScaleType(ImageView.ScaleType.CENTER) or 

setScaleType(ImageView.ScaleType.CENTER_CROP)  

to try it

chuwe1 commented 8 years ago

I have tried these methods many times,but still the same

发送自我的三星设备

-------- 原始邮件 -------- 发件人: bm-x notifications@github.com 日期: 2016-06-27 17:54 (GMT+08:00) 收件人: bm-x/PhotoView PhotoView@noreply.github.com 抄送: chuwe1 chuwei55@163.com, Author author@noreply.github.com 主题: Re: [bm-x/PhotoView] the image can't show in the center of the window when I use universe-ImageLoader to display a picture (#28)

u can use the method

setScaleType(ImageView.ScaleType.CENTER) or

setScaleType(ImageView.ScaleType.CENTER_CROP)

to try it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

bm-x commented 8 years ago

my sample has this problem ? in ImgActivity.java,open code of ImageLoader .

or take screenshot or gif to me

chuwe1 commented 8 years ago

1 2 3

when I click page 1, page 2 shows, I need to slip on the screen with my finger, page3 shows

bm-x commented 8 years ago

universe-ImageLoader will show a placeholder pic when the real pic loading but the placeholder pic ratio(with/heigh) is not same as the real pic so when universe-ImageLoader set placeholder ,the photoview will refer to placeholder

my english is so bad, are you undefined ?

a26521755 commented 7 years ago

我也遇到这个问题了。。。而且我没有设置默认图片,图片加载框架用的glide。。。 I have the same problem