Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cutta/gifview
Library for playing gifs on Android
https://github.com/cutta/gifview
android gifview playing-gifs
Last synced: 5 days ago
JSON representation
Library for playing gifs on Android
- Host: GitHub
- URL: https://github.com/cutta/gifview
- Owner: Cutta
- License: apache-2.0
- Created: 2015-12-26T21:44:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T06:35:55.000Z (over 2 years ago)
- Last Synced: 2025-02-09T14:01:48.515Z (12 days ago)
- Topics: android, gifview, playing-gifs
- Language: Java
- Homepage:
- Size: 16 MB
- Stars: 1,721
- Watchers: 35
- Forks: 311
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://android-arsenal.com/details/1/2968)
# GifView
Library for playing gifs on AndroidSimple android view to display gifs efficiently. You can start, pause and stop gifView. Example usages can be found in example project.
Inspired by sbakhtiarov/gif-movie-view
# Screen![]()
# Usage
Add these lines on top-level build file
```
repositories {
maven {
url "https://jitpack.io"
}
}
```
On app's build.gradle
```
implementation 'com.github.Cutta:GifView:1.6'
```# Usage
<com.cunoraz.gifview.library.GifView
android:id="@+id/gif1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
custom:gif="@mipmap/gif1" />
GifView gifView1 = (GifView) view.findViewById(R.id.gif1);
gifView1.setVisibility(View.VISIBLE);
gifView1.play();
gifView1.pause();
gifView1.setGifResource(R.mipmap.gif5);
gifView1.getGifResource();
gifView1.setMovieTime(time);
gifView1.getMovie();# License
Copyright 2015 Cüneyt Çarıkçi.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.