title: LinearLayout has become completely black in android
body: <p>This issue is testing my patience, I am designing a layout, this is where I have reached so far. Check below image</p>
  
  <p><a href="https://i.stack.imgur.com/Bv7QX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bv7QX.jpg" alt="enter image description here"></a></p>
  
  <p>The part above "Save" button shows a complete black background, the one with currency and EditText. </p>
  
  <p>What I was actually trying to do was remove the underline for the two EditText below the currency code. I was following different advice on this <a href="https://stackoverflow.com/questions/1492554/set-transparent-background-of-an-imageview-in-android">thread</a> hence I made my linearLayout background set to <code>#80000000</code>. But the underline was still there below the EditBox and it spoiled my linearlayout. </p>
  
  <p>Hence, I decided to remove it and try something else. When I removed that line of code from everywhere and run the program. I still get that black background in my app.</p>
  
  <p>Here is the xml code for my linearLayout</p>
  
  <pre><code>&lt;LinearLayout
          android:id="@+id/layout1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_weight="2"
          android:paddingTop="10dp"
          android:layout_marginBottom="30dp"
          android:background="@drawable/custom_border"
          &gt;
          &lt;!--This layout is for typing currency values--&gt;
          &lt;!--Creating two more sub linearLayout, to seperate two sections of
          lef currency and right currency
           android:background="@drawable/border_inner_linear"
          --&gt;
          &lt;LinearLayout
              android:id="@+id/leftCurrencySection"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="left"
              android:layout_weight="1"
              android:orientation="vertical"
  
              &gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="GBP"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
                  /&gt;
  
              &lt;EditText
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="0.00"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
  
                  /&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/rightCurrencySection"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="right"
              android:layout_weight="1"
              android:orientation="vertical"&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="right"
                  android:text="USD"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
                  /&gt;
  
              &lt;EditText
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="right"
                  android:text="0.00"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
  
                  /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>As one can see, I don't have anything that shall show a black color in my LinearLayout with id layout1</p>
  
  <p>Here is the ugly screen layout I am getting</p>
  
  <p><a href="https://i.stack.imgur.com/LQVTH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LQVTH.png" alt="enter image description here"></a></p>
  
  <p>It might be foolish of me to ask but does my app would be storing some sort of cache, because of which its showing same old layout?</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is the full code of the layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:background="@drawable/layer_list"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:showIn="@layout/activity_main"
      tools:context=".MainActivity"
      android:orientation="vertical"
      android:weightSum="5"
      &gt;
  
      &lt;LinearLayout
          android:id="@+id/layout1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_weight="2"
          android:paddingTop="10dp"
          android:layout_marginBottom="30dp"
          android:background="@drawable/custom_border"
          &gt;
          &lt;!--This layout is for typing currency values--&gt;
          &lt;!--Creating two more sub linearLayout, to seperate two sections of
          lef currency and right currency
           android:background="@drawable/border_inner_linear"
          --&gt;
          &lt;LinearLayout
              android:id="@+id/leftCurrencySection"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="left"
              android:layout_weight="1"
              android:orientation="vertical"
  
              &gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="GBP"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
                  /&gt;
  
              &lt;EditText
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="0.00"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
                  android:background="@null"
                  /&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/rightCurrencySection"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="right"
              android:layout_weight="1"
              android:orientation="vertical"&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="right"
                  android:text="USD"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
                  /&gt;
  
              &lt;EditText
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="right"
                  android:text="0.00"
                  android:textSize="30dp"
                  android:textColor="#ffffff"
                  android:textAllCaps="true"
                  android:textStyle="bold"
                  android:background="@null"
                  /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
      &lt;!--End of This layout is for typing currency values--&gt;
  
      &lt;LinearLayout
          android:id="@+id/buttonSection"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_weight="1"
          &gt;
          &lt;!--This layout is for save and change currency buttons--&gt;
              &lt;Button
                  android:id="@+id/saveButton"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="Save"/&gt;
  
                  &lt;Button
                      android:id="@+id/currencyButton"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="Save"/&gt;
      &lt;/LinearLayout&gt;
      &lt;!--End of  save and change currency buttons--&gt;
  
      &lt;!--Begin Layout for calculator begin--&gt;
  
      &lt;GridLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:columnCount="3"
          android:layout_gravity="center"
          android:orientation="horizontal"
          android:layout_weight="1"
          &gt;
  
  
          &lt;Button android:text="1"
              android:background="@null"
              /&gt;
  
          &lt;Button android:text="2" /&gt;
  
          &lt;Button android:text="3" /&gt;
  
  
  
          &lt;Button android:text="4" /&gt;
  
          &lt;Button android:text="5" /&gt;
  
          &lt;Button android:text="6" /&gt;
  
  
  
          &lt;Button android:text="7" /&gt;
  
          &lt;Button android:text="8" /&gt;
  
          &lt;Button android:text="9" /&gt;
  
  
          &lt;Button android:text="." /&gt;
  
          &lt;Button android:text="0" /&gt;
  
          &lt;Button android:text="Del" /&gt;
  
  
      &lt;/GridLayout&gt;
      &lt;!--End Layout for calculator--&gt;
      &lt;!--End Layout for calculator End--&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>EDIT: Code for custom xml</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:left="-10dp" android:right="-10dp"  android:top="0dp"
          android:bottom="0dp"&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;stroke android:width="3dp" android:color="#faf8f8" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>