Skip to content

Instantly share code, notes, and snippets.

@daichan4649
Created December 19, 2013 07:52
Show Gist options
  • Select an option

  • Save daichan4649/8035814 to your computer and use it in GitHub Desktop.

Select an option

Save daichan4649/8035814 to your computer and use it in GitHub Desktop.
GifView で1コマ目だけは本来の画像サイズより拡大(スケール)されて読み込まれる件の対応案
public void setGif(int resId) {
// Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resId);
BitmapFactory.Options opt = new Options();
opt.inScaled = false;
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resId, opt);
setGif(resId, bitmap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment