質問

思い描くイメージは、ImageViewがしてほしいと思いますスケールなし、スクロールバーが必要です。たいのですが。)今すぐって描設定されているandroid:srcのImageViewの形式をサポートしています。このautoscalesの画像に合わせて画面の幅になります。

ここでは、互換モード(展開1.5、試験に2.1)すが、その後追加

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />

私のマニフェストのものを変更します。

他のヒン?

--

編集:使用した android:scaleType="center" のImageView、この表示の画像(しき理により解きはなたれなかったことを前だけを取得し垂直スクロールバーです。を使用 android:scrollbars="horizontal" のScrollViewことになる巻のImageViewろに隠すの垂直スクロールバーが表示しませんの水平スクロールバー...

役に立ちましたか?

解決

これをチェックして 助けになる

他のヒント

この試験をHorizontalScrollView内ScrollView):

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"    
    android:layout_height="fill_parent">


    <ScrollView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"        
    >
        <HorizontalScrollView 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/imagen"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:scaleType="center"
            />        
        </HorizontalScrollView>
    </ScrollView>
</LinearLayout>

ImageViewをビットマップのサイズにサイズし、ImageViewをScrollViewに配置する必要があると思います。しかし、大きな画像を表示しようとしてメモリの問題に遭遇する可能性があります。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top