Android Library To Create Button With Multi Reactions like Facebook or Linkedin

Overview

ReactButton

Android Library written in Java to Create ReactButton with Multi Reactions like Facebook or Linkedin 😎

Min API Stars Forks License

Default Reactions 😄

Custom Reactions 😉

Description :

Add ReactButton To Your Current Project :

Add it in your root build.gradle at the end of repositories

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

Add the dependency

implementation 'com.github.AmrDeveloper.ReactButton:reactbutton:1.0.7'

Default Case :

Text = Like 
Emoji is black Hand
If User Click on Button it Text Will still like but reaction will be blue hand
and if user click long on button it will show dialog to choose one reaction from 6 reactions

How To Initializing ReactButton :

ReactButton reactButton = findViewById(R.id.buttonId);

Set Six Reactions if you want to change Default Reactions:

reactButton.setReactions(Reaction... reaction);

Set Current Reaction:

reactButton.setCurrentReaction(Reaction reaction);

Get Current Reaction :

Reaction currentReaction = reactButton.getCurrentReaction();

Set Default Reaction:

reactButton.setDefaultReaction(Reaction reaction);

Get Default Reaction :

Reaction currentReaction = reactButton.getDefaultReaction();

Change Reaction dialog default Style :

reactButton.setReactDialogShape(int styleID);

Set On Click Listener :

reactButton.setReactClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        //Your Code
    }
});

Set on Long Click Listener :

reactButton.setReactDismissListener(new View.OnLongClickListener() {
    @Override
    public boolean onLongClick(View view) {
        //Your Code
        return false;
    }
});

Check if current Reaction is Default Reaction:

boolean isDefault = reactButton.isDefaultReaction();
You might also like...
Android library to control Transition animates. A simple way to create a interactive animation.
Android library to control Transition animates. A simple way to create a interactive animation.

TransitionPlayer Android library to control Transition animates. A simple way to create a interactive animation. Demo1 SimpleTransition Code: ....

Android Library to create Lottie animation view dialog easily with a lot of customization
Android Library to create Lottie animation view dialog easily with a lot of customization

LottieDialog Android Library to create Lottie animation view dialog easily with a lot of customization Why you should use Lottie Dialog You have no li

Android Library to create Lottie animation view dialog easily with a lot of customization
Android Library to create Lottie animation view dialog easily with a lot of customization

Android Library to create Lottie animation view dialog easily with a lot of customization

EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the  Etsy app.
EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.

EtsyBlur EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the past Etsy app. Try out the sa

Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon
Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon

MultiImageView Library for display a few images in one MultiImageView like avatar of group chat Who we are Need iOS and Android apps, MVP development

A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.

PhotoEditor A Photo Editor library with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories. Features D

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! Android ripple animation helper, easy to create Circular Reveal. | Android水波动画帮助类,轻松实现View show/hide/startActivity()特效。(0.4.6)
Android ripple animation helper, easy to create Circular Reveal. | Android水波动画帮助类,轻松实现View show/hide/startActivity()特效。(0.4.6)

CircularAnim English | 中文 首先来看一个UI动效图。 效果图是是Dribbble上看到的,原作品在此。 我所实现的效果如下: Watch on YouTube Compile 最新可用版本 So,你可以如下compile该项目,也可以直接把这个类 CircularAnim 拷

Add Animatable Material Components in Android Jetpack Compose.  Create jetpack compose animations painless.
Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animations painless.

AnimatableCompose Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animation painless. What you can create from M

Comments
  • Creating Two App icons for my Application

    Creating Two App icons for my Application

    This lib is creating Two App icons for my Application.

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    

    How can I solve this issue so that My App should not have 2 app icons.

    opened by NarenderNagpal 4
  • I get the following error for some reason.

    I get the following error for some reason.

    Describe the bug Everything else is working perfect. However, when I scroll faster on the recyclerview I get the following error: java.lang.ArrayIndexOutOfBoundsException: length=5; index=5 at com.app.selfcial.Adapters.PostsAdapter$7.onComplete(PostsAdapter.java:592) at com.google.android.gms.tasks.zzi.run(com.google.android.gms:play-services-tasks@@18.0.1:1) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7562) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

    To Reproduce Steps to reproduce the behavior:

    1. Click on a reaction
    2. Save it in Firebase with reaction id
    3. setCurrentReaction based on the saved id
    4. Scroll a bit bit faster the recyelerview

    Expected behavior It should work same as when scrolling slow

    Smartphone (please complete the following information):

    • Device: Xiaomi Redmi 8
    • OS: Android 10
    question 
    opened by Achisyg2 5
Releases(2.1.0)
  • 2.1.0(Feb 9, 2022)

    • Improve the dialog dynamic position implementation and make it work on Jetpack Compose
    • Add enableDialogDynamicPosition method to enable or disable the dialog dynamic position
    • Add setReactionDialogGravity method to change the default gravity
    Source code(tar.gz)
    Source code(zip)
  • 2.0.3(Oct 7, 2021)

  • 2.0.2(Jun 1, 2021)

  • 2.0.1(May 29, 2021)

    • Dismiss Reactions dialog when the screen rotates by overriding onDetachedFromWindow
    • Calculate icon size once, not every time we show the dialog
    • Add DrawableRes annotation in setReactionDialogShape method
    Source code(tar.gz)
    Source code(zip)
  • 2.0.0(May 26, 2021)

    • Support a dynamic number of reactions
    • move icons to example app to reduce the library size
    • support to split the reactions into multi-columns
    • move reactions dialog from the centre to dynamic position depend on the button position
    • provide 2 listeners to listen for dialog state and reaction change
    • handle dialog position when the device rotates
    • improve code and comments
    • add examples in the example app
    • Update Gradle version and compile SDK version
    • update readme doc and examples
    Source code(tar.gz)
    Source code(zip)
  • 1.0.7(Aug 30, 2018)

  • 1.0.6(Aug 13, 2018)

  • 1.0.5(May 18, 2018)

Owner
Amr Hesham
Software Engineer
Amr Hesham
Android library to create complex multi-state animations.

MultiStateAnimation Android library to create complex multi-state animations. Overview A class that allows for complex multi-state animations using An

Keepsafe 405 Nov 11, 2022
A lightweight android library that allows to you create custom fast forward/rewind animations like on Netflix.

SuperForwardView About A lightweight android library that allows to you create custom fast forward/rewind animations like on Netflix. GIF Design Credi

Ertugrul 77 Dec 9, 2022
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa

FabulousFilter Show some ❤️ and star the repo to support the project This library is the implementation of filter-concept posted on MaterialUp.com. It

Krupen Ghetiya 2.6k Jan 3, 2023
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc.

The article on how this library was created is now published. You can read it on this link here. →. ?? EasyFlipView Built with ❤︎ by Wajahat Karim and

Wajahat Karim 1.3k Dec 14, 2022
Support Floating Action Button transformation for Android

Fab Transformation This library supports Floating Action Button transformation in Material Design Guideline. Screenshot Sample App Installation Add th

Yusuke Konishi 772 Dec 4, 2022
A Toggling Add/Remove button

Cross View Add a CrossView to your layout <cdflynn.android.library.crossview.CrossView android:id="@+id/sample_cross_view" android

Collin Flynn 321 Nov 25, 2022
Backarrow-animation-example - Animate back arrow to close button in Compose using animated drawables

Animate Back Arrow to Close Icon in Compose This is a simple demo for animated v

Jose Mateo 3 Feb 17, 2022
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap:

SpeedView Dynamic Speedometer, Gauge for Android. amazing, powerful, and multi shape ⚡ , you can change (colors, bar width, shape, text, font ...every

Anas Altair 1.2k Jan 7, 2023
DrawBox: a multi-purpose tool to draw anything on canvas, written completely on jetpack compose

DrawBox DrawBox is a multi-purpose tool to draw anything on canvas, written comp

Akshay Sharma 172 Dec 30, 2022
Android library to control Transition animates. A simple way to create a interactive animation.

TransitionPlayer Android library to control Transition animates. A simple way to create a interactive animation. Demo1 SimpleTransition Code: ....

林法鑫 1.2k Dec 17, 2022