title: setScaleType to ScaleType.MATRIX programmatically not work but in xml it work
body: <p>this is my code :</p>
  
  <pre><code>    LinearLayout imageViewParent = (LinearLayout) findViewById(R.id.imageViewParent);
      ImageView view = new ImageView(this);
      imageViewParent.addView(view);
      view.setScaleType(ScaleType.MATRIX);
      view.setBackgroundResource(R.drawable.np);
  </code></pre>
  
  <p>In this code scale type to matrix not work(it fix image to parents),but when I implement this in xml it works fine! 
  can every one help me?
  thank you!</p>