Library for GIF results, preview, play, share everything at one place!

Overview

Giphy Image Results Preview

Library for GIF results, preview, play, share everything at one place!

Giphy Image Results Preview - Example

Download Demo APK from HERE

Kindly use the following links to use this library:

In build.gradle (Project)

allprojects {
  repositories {
			...
		maven { url "https://jitpack.io" }
	}
}

And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)

dependencies {
	compile 'com.github.myinnos:GiphyImageResultsPreview:1.0'
}

How to use

GiphyTask Will gives you list of results as list #Example

String SEARCH_QUERY = "<SEARCH_QUERY>"; //ex: Funny
String GIPHY_KEY = "<GIPHY_KEY>"; //you can pass empty parameter to use default key
int limit = 100; //results limit can set from 1 to 100

new GiphyTask(Helper.getGiphyQueryUrl(SEARCH_QUERY,
                limit, GiphyQueryBuilder.EndPoint.SEARCH, GIPHY_KEY), new GiphyTask.Callback() {
            @Override
            public void onResponse(List<Gif> gifs) {
                // play with gif results
            }
        }).execute();

GET YOUR GIPHY KEY BY SUBMIT YOUR DEATILS FROM HERE - api.giphy.com/submit

To preview gif image to imageView from results : used glide here | you can use picasso etc., #Example

Glide.with(getContext()).load(gif.getPreviewImageUrl()).into(previewImage);

To play/pause gif image from results #Example-XML | #Example

 <in.myinnos.gifimages.gif.GifView
        android:id="@+id/gif_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/black"
        android:visibility="gone"
        app:loop="true"
        app:muted="true"
        app:showSpinner="true"
        app:stopSystemAudio="false" />

GifView gifView = (GifView) itemView.findViewById(R.id.gif_view);
gifView.start(gif.getPreviewMp4Url());

Share gif globally #Example

new ShareGif(getContext(), gif.getGifUrl()).execute();
Any Queries? or Feedback, please let me know by opening a new issue!

Contact

Prabhakar Thota

If you appreciate my work, consider buying me a cup of to keep me recharged 🤘 by PayPal

License

Copyright 2017 MyInnos

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 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.
You might also like...
Compose library to drag to reveal
Compose library to drag to reveal

DraggableScaffold DraggableScaffold is a library that helps stack one composable on top of another so it can be dragged to reveal the content under it

Lyricist - The missing I18N and I10N library for Jetpack Compose!

Jetpack Compose greatly improved the way we build UIs on Android, but not how we interact with strings. stringResource() works well, but doesn't benefit from the idiomatic Kotlin like Compose.

Holi is a lightweight Jetpack Compose library of colors, gradients and cool utility functions for all your palette needs!

Holi A library of colors, gradients and utils built using Jetpack Compose for Android Features A wide collection of colors from different palettes for

A particle view library written in kotlin, easy to use
A particle view library written in kotlin, easy to use

particle 中文介绍 This is a handy android library for particle effect. To start with, you need to add it in your root build.gradle at the end of repositor

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements

Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements. With minimal configuration it generates a UI browser that helps you easily find your components, colors & typography. It also renders your components in common situations like dark mode, right-to-left layouts, and scaled fonts which help in finding issues early.

Holi is a lightweight Jetpack Compose library of colors, gradients and cool utility functions for all your palette needs!
Holi is a lightweight Jetpack Compose library of colors, gradients and cool utility functions for all your palette needs!

Holi is a lightweight Jetpack Compose library of colors, gradients and cool utility functions for all your palette needs!

A shimmer library for Android's Jetpack Compose.
A shimmer library for Android's Jetpack Compose.

Shimmer for Jetpack Compose A library which offers a shimmering effect for Android's Jetpack Compose. It was developed in need for a shimmer effect th

An Android Jetpack Compose library for displaying on-screen messages
An Android Jetpack Compose library for displaying on-screen messages

InfoBar Compose An Android Jetpack Compose library for displaying on-screen messages. Unlike the built-in Snackbar from the Compose Material library,

Small code generating library for safe Jetpack Compose navigation with no boilerplate.

Compose Destinations A KSP library to use alongside compose navigation. It reduces boilerplate code and is less error-prone since passing arguments be

Comments
  • [ImgBot] optimizes images

    [ImgBot] optimizes images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 6% 🎉

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | 10.24kb | 9.45kb | 7.73% | | /app/src/main/res/mipmap-xxhdpi/ic_launcher.png | 7.54kb | 7.04kb | 6.66% | | /app/src/main/res/mipmap-xhdpi/ic_launcher.png | 4.73kb | 4.46kb | 5.76% | | /app/src/main/res/mipmap-hdpi/ic_launcher.png | 3.34kb | 3.24kb | 2.90% | | /app/src/main/res/mipmap-mdpi/ic_launcher.png | 2.15kb | 2.10kb | 2.40% | | /app/src/main/res/drawable/ic_share.png | 0.63kb | 0.62kb | 2.17% | | | | | | | Total : | 28.63kb | 26.90kb | 6.04% |


    📝docs | :octocat: repo | 🙋issues | 🏅swag | 🏪marketplace

    opened by imgbot[bot] 0
Releases(1.0)
Owner
Prabhakar Thota
Mobile Engineer, UI/UX. I believe in the quote, "Creativity is thinking up new things. Innovation is doing new things." Happy Coding :)
Prabhakar Thota
Pinocchio is a group of libraries for various common UI components. It could contain Composable, View, and everything related to UI.

Pinocchio Pinocchio is a group of libraries for various common UI components. It could contain Composable, View, and everything related to UI. All UI

NAVER Z 24 Nov 30, 2022
Customisable Preview of system UI decoration for Jetpack Compose.

AdvancedPreview Customisable Preview of system UI decoration for Jetpack Compose. Use cases Want the Preview in Android Studio to look more like in re

Mobnetic 28 Dec 5, 2022
Demonstration of an issue trying to render a preview in Jetpack Compose without the activity artifact.

Demonstration of an issue trying to render a preview in Jetpack Compose without the activity artifact.

Adam McNeilly 1 Mar 14, 2022
A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Why Not Compose! A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Md. Mahmudul Hasan Shohag 186 Jan 1, 2023
Schedule sample to play with Jetpack Compose Desktop

Schedule sample to play with Jetpack Compose Desktop

符号 6 Nov 5, 2022
This repos one of the ways hows how to use Jetpack Compose Navigation along with Dagger 2

Dagger 2 and Jetpack Compose Integration This repository is about a way how to use Dagger 2 for projects which using Jetpack Compose. Here is an artic

Alexey Glukharev 10 Nov 16, 2022
Jetpack Compose android app that you can send push notification among devices using KTOR and One Signal

Jetpack Compose android app that you can send push notification among devices using KTOR and One Signal, Clean Architecture, Dependency Injection...

Raheem 2 Nov 15, 2022
PexWallpapers is one of my current projects in Jetpack Compose.

Welcome to PexWallpapers! Hi! PexWallpapers is one of my current projects in Jetpack Compose. The app use Pexels.com image library to showpictures/wal

Adrian Witaszak 89 Dec 6, 2022
Lightweight library to tweak the fling behaviour in Android. This library is only compatible with Jetpack-Compose.

Flinger (Only compatible with compose) What is Flinger? Flinger is a plugin that is made on top of jetpack compose that will help the developer to twe

Joseph James 73 Dec 24, 2022
🍂 Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.

Landscapist ?? Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, Fresco Usecase You can see the use

Jaewoong Eum 1.4k Jan 1, 2023