title: How to display GIF file
body: <p>I'm using this <a href="https://github.com/koral--/android-gif-drawable" rel="nofollow">library</a> as a guide to display a 'gif' file. When using the  saved <code>gif</code> in <code>drawable</code>it display correctly the <code>gif</code> I call it like this </p>
  
  <pre><code>&lt;pl.droidsonroids.gif.GifImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/imgView1"
      android:src="@drawable/gifFile"
      /&gt;
  </code></pre>
  
  <p>but when removing the <code>src</code> and tried like initializing the GifImageView in the Activity like this</p>
  
  <pre><code> GifImageView gifFromFile = (GifImageView) findViewById(R.id.imgView1);
  gifFromFile.setImageBitmap(Utils.getBitmapImagefromStorage(context, imageHome));
  </code></pre>
  
  <p>Where <code>getBitmapImagefromStorage</code> get the path and <code>imageHome</code> gets the filename the gif file doesn't play its only display like an image. It was said that <code>If given drawable is not a GIF then mentioned Views work like plain ImageView and ImageButton.</code> But the file I'm providing is a <code>gif</code>.I'm wondering if I'm using it correctly. </p>
  
  <p>Also the file can be <code>png</code> or <code>gif</code> so I needed to support the two. </p>