Description
An Android library to make Emoji Reactions on imageviews in a manner Instagram does this!.
EmojiReactionView alternatives and similar packages
Based on the "Animations" category.
Alternatively, view EmojiReactionView alternatives based on common mentions on social networks and blogs.
-
Lottie for Android, iOS, and React Native
Render After Effects animations natively on Android and iOS, Web, and React Native -
UltimateAndroidReference
:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer -
ListViewAnimations
DISCONTINUED. An Android library which allows developers to easily add animations to ListView items -
NineOldAndroids
DISCONTINUED. Android library for using the Honeycomb animation API on all versions of the platform back to 1.0! -
Rebound
DISCONTINUED. A Java library that models spring dynamics and adds real world physics to your app. -
shimmer-android
DISCONTINUED. An easy, flexible way to add a shimmering effect to any view in an Android app. -
PhotoEditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories. -
ChatKit for Android
Android library. Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management. Made by Stfalcon -
android-flip
DISCONTINUED. A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android -
RecyclerViewItemAnimators
An Android library which provides simple Item animations to RecyclerView items -
ViewPagerTransforms
Library containing common animations needed for transforming ViewPager scrolling for Android v13+. -
FabulousFilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa -
ShimmerLayout
DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge. -
Rich Path Animator
DISCONTINUED. 💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can. -
Stfalcon ImageViewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures -
BaseAnimation
BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app! -
EasyAndroidAnimations
Easy Android Animations is an animation library that aims to make android animations easier, with 50+ builtin animations, it allows you to introduce many complex animation effects in your application with one or two lines of code. -
ColorPickerView
🎨 Android colorpicker for getting colors from any images by tapping on the desired color. -
PreLollipopTransition
Simple tool which help you to implement activity and fragment transition for pre-Lollipop devices. -
EasyFlipView
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc. -
WhatTodo
A Simple Todo app design in Flutter to keep track of your task on daily basis. Its build on BLoC Pattern. You can add a project, labels, and due-date to your task also you can sort your task on the basis of project, label, and dates -
TransitionPlayer
Android library to control Transition animates. A simple way to create a interactive animation. -
Road Runner
Road Runner is a library for android which allow you to make your own loading animation using a SVG image -
Android File Picker🛩️
FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~ -
Youtube UI/UX Animation
With MVVM Architecture pattern using Android Architecture Components This is a sample app demonstrating Youtube player animation using constraint layout -
AppIntroAnimation
AppIntroAnimation is a set of code snippets to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use and customize without adding third party library integrations. -
Dachshund Tab Layout
Extended Android Tab Layout with animated indicators that have continuous feedback.
CodeRabbit: AI Code Reviews for Developers
* 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 EmojiReactionView or a related project?
README
EmojiReactionView
An Android library to make Emoji Reactions on imageviews in a manner Instagram does this!.
Table of contents
Features
- Design : The library tries to be reasonably close to the original Instagram's design.
- Customization : Users can customize the look to a great extent easily and reliably.
- Support for RecyclerView : It can easily be used with Recycler views.
- Optimum performance : Efforts have been made to keep memory usage as small as possible.
- Unharmed image : The library doesn't change/modify the image, so every modification of image as imageview is possible
Example
Below is the two sample for usage of the library:
Usage
Just add the following dependency in your app's build.gradle
repositories {
maven {
url 'https://dl.bintray.com/dev-ritik/EmojiReactionView/'
}
}
dependencies {
implementation 'com.ritik:emojireactionlibrary:1.0.2'
}
Add the following code in your xml file
<com.ritik.emojireactionlibrary.EmojiReactionView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/image"
app:emojis="@array/emoji" />
where emoji
is an array resource which is the address to all emojis to be in the panel like:
<array name="emoji">
<item>@drawable/em1</item>
<item>@drawable/em2</item>
<item>@drawable/em2</item>
</array>
and for the home emoji, rename that to home, so that its resource id becomes R.drawable.home
to override default home emoji originally set.
To get notified of when the emojis are clicked, you can use:
myImage.setOnEmojiClickListener(new ClickInterface() {
@Override
public void onEmojiClicked(int emojiIndex, int x, int y) {
// emojiIndex is the index of the emoji being clicked (0 based)
// x,y are the coordinates of the clicked position relative to the image
// (if x && y == -1 => changed by program(SetClickedEmojiNumber)
}
@Override
public void onEmojiUnclicked(int emojiIndex, int x, int y) {
// emojiIndex is the index of the emoji being clicked (0 based)
// x,y are the coordinates of the clicked position relative to the image
// (if x && y == -1 => changed by program(SetClickedEmojiNumber)
}
});
If you are struck somewhere, you can always check its usage in the sample app for Simple and RecyclerView usage.
With this all done and working, you have made to the default design!
Further customization
The library provides these attributes to modify default design to a custom one:
Attribute | Description | Type(Range) | Default Value |
---|---|---|---|
emojis | Set the emojis to be displayed in the panel animation | reference | |
set_emoji | Set the current selected emoji | integer(>-1)(< noe*) (0 based) | -1 |
home_Center_X | Set the x coordinate of homeEmoji's center | dimensions | 30 * density |
home_Center_Y | Set the y coordinate of homeEmoji's center | dimensions | Height - 30 * density |
home_side | Set the side length of homeEmoji | dimensions | 50 * density |
panel_center_X | Set the x coordinate of the center of panel animation | dimension or fraction [0%,100%] (w.r.t width)# |
width / 2 |
panel_center_Y | Set the y coordinate of the center of panel animation | dimension or fraction [0%,100%] (w.r.t height) |
Height - emojiSide / 2 |
panel_radius | Set the radius of panel animation | dimension | min(Height,Width) / 2 - 20 * density |
panel_emoji_side | Set the side of emojis on the panel | dimension | 50 * density |
emojis_rising_height | Set the height of the rising emojis(to start disappearing) | fraction [0%,100%] (w.r.t height)# |
Height / 2 |
emojis_rising_speed | Set the speed per frame of the rising emojis | dimension | 10 * density |
emojis_rising_number | Set the number of emojis rising in rising emojis animation | integer | 24 |
noe = number of emojis. *# measurement from bottom
Public methods
Method | Description | Data Type |
---|---|---|
getCentre | Get the center of panel animation | int(Pixels) |
getRadius | Get the radius of panel animation | int(Pixels) |
get/SetClickedEmojiNumber | Get/Set the current selected emoji | int (-1 for none)(0 based) |
getNumberOfEmojis | Get the number Of emojis in the panel | int |
getEmojisRisingSpeed | Get the speed per frame of the rising emojis | int(Pixels) |
getHomeRect | Get the Rect of the home emoji | Rect |
getPanelEmojiSide | Get the side of emojis on the panel | int(Pixels) |
get/SetHomeBitmap | Get/Set the bitmap of the home emoji | Bitmap |
isHomeEmojiVisible | Is home emoji visible | boolean |
isPanelAnimWorking | Is panel visible | boolean |
isClickingAnimWorking | Is the clicking animation working | boolean |
isEmojiRising | Is emoji rising animation visible | boolean |
setHomeEmojiVisible | Switch to home bitmap visible mode | boolean |
setPanelAnimWorking | Start the panel animation | boolean |
Contributions
All contributions are welcome and appreciated. Please make a Pull Request or open an issue, if necessary. This may also include any form of feature enhancement. Every constructive criticism is welcome. See Contributing.md
License
This library is licensed under MIT license
. View [license](LICENSE).
*Note that all licence references and agreements mentioned in the EmojiReactionView README section above
are relevant to that project's source code only.