I'm trying to use a rounded shape in several layouts, but from some reason even though the corners are rounded, in the background there are corners that are not rounded. Does anybody have an idea why?
Code:
dialog_background:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/jobim_white" ></solid>
<stroke
android:width="1dp"
android:color="@color/colorPrimary" ></stroke>
<corners android:radius="8dp"></corners>
</shape>
search_edittext_shape:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp" >
<solid android:color="#FFFFFF" />
<corners
android:bottomLeftRadius="8dp"
android:bottomRightRadius="8dp"
android:topLeftRadius="8dp"
android:topRightRadius="8dp" />
</shape>
RelativeLayout (of the dialog):
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/dialog_background" >
LinearLayout (of the EditText):
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:background="#ECECEC">
<EditText
android:id="@+id/searchTypeEdtTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@drawable/ic_search"
android:drawableTint="#D0D0D0"
android:background="@drawable/search_edittext_shape"
android:hint="@string/search"
android:textColorHint="#ECECEC"
android:elevation="3dp"
android:textCursorDrawable="@drawable/cursor_color" />
</LinearLayout>
Looks like this:
Thank you