调整图像视图的布局
问题描述:
我想调整应用程序的布局。 首先在Android设计即时通讯新。 我在scrollview中做了一个线性布局。 但是,当调整布局时,图像之间会有太多空间。我想摆脱这一点。调整图像视图的布局
图像的宽度应与手机的显示宽度相同。高度必须自动调整。
XML代码如下所示。 评论我,如果问题不明确。
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/scrollView">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:context=".MainActivity">
<ImageView
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:src="@drawable/sldr4" />
<ImageView
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:src="@drawable/sldr4" />
</LinearLayout>
</ScrollView>