我正在寻找几天,但我找不到答案。我正在尝试通过 XML 调整图像视图的大小。
<TableRow android:layout_height="wrap_content" android:id="@+id/header" android:layout_width="match_parent">
<TableLayout android:layout_height="wrap_content" android:id="@+id/logo" android:layout_width="wrap_content" android:layout_weight="1">
<ImageView android:src="@drawable/iconwide" android:id="@+id/imageView1" android:layout_width="match_parent" android:layout_height="match_parent"></ImageView>
</TableLayout>
<TableLayout android:layout_height="wrap_content" android:id="@+id/user" android:layout_width="wrap_content" android:layout_weight="1">
<TextView android:layout_width="wrap_content" android:text="@string/user" android:layout_height="wrap_content" android:id="@+id/suser" android:layout_weight="1"></TextView>
</TableLayout>
</TableRow>
知道如何调整它的大小吗?它看起来像这样:http: //i55.tinypic.com/2h3u4hh.png