我想显示一个image
比屏幕长的。
我正在使用ImageView
内部 a scroll view
。我得到一个白色的屏幕,可以滚动到 的height
,image
但图像本身没有呈现。
这是我正在使用的布局 xml:-
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:contentDescription="@string/test_image_content_description"
android:adjustViewBounds="true"
android:visibility="visible"
android:src="@drawable/test_image" />
</ScrollView>
test_image.png是一个文件,它在应用程序drawable
的所有“ ”文件夹中都可用。
任何帮助将不胜感激!