0
任何人都可以幫助我嗎? 爲什麼ImageViews的大小不同? 您可以在下面找到的代碼。ImageView的大小
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/layout"
android:orientation="vertical">
<FrameLayout
android:id="@+id/preview"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<SurfaceView
android:id="@+id/surface_camera"
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
</FrameLayout>
<TableLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TableRow
android:layout_width="fill_parent"
android:minHeight="10dip">
<ImageView
android:layout_width="fill_parent"
android:layout_weight="1"
android:id="@+id/buttonClick"
android:text="Click"
android:maxHeight="10dip"
android:layout_gravity="center"
android:src="@drawable/folder" />
<ImageView
android:layout_width="fill_parent"
android:layout_weight="1"
android:id="@+id/buttonClick"
android:text="Back"
android:maxHeight="10dip"
android:src="@drawable/back" />
<ImageView
android:layout_weight="1"
android:layout_width="fill_parent"
android:id="@+id/buttonClick"
android:text="Folder"
android:maxHeight="10dip"
android:src="@drawable/camera_alt" />
</TableRow>
</TableLayout>
</LinearLayout>