title: android -How to stop stretching background image on linearlayout
body: <p>I've set an image as background on a linearlayout . This is the code :</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/mainbg"
      android:orientation="vertical"
      android:padding="5dp"
      &gt;
  </code></pre>
  
  <p>The problem is , the width of the image is about 2000px , I don't want to scale down the with to fit the screen , I just want to show as much as it take as background and not strech it . </p>
  
  <p>how can I do so ?</p>
  
  <p>thanks </p>