GIFView alternatives and similar packages
Based on the "UI Widget" category.
Alternatively, view GIFView alternatives based on common mentions on social networks and blogs.
-
ShowcaseView
Highlight the best bits of your app to users quickly, simply, and cool...ly -
EffectiveAndroidUI
Sample project created to show some of the best Android practices to work in the Android UI Layer. The UI layer of this project has been implemented using MVP or MVVM (without binding engine) to show how this patterns works. This project is used during the talk "EffectiveAndroidUI". -
GreenDroid
GreenDroid is a development library for the Android platform. It makes UI developments easier and consistent through your applications. -
FancyToast-Android
Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code. -
Smiley Rating
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. -
ParallaxEverywhere
Parallax everywhere is a library with alternative android widgets with parallax effects. -
SnapTabLayout
Android library for fluid tablayout animation as seen on Snapchat. -
MotionViews-Android
Code Guide: How to create Snapchat-like image stickers and text stickers. -
FancyAlertDialog-Android
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code. -
ProSwipeButton
A swipe button for Android with a circular progress bar for async operations -
MaterialBanner
A library that provides an implementation of the banner widget from the Material design. -
Custom-Calendar-View
The CustomCalendarView provides an easy and customizable calendar to create a Calendar. It dispaly the days of a month in a grid layout and allows to navigate between months -
Android SegmentedControl + multi row support
Android SegmentedControl + multi row support -
ChatBar for Android
[Moved to: https://github.com/cenkgun/ChatBar] -
Aesthetic GraphView
This is a custom graph library where you can customize the graph as you want. The key features are you can take the full control over drawing the path, change the gradient color (Start Color - End Color), Change the circle color, Change the circle radius, Change the path color, Change the line thickness, On/Off Gridlines, Change the grid line color, On/Off Graduations, Change the graduation text color, Draw graph with different starting point, Draw graph from the left border (X0 - coordinate), Draw graph with exact coordinates given, Draw graph from left border and stretch until the end of the screen and it is Supported on OS - JellyBean 4.1 and above -
PageStepIndicator
Step indicator with titles/labels and tons of customizations. -
FingerSignView
A simple library to let you sign (or draw lines) smoothly with your finger into a view and save it. -
CircleControlView
Android implementation of customizable circle control view -
Horizontal Calendar View
A simple library to display a horizontal calendar with custom start and end date, and mark events with a background -
BubbleImageView
A custom ImageView for android that adds a little "arrow" on a extremity
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of GIFView or a related project?
README
GIFView
GIFView is a library for showing GIFs in applications.
Setup
In your project's build.gradle file:
allprojects {
repositories {
...
maven {
url "https://jitpack.io"
}
...
}
}
In your Application's or Module's build.gradle file:
dependencies {
...
compile 'com.github.Gavras:GIFView:v1.2'
...
}
XML Attributes:
starting_on_init: A boolean that represents if the view starts the gif when its initialization finishes or not. Default is true.
on_click_start_or_pause: If sets to true, every click toggles the state of the gif. If the gif is showing stops the gif, and if the gif is not showing starts it. If sets to false clicking the gif does nothing. Default is false.
delay_in_millis: A positive integer that represents how many milliseconds should pass between every calculation of the next frame to be set. Default is 33.
gif_src: A string that represents the gif's source.
If you want to get the gif from a url concatenate the string "url:" with the full url.
if you want to get the gif from the assets directory concatenate the string "asset:" with the full path of the gif within the assets directory. You can exclude the .gif extension.
for example if you have a gif in the path "assets/ex_dir/ex_gif.gif" the string should be: "asset:ex_dir/ex_gif"
Code Example
From XML:
<com.whygraphics.gifview.gif.GIFView xmlns:gif_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_activity_gif_vie"
android:layout_width="200dp"
android:layout_height="200dp"
android:scaleType="center"
gif_view:gif_src="url:http://pop.h-cdn.co/assets/16/33/480x264/gallery-1471381857-gif-season-2.gif" />
In the activity:
GIFView mGifView = (GIFView) findViewById(R.id.main_activity_gif_vie);
mGifView.setOnSettingGifListener(new GIFView.OnSettingGifListener() {
@Override
public void onSuccess(GIFView view, Exception e) {
Toast.makeText(MainActivity.this, "onSuccess()", Toast.LENGTH_SHORT).show();
}
@Override
public void onFailure(GIFView view, Exception e) {
}
});
Setting the gif programmatically:
mGifView.setGifResource("asset:gif1");
File Caching
GIFView is caching all GIF files it downloads when being provided with an URL to an image. If an InputStream is used, no caching is performed.
The caching works as follows:
The GIFView initializes the GIFCache class with the URL provided by the caller. The GIFCache class now checks for the existence of the sub-directory "GIFView" within the app's own cache-directory. If that is not found, it will be created and the GIF-image will be downloaded into it. If it does exist, the existence of the GIF-image is checked, and if found, the cached-version will be provided. If the image is not found, it will be downloaded and then the cached file will be used.
In order to clear the cached files programmatically, GIFCache offers the possibility to retrieve the folder as a java.io.File object by calling the static method getCacheSubDir():
File GIFCache.getCacheSubDir(Context context);