Giter Site home page Giter Site logo

gifview's Introduction

Android Arsenal

GifView

Library for playing gifs on Android

Simple android view to display gifs efficiently. You can start, pause and stop gifView. Example usages can be found in example project.

Inspired by sbakhtiarov/gif-movie-view

Screen

Usage

Add these lines on top-level build file

repositories {
    maven {
        url "https://jitpack.io"
    }
}

On app's build.gradle

implementation 'com.github.Cutta:GifView:1.6'

Usage

<com.cunoraz.gifview.library.GifView
            android:id="@+id/gif1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            custom:gif="@mipmap/gif1" />
          GifView gifView1 = (GifView) view.findViewById(R.id.gif1);
                 gifView1.setVisibility(View.VISIBLE);
                   gifView1.play();
                   gifView1.pause();
                   gifView1.setGifResource(R.mipmap.gif5);
                   gifView1.getGifResource();
                   gifView1.setMovieTime(time);
                   gifView1.getMovie();

Credits

License

Copyright 2015 Cüneyt Çarıkçi.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

gifview's People

Contributors

bryant1410 avatar cutta avatar halilozel1903 avatar prempalsingh avatar tajchert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gifview's Issues

播放慢

播放慢 找不到播放时间的方法

How to play a gif from url in a list ?

we can use this to decode the local recourse,but when I play a gif from url, I suppose to download this gif in the local file , then use fileinputstream to play .This way may help with decoding a few gifs from url.
but when I use a dapter or list to play gifs. whether I suppose to download first,decode local resources second.I don't want to do with this way.
Is there anyone has a smart way to slove this problem in this condition?

publish to jitpack

You should make a release and publish this to jitpack.io. It's really easy and convenient.

.setVisibility() not working

hi i used gifview and i'm trying to change the visibility of the gif from gone to visible but the value is changing when i verify it with the .getvisibility() but on the screen its still showing same thing when i want to change the ressource not working

get count of pic in gif file

thanks for awesome gif library .

how can i get number of picture that exist in gif file .

in gif file , exist some png picture . i want to know , how many picture store in gif file .

thanks in advance .

Questions: compatibility and memory usage

How well does this library work on old/"weak" devices?
Also, how efficient is the memory usage?
Does it use the heap memory for the loaded gif, or the real device's memory?

I've tried running it on Xperia J device, and it seems that on some gif animations it doesn't show anything, and for some it works fine.
Is it because of memory issues?
Is there a callback for when it failed, so that I could have a fallback for such cases?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.