GifImageView-master

所属分类:Windows编程
开发工具:Java
文件大小:4367KB
下载次数:1
上传日期:2017-02-28 03:27:15
上 传 者midooamine
说明:  GifImageView-master java code

文件列表:
CHANGELOG.md (842, 2015-12-17)
LICENSE (1077, 2015-12-17)
app (0, 2015-12-17)
app\build.gradle (874, 2015-12-17)
app\proguard-rules.pro (667, 2015-12-17)
app\src (0, 2015-12-17)
app\src\main (0, 2015-12-17)
app\src\main\AndroidManifest.xml (766, 2015-12-17)
app\src\main\java (0, 2015-12-17)
app\src\main\java\com (0, 2015-12-17)
app\src\main\java\com\felipecsl (0, 2015-12-17)
app\src\main\java\com\felipecsl\gifimageview (0, 2015-12-17)
app\src\main\java\com\felipecsl\gifimageview\app (0, 2015-12-17)
app\src\main\java\com\felipecsl\gifimageview\app\Blur.java (1883, 2015-12-17)
app\src\main\java\com\felipecsl\gifimageview\app\ByteArrayHttpClient.java (1638, 2015-12-17)
app\src\main\java\com\felipecsl\gifimageview\app\GifDataDownloader.java (550, 2015-12-17)
app\src\main\java\com\felipecsl\gifimageview\app\MainActivity.java (2384, 2015-12-17)
app\src\main\res (0, 2015-12-17)
app\src\main\res\drawable-hdpi (0, 2015-12-17)
app\src\main\res\drawable-hdpi\ic_launcher.png (9397, 2015-12-17)
app\src\main\res\drawable-mdpi (0, 2015-12-17)
app\src\main\res\drawable-mdpi\ic_launcher.png (5237, 2015-12-17)
app\src\main\res\drawable-xhdpi (0, 2015-12-17)
app\src\main\res\drawable-xhdpi\ic_launcher.png (14383, 2015-12-17)
app\src\main\res\drawable-xxhdpi (0, 2015-12-17)
app\src\main\res\drawable-xxhdpi\ic_launcher.png (19388, 2015-12-17)
app\src\main\res\layout (0, 2015-12-17)
app\src\main\res\layout\activity_main.xml (1566, 2015-12-17)
app\src\main\res\menu (0, 2015-12-17)
app\src\main\res\menu\main.xml (217, 2015-12-17)
app\src\main\res\values-w820dp (0, 2015-12-17)
app\src\main\res\values-w820dp\dimens.xml (358, 2015-12-17)
app\src\main\res\values (0, 2015-12-17)
app\src\main\res\values\dimens.xml (211, 2015-12-17)
app\src\main\res\values\strings.xml (121, 2015-12-17)
app\src\main\res\values\styles.xml (194, 2015-12-17)
... ...

GifImageView ============ Android ImageView that handles Animated GIF images [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-GifImageView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1339) ### Usage In your ``build.gradle`` file: ```groovy dependencies { compile 'com.felipecsl:gifimageview:2.0.0' } ``` In your Activity class: ```java @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); gifView = (GifImageView) findViewById(R.id.gifImageView); gifView.setBytes(bitmapData); } @Override protected void onStart() { super.onStart(); gifView.startAnimation(); } @Override protected void onStop() { super.onStop(); gifView.stopAnimation(); } ``` If you need to post-process the GIF frames, you can do that via ``GifImageView.setOnFrameAvailable()``. You can see an example of that in the sample app included on the repository. ```java gifImageView.setOnFrameAvailable(new GifImageView.OnFrameAvailable() { @Override public Bitmap onFrameAvailable(Bitmap bitmap) { return blurFilter.blur(bitmap); } }); ``` ### Demo ![](https://raw.githubusercontent.com/felipecsl/GifImageView/master/demo.gif) Be sure to also check the [demo project](https://github.com/felipecsl/GifImageView/blob/master/app/src/main/java/com/felipecsl/gifimageview/app/MainActivity.java) for a sample of usage! ### Contributing * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it * Fork the project * Start a feature/bugfix branch * Commit and push until you are happy with your contribution * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. ### Copyright and license Code and documentation copyright 2011-2015 Felipe Lima. Code released under the [MIT license](https://github.com/felipecsl/GifImageView/blob/master/LICENSE.txt).

近期下载者

相关文件


收藏者