GithubHelp home page GithubHelp logo

gifview's People

Stargazers

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

Watchers

 avatar  avatar

gifview's Issues

Only first image is displayed

Hello,
I successfully used this view in my app but when I am setting GIF by using InputStream only first image is displayed.

Please any suggestion...

My code is....

    final GIFView mGifView = (GIFView) findViewById(R.id.main_activity_gif_vie);

    InputStream is=null;
    try {
        is=new FileInputStream("/sdcard/test.gif");

        mGifView.setGifResource(is);



    } catch (FileNotFoundException e) {
        e.printStackTrace();
    }


    mGifView.setOnSettingGifListener(new GIFView.OnSettingGifListener() {
        @Override
        public void onSuccess(GIFView view, Exception e) {
            Toast.makeText(Main2Activity.this, "onSuccess()", Toast.LENGTH_SHORT).show();
            mGifView.start(); // I have tested with and without this statement
        }

        @Override
        public void onFailure(GIFView view, Exception e) {
        }
    });

Play animation once only

I am using your library and I can display animated gifs in Android. I would like to be able to play the animation only once from the begin to end. Is this possible?
Kind Regards DanG

The Gif has not been initialized yet

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.al_rehman.dawatiapp/com.al_rehman.dawatiapp.activities.Tasbeeh}: java.lang.IllegalStateException: the gif has not been initialized yet

After View initialized GifView Implementation,

gifView1.setGifResource("asset:tashbeeh_counter");
gifView1.start();

After Click on Button.

private void runHandler() {
    new Handler().postDelayed(new Runnable() {
        @Override
        public void run() {
            gifView1.stop();
            if (m != null) {
                if (m.isPlaying()) {
                    m.stop();
                    m.release();
                    m = new MediaPlayer();
                }
            }
        }
    }, 1200); // wait for 2 seconds
    calculation();
    gifView1.start();
    if (isAudioAllow)
        playBeep();
}

PlayBeep Method is just only for using playing Beep for 1 second only.

Caused by: java.lang.IllegalStateException: the gif has not been initialized yet

@Gavras can you please help me to resolve that issue asap.

Thanks you.

use library in RecyclerView

i want to use library in recyclerview but it has one problem :
lib downloads gif every time on view create and need disk & memory cache. can you update library and add this feature?

Transparent gif displays frames at background.

I have been using your gif code snippet. Problem is its displaying the older frames at background.
Is this a known issue or do we have any solution for this. See attachment image.

Thanks

Original Gif:
giphy

After loading via your code:
Screenshot_20190313-180746

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.