title: svg image wont size up to fit parent container in android
body: <p>I am using SVGImageview for displaying SVG image but it is not occupying the whole screen as shown below:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      //ImageView imageView = (ImageView)findViewById(R.id.imageView);
      //imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
      //imageView.setAdjustViewBounds(true);
  }
  }
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;com.caverock.androidsvg.SVGImageView
          android:id="@+id/imageView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:src="@drawable/ic_load_bg"
          android:scaleType="fitXY"&gt;
      &lt;/com.caverock.androidsvg.SVGImageView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Can someone help me how to do this for any screen size? I found this <a href="https://stackoverflow.com/questions/42030678/svg-image-wont-size-up-to-fit-parent-container">link</a> to be similar to what I am trying to do here but it didn't give me any hints.</p>
  
  <p><a href="https://i.stack.imgur.com/m4K7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m4K7W.png" alt="enter image description here"></a></p>