对准我现在有这在我的layout.xml的Android的ImageButton不是的EditText和Button
<EditText android:id="@+id/body" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_weight="1"
android:hint="Type to compose" />
<ImageButton android:id="@+id/attach"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/attach_photo" />
<Button android:id="@+id/send" android:text="@string/send"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
我现在面临的问题是ImageButton的顶部像巴顿和EditText上没有对齐。另外两个很好地填满了高度,但ImageButton似乎向上突出。有任何想法吗?
添加填充不会使按钮更新。 – Maurice