gavras / gifview Goto Github PK
View Code? Open in Web Editor NEWGIFView is a library for showing GIFs in applications
License: MIT License
GIFView is a library for showing GIFs in applications
License: MIT License
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) {
}
});
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
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.