I have this code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/header_height"
android:background="@android:color/black"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/header_msg_layout"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight=".5"
android:gravity="center"
android:orientation="horizontal" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/messages" />
<View
android:layout_marginLeft="-10dp"
android:layout_marginTop="-10dp"
android:layout_gravity="left|top"
android:layout_width="30dp"
android:layout_height="30dp"
android:background="@drawable/circle" />
</FrameLayout>
<TextView
style="@style/HeaderText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:text="@string/header_message" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight=".5"
android:gravity="center"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/notifications" />
<TextView
style="@style/HeaderText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:text="@string/header_notification" />
</LinearLayout>
</LinearLayout>
The red circle appears to be trimmed. I need the full circle. The center of the circle should be the left top corner of message icon. What changes should i make in the code so that i can get the desired results