android ImageButton에 문제가 있습니다. 내 아이콘이 상단에서 잘립니다.Android ImageButton이 아이콘을 자릅니다.
코드는 다음입니다 : 내가 알아 봤했지만 그들 중 누구도 도움이되지 몇 가지 해킹을 시도했습니다
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:layout_marginBottom="20sp"
android:paddingLeft="20sp"
android:paddingRight="20sp" >
<TextView
android:id="@+id/registration_1_button_sex_male_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/registration_1_male"
android:textColor="#fff"
android:textSize="15sp"
android:typeface="monospace" />
<ImageButton
android:id="@+id/registration_1_button_sex_male"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:paddingRight="20sp"
android:src="@drawable/icon_male_blue" />
</LinearLayout>
.
LinearLayout 및 ImageButton 안에 패딩을 추가하여 도움을주지 못했지만 아이콘 및 LinearLayout에 고정 된 높이를 부여하려했지만 그 중 아무 것도 작동하지 않았습니다. – kjurkovic
이미지를 게시 할 수 있습니까 ?? – Tony