I am trying to make the corners of linearlayout rounded using this SO answer. So here is my shape.xml:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="2dp" android:color="#FFFFFFFF" />
<gradient android:startColor="#ffc578" android:endColor="#fb9d23"
android:angle="225"/>
<corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp"
android:topLeftRadius="7dp" android:topRightRadius="7dp"/>
</shape>
But this gives me a rectangle shape with ugly black border.It looks horrible inside another linearlayout with a beautiful background image. I want to get rid of that black border. I have searched through other SO posts and google, only to find that I can use layers to hide some borders.Is it not possible using some trick in above shape.xml directly?
EDIT:
Here is my layout main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/MovieHopBackground"
android:weightSum="12"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:id="@+id/imageView"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="0"
android:layout_weight="2"
android:weightSum="4"
android:background="@drawable/shape">
<RelativeLayout
android:orientation="horizontal"
android:layout_width="0"
android:layout_height="fill_parent"
android:layout_weight="3"
>
<EditText
android:layout_width="150dp"
android:layout_height="50dp"
android:background="@drawable/rounded_edittext"
android:id="@+id/editText"
android:layout_centerInParent="true"
/>
</RelativeLayout>
<RelativeLayout
android:orientation="horizontal"
android:layout_width="0"
android:layout_height="fill_parent"
android:layout_weight="1"
>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
EDIT2: Here is the screenshot as in ide(cropped):