Android 在不带空白的ScrollView中使用ImageView
我想在scrollview中添加图片。下面是我的代码。有两个图像。我不想在其中显示空白图像。我将使用大约10个图像。我该怎么办 它显示如下---->Android 在不带空白的ScrollView中使用ImageView,android,imageview,scrollview,Android,Imageview,Scrollview,我想在scrollview中添加图片。下面是我的代码。有两个图像。我不想在其中显示空白图像。我将使用大约10个图像。我该怎么办 它显示如下----> 这个问题不够清晰。请告诉我们现在发生了什么(用图片)和你期待什么(用图片),好的回答不清楚的问题,请适当地详细说明。不明白。你能详细说明一下吗?我不能添加图片。我没有足够的声誉。我的问题是,我想在scrollview中创建图像。它起作用了。但它在图像中是空白的。我还是跑不好。它有空格。 <ScrollView xmlns:android=
这个问题不够清晰。请告诉我们现在发生了什么(用图片)和你期待什么(用图片),好的回答不清楚的问题,请适当地详细说明。不明白。你能详细说明一下吗?我不能添加图片。我没有足够的声誉。我的问题是,我想在scrollview中创建图像。它起作用了。但它在图像中是空白的。我还是跑不好。它有空格。
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/mat1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/mata"
/>
<ImageView
android:layout_below="@+id/mat1"
android:id="@+id/mat2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/matb"
/>
</RelativeLayout>
</ScrollView>