在我的水準LinearLayout中,我有一個TextEdit和一個
ImageButton.
ImageButton與TextEdit一樣高.
我希望ImageButton的長度和它一樣寬.
目前看起來ImageButton的寬度就像沒有縮放時一樣(ImageButton width [px] =未縮放的可繪制寬度[px]):
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:id="@+id/txtName"
android:layout_width="1dp"
android:layout_height="wrap_content"
android:layout_weight="1" />
android:id="@+id/btSet"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scaleType="fitEnd"
android:src="@drawable/pin2" />
它應該如何: