All Projects → bernaferrari → CarouselGifViewer

bernaferrari / CarouselGifViewer

Licence: Apache-2.0 License
Efficiently display a list of GIFs in a carousel (RecyclerView).

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to CarouselGifViewer

Changedetection
Automatically track websites changes on Android in background.
Stars: ✭ 563 (+1606.06%)
Mutual labels:  carousel, android-application, android-app
Awesome-Image-Gallery-Android
Open source Image Gallery with tons of feature .
Stars: ✭ 22 (-33.33%)
Mutual labels:  android-application, gif, glide
Android
Step by step guide for various components in android
Stars: ✭ 32 (-3.03%)
Mutual labels:  recyclerview, rxjava2, android-app
Kotlin Android Scaffolding
An android project structure using kotlin and most common libraries.
Stars: ✭ 53 (+60.61%)
Mutual labels:  android-application, rxjava2, android-app
Androidproject
Android 技术中台,但愿人长久,搬砖不再有
Stars: ✭ 4,398 (+13227.27%)
Mutual labels:  recyclerview, glide, rxjava2
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (+1772.73%)
Mutual labels:  recyclerview, android-application, android-app
BakingApp
Udacity Android Developer Nanodegree, project 2.
Stars: ✭ 54 (+63.64%)
Mutual labels:  exoplayer, glide, rxjava2
DroidShows
A Reboot of DroidSeries Offline TV Shows Tracker
Stars: ✭ 69 (+109.09%)
Mutual labels:  android-application, android-app
aaf-easypassword
🔒 Easy Password is password management application. This application uses pattern locks to manage information that requires security.
Stars: ✭ 28 (-15.15%)
Mutual labels:  android-application, android-app
Dowy
🎬Application that displays a list of Movies and Tv Series using Modern Android Application Development tools and API's
Stars: ✭ 29 (-12.12%)
Mutual labels:  android-application, glide
OmniList
开源的时间管理App,基于Material Design设计
Stars: ✭ 61 (+84.85%)
Mutual labels:  android-application, android-app
SeatLayout
A seat selection library for Android with an example for selecting seats for flights, sports venue, theatres, etc
Stars: ✭ 30 (-9.09%)
Mutual labels:  android-application, android-app
android-online-course
Android Online Course
Stars: ✭ 22 (-33.33%)
Mutual labels:  rxjava2, android-app
FutureFurnitureUI-Android
Check out the new style for App Design aims for Furniture E-commerce...😉😀😁😎
Stars: ✭ 117 (+254.55%)
Mutual labels:  android-application, android-app
rxandroid2-retrofit2
Small tutorial to get started with RxAndroid 2 and Retrofit 2
Stars: ✭ 55 (+66.67%)
Mutual labels:  android-application, rxjava2
Pictograph-Keyboard
Simple Emoji Keyboard application
Stars: ✭ 14 (-57.58%)
Mutual labels:  android-application, android-app
RxDiffUtil
A lightweight Rx wrapper around DiffUtil with Activity lifecycle support (Deprecated)
Stars: ✭ 30 (-9.09%)
Mutual labels:  recyclerview, rxjava2
FireFiles
Powerful Android File Manager for everything that runs on Android OS (Android TV, Android Watch, Mobile, etc)
Stars: ✭ 37 (+12.12%)
Mutual labels:  android-application, android-app
xcloud-shield
Xcloud Beta Unofficial App for the Nvidia Shield Android TV. Playing Xbox Cloud Gaming directly on the box Nvidia Shield tv in the best way.
Stars: ✭ 93 (+181.82%)
Mutual labels:  android-application, android-app
UninstallSystemApps
Uninstall System Apps is a free app to remove system apps! You can join here!
Stars: ✭ 62 (+87.88%)
Mutual labels:  android-application, android-app

Carousel Gif Viewer

Carousel Gif Viewer

Codacy Badge

This app efficiently displays a list of GIFs in a carousel.

Motivation:

Displaying a list of GIFs is not something easy, it is:

  • Heavy;
  • Has a high chance of OOM error on low-end devices;
  • Quality is really low;
  • There is a high data usage, a video file can easily get 10x bigger.

On the other hand, displaying them as looping video (mp4) is not something trivial. ExoPlayer usually only allows to play 2 to 4 videos simultaneously. Besides this, RecyclerView really wasn't made to work well with players, with some recent tries successfully making around some of the limitations.

Carousel Gif Viewer

How it works:

After a lot of frustration, I came to the idea of this app (which is just an activity inside my other app). There is a DiscreteScrollView (which is a RecyclerView with a custom layoutManager) displaying the GIF preview (a jpg thumbnail), and a fixed ExoMedia player at the center of the screen playing a looping mp4 file. The trick is: the player doesn't go anywhere. When user scrolls, the player is hidden. As soon as the RecyclerView stops scrolling, the player is shown. Since it has the same size and corners as the images, everything works seamlessly. It also helps that Gfycat, which is used in this sample, generates the image thumbnail based on the first frame, so the video always starts playing from the same place as the picture is.

Current use case for this app is as a Brazilian Sign Language Dictionary on "Bíblia em Libras" (Bible in Brazilian Sign Language) app, under "Dicionário". Download it here.

Screenshots

Main Screen Drawer
First Sec

Side note

I tested the most popular GIF hosting sites, and Gfycat has been the best by far!

  • Tenor won't allow editing, removing, renaming or changing tags after a GIF is uploaded (unless you contact support).
  • Giphy is a mess, uploaded gifs won't show on search unless you are verified (and it is not easy to become verified); main channel page is a mess.
  • Gfycat allows to create albums and sort GIFs; support is great and fast; API just works; view count is great; GIFs with random names instead of random ids is also great.

Reporting Issues

Issues and Pull Requests are welcome. You can report here.

License

Copyright 2018 Bernardo Ferrari.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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 at

http://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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].