title: How to remove default layout's padding/margin
body: <p>I have the following layout files:</p>
  
  <p>activity_main.xml</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:map="http://schemas.android.com/apk/res-auto"
      android:id="@+id/frame_container"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_marginLeft="0px"
      android:layout_marginRight="0px"
      android:layout_marginTop="0px"
      android:padding="0dp"
      &gt;
      ...
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>And some other fragments like</p>
  
  <p>fragment_init.xml:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/fragmentInit"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="0dp"
      android:layout_marginTop="0px"
      android:layout_marginLeft="0px"
      android:layout_marginRight="0px"
      android:background="#549F07"
      &gt;
  
      &lt;TextView
          ... 
      &gt;
      ...
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Everything looks fine in Lint, but when I execute my application on my Nexus 7 5.0.2, every container is displayed with a padding or margin of maybe 10 px. </p>
  
  <p>This is illustrated by the arrows on the following image <a href="https://i.stack.imgur.com/SZTfE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SZTfE.png" alt="enter image description here"></a></p>
  
  <p>How to force the layouts to not add these padding/margin?  </p>
  
  <p><strong>Edit:</strong> I should add how I insert my fragment.</p>
  
  <p>Activiy</p>
  
  <pre><code> public class MainActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
          fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
          fragmentTransaction.replace(R.id.frame_container, new Fragment_init(), "Fragment_init").commit();
      }
  }
  </code></pre>
  
  <p>and I don't use any dimens anywhere...
  Thks</p>