Created
December 19, 2013 07:52
-
-
Save daichan4649/8035814 to your computer and use it in GitHub Desktop.
GifView で1コマ目だけは本来の画像サイズより拡大(スケール)されて読み込まれる件の対応案
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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