I am developing custom menu item by calling action layout, but when i am taping that action menu that pressing color is not applying total height giving some top and bottom margin.
Below is my code:
<?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> 
 
     
    