GifView
GifView copied to clipboard
How to make Gif to be full screen?
I want to show the Gif full screen, what is the solution for this?
i meet the problem too, do you have the method to solve it?
how to set imageview size? now only can show the original size.
Inside onMeasure(), remove remove checking if movieWidth > maximumWidth and remove if movieHeight > maximumHeight. So change these lines:
if (measureModeWidth != MeasureSpec.UNSPECIFIED) {
int maximumWidth = MeasureSpec.getSize(widthMeasureSpec);
if (movieWidth > maximumWidth) {
scaleW = (float) movieWidth / (float) maximumWidth;
}
}
into these:
if (measureModeWidth != MeasureSpec.UNSPECIFIED) {
int maximumWidth = MeasureSpec.getSize(widthMeasureSpec);
scaleH = (float) movieWidth / (float) maximumWidth;
}
The same with the height
And change from Math.max to Math.min
mScale = 1f / Math.max(scaleH, scaleW);
into
mScale = 1f / Math.min(scaleH, scaleW);
I still can't do this, where do I put this code?