いくつかのレイアウトに ImageView を表示したいのですが、正しい方法で表示できません。画像の幅が非常に広いので、その高さを画面に合わせて伸ばしたいのですが、幅は画面の幅に合わせるべきではありません。私の ImageView (実際には ImageView を拡張するクラス) はインテリジェントなので、ドラッグして移動できます。画像をドラッグすると、onDrag イベントが ImageView ではなく親 (HorizontalScrollView) によってインターセプトされるため、HorizontalScrollView を使用したくありません。
どんな助けでも大歓迎です。前もって感謝します。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<pl.tripassistant.util.PhotoView
android:id="@+id/snoop"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:clickable="true"
android:scaleType="fitXY" />
</LinearLayout>