title: Child background attribute override the parent rounded corners background
body: <p>I created a navigation bar using LinearLayout containing Clickable TextView's, for the containing LinearLayout I set a background shape XML for creating rounded corners, the problem is, when the user click on one of the tabs I set to the tab color backround, the rounded corners overwriting, the reason I set the rounded corners in the container and not in the tabs is because the right-left\left-right languages.</p>
  
  <p>Before clicking</p>
  
  <p><a href="https://i.stack.imgur.com/QzNCO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QzNCO.png" alt="enter image description here"></a></p>
  
  <p>After clicking</p>
  
  <p><a href="https://i.stack.imgur.com/GSqMB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GSqMB.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal"
  android:layout_width="match_parent"
  android:background="@drawable/rounded_corners"
  android:layout_height="40dp"
  android:layout_margin="10dp"&gt;
  
  &lt;TextView
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:textColor="@color/registerButton"
      android:gravity="center"
      android:text="A"/&gt;
  
  &lt;View
      android:layout_width="1dp"
      android:layout_height="match_parent"
      android:background="@color/registerButton"&gt;
  &lt;/View&gt;
  
  &lt;TextView
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:gravity="center"
      android:textColor="@color/registerButton"
      android:text="B"/&gt;
  
  &lt;View
      android:layout_width="1dp"
      android:layout_height="match_parent"
      android:background="@color/registerButton"&gt;
  &lt;/View&gt;
  
  &lt;TextView
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:textColor="@color/registerButton"
      android:gravity="center"
      android:text="C"/&gt;
  
  &lt;View
      android:layout_width="1dp"
      android:layout_height="match_parent"
      android:background="@color/registerButton"&gt;
  &lt;/View&gt;
  
  &lt;TextView
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:textColor="@color/registerButton"
      android:gravity="center"
      android:text="D"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>@drawable/rounded_corners</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;solid android:color="#FFFFFF"/&gt;
      &lt;stroke android:width="1dip" android:color="@color/registerButton" /&gt;
      &lt;corners android:radius="8dip"/&gt;
      &lt;padding android:color="@color/registerButton"
          android:left="0dip"
          android:top="0dip"
          android:right="0dip"
          android:bottom="0dip" /&gt;
  &lt;/shape&gt;
  </code></pre>