EasyGifView

Additional

Language
Java
Version
1.0.1 (Sep 10, 2017)
Created
Sep 9, 2017
Updated
Oct 2, 2017
Owner
Isuru Prabath (IsPra94)
Contributor
Isuru Prabath (IsPra94)
1
Activity
Badge
Generate
Download
Source code

Show card

EasyGifView

A simple android library to play with GIF

Usage

Gradle

1 Add it in your root build.gradle at the end of repositories

  allprojects {
   repositories {
    maven { url 'https://jitpack.io' }
   }
  }

2 Add the dependency

  dependencies {
        compile 'com.github.IsPra94:EasyGifView:1.0.1'
  }

Maven

1 Add the JitPack repository to your build file

 <repositories>
  <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
  </repository>
 </repositories>

2 Add the dependency

 <dependency>
    <groupId>com.github.IsPra94</groupId>
    <artifactId>EasyGifView</artifactId>
    <version>1.0.1</version>
 </dependency>

In Your Android Project

<com.medialablk.easygifview.EasyGifView
    android:id="@+id/easyGifView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:src="@drawable/dance" />
    
    
    
EasyGifView easyGifView = (EasyGifView) findViewById(R.id.easyGifView);
easyGifView.setGifFromResource(R.drawable.play); //Your own GIF file from Resources