작업 레이아웃을 호출하여 사용자 정의 메뉴 항목을 개발 중이지만 해당 작업 메뉴에 색을 눌러 총 위쪽 높이와 아래쪽 여백을주는 높이가 적용되지 않습니다. 문제의안드로이드 장치의 사용자 정의 작업 아이콘
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<ImageView
android:minWidth="56dp"
android:id="@+id/voicemailNotificationCounter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:clickable="true"
android:background="@drawable/ab_pressedicon_bgcolor"
android:contentDescription="@string/voicemailnotification"
android:src="@drawable/ab_voicemail">
</ImageView>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/vmNotificationTextCounter"
android:text="1"
android:visibility="visible"
android:layout_alignRight="@+id/voicemailNotificationCounter"
android:layout_marginRight="10dp"
android:gravity="center"
android:textColor="#fff"
android:includeFontPadding="false"
android:background="@drawable/notification_alertbg"
android:textSize="12sp"/>
</RelativeLayout>
아이콘이 9 패치입니까? –
아니요 9 패치 이미지가 아닙니다. 정상적인 작업 표시 줄 아이콘입니다. – Rayani