Android 如何自动放大ImageViewTouch

Android 如何自动放大ImageViewTouch,android,Android,我正在使用ImageViewTouch库缩放图像 <it.sephiroth.android.library.imagezoom.ImageViewTouch android:id="@+id/imageweb" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="

我正在使用ImageViewTouch库缩放图像

     <it.sephiroth.android.library.imagezoom.ImageViewTouch
           android:id="@+id/imageweb"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent"
           android:background="@drawable/bg_loading"
           android:scaleType="fitCenter" />

如何自动放大ImageViewTouch?我使用setFitToScreen(true),但没有成功,谢谢。

我不知道您到底想要什么,但是如果您想缩放图像视图,只需在xml文件中添加
FitXY
比例即可

试试这个

xml文件:

<it.sephiroth.android.library.imagezoom.ImageViewTouch
       android:id="@+id/imageweb"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:background="@drawable/bg_loading"
       android:scaleType="fitXY" />

编辑文章,将问题以可视的方式包含进来你有这个问题的解决方案吗?我的问题是如何将内容图像融入全屏。我已经找到了这样做的功能。但我不知道如何使用ImageViewTouch调整步进缩放。假设我双击图像。我可以看到图像更大。但是步长变焦非常大。如何减少步长缩放?
<it.sephiroth.android.library.imagezoom.ImageViewTouch
       android:id="@+id/imageweb"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:background="@drawable/bg_loading"
       android:scaleType="fitXY" />
ImageViewTouch img= (ImageViewTouch)findViewById(R.id.imageweb);