GifView icon indicating copy to clipboard operation
GifView copied to clipboard

Bug: can't build

Open AndroidDeveloperLB opened this issue 9 years ago • 10 comments
trafficstars

This is what I see:

untitled20160111020301

AndroidDeveloperLB avatar Jan 11 '16 00:01 AndroidDeveloperLB

+1

anvesh523 avatar Jan 11 '16 11:01 anvesh523

btw, just using it in a new project and loading the gif, it works fine.

AndroidDeveloperLB avatar Jan 11 '16 11:01 AndroidDeveloperLB

what parameters we have to pass inside the setMovie & setMovieResource methods ?

anvesh523 avatar Jan 11 '16 11:01 anvesh523

@anvesh523 This is what I did :

  1. put the gif file into the "res/raw/" folder
  2. use this code:
    GifView gifView = (GifView) findViewById(R.id.gifView);
    gifView.setMovieResource(R.raw.gif_file);

It works out of the box. However, I didn't use anything special that the library might have to offer.

AndroidDeveloperLB avatar Jan 11 '16 11:01 AndroidDeveloperLB

setMovieResource is ok, I took it from mipmap. Main doubt about " setMovie " method some ' Movie ' reference we have to pass....? please give some code about that...

anvesh523 avatar Jan 11 '16 11:01 anvesh523

@anvesh523 I didn't use it, but looking at the GifView code, you can see how it's being created inside setMovieResource .

AndroidDeveloperLB avatar Jan 11 '16 11:01 AndroidDeveloperLB

@AndroidDeveloperLB If possible, can U share ur sample working code including GifView class ....! For me inside the dialog gif is not playing.

anvesh523 avatar Jan 11 '16 12:01 anvesh523

@anvesh523 It has nothing special, really. But here it is: http://expirebox.com/download/707e115a8a1a866ebbbc89ed5757ee31.html

AndroidDeveloperLB avatar Jan 11 '16 12:01 AndroidDeveloperLB

Thank you .... for sending. But sorry to say ur code also gif is not playing ....

anvesh523 avatar Jan 11 '16 12:01 anvesh523

@anvesh523 to me it works even on Xperia J (with stock rom) , which is quite old and weak device. Change the gif file. I think it got corrupted. Try using this file instead of the corrupted file: http://techzblog.in/wp-content/uploads/2011/11/android.gif

AndroidDeveloperLB avatar Jan 11 '16 12:01 AndroidDeveloperLB