All Projects → AmrDeveloper → ReactButton

AmrDeveloper / ReactButton

Licence: MIT license
Android Library to make it easy to add ReactButton feature in your app with Multi Reactions like Facebook or Linkedin, you can add many reactions as you want, you can also split them into a number of columns, and also customize the colours and text for each reaction

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ReactButton

discord-reaction-role-bot
A Discord bot that allows users to self-assign roles using reactions.
Stars: ✭ 110 (+10%)
Mutual labels:  emoji, reactions
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (+192%)
Mutual labels:  emoji, android-ui
react-reactions
😲 Create custom reaction pickers and counters or use your favorites!
Stars: ✭ 34 (-66%)
Mutual labels:  emoji, reactions
reactions
❤ A Flarum extension that adds reactions to your Flarum Community!
Stars: ✭ 17 (-83%)
Mutual labels:  emoji, reactions
slack-emoji-upload
Slack emoji uploader, CLI. single binary, no dependencies. linux, osx, windows.
Stars: ✭ 28 (-72%)
Mutual labels:  emoji
EmojiText
This is a EmojiText solution for Unity3D UI
Stars: ✭ 74 (-26%)
Mutual labels:  emoji
sTooltip
A simple Tooltip Library
Stars: ✭ 44 (-56%)
Mutual labels:  android-ui
Circular-Progress-View
A customisable circular progress view for android.
Stars: ✭ 39 (-61%)
Mutual labels:  android-ui
emoji-slider
A slider control with emojis
Stars: ✭ 40 (-60%)
Mutual labels:  emoji
winmoji
Emoji lookup for Windows 😉 https://www.winmoji.com https://twitter.com/winmoji
Stars: ✭ 79 (-21%)
Mutual labels:  emoji
habitipy
Command-line interface to Habitica
Stars: ✭ 47 (-53%)
Mutual labels:  emoji
FacebookChatStatistics
Statistics of any Facebook Messenger conversation
Stars: ✭ 49 (-51%)
Mutual labels:  emoji
KeyboardKitPro
KeyboardKit Pro extends KeyboardKit with pro features.
Stars: ✭ 42 (-58%)
Mutual labels:  emoji
ReactionDecoder
Reaction Decoder Tool (RDT) - Atom Atom Mapping Tool
Stars: ✭ 59 (-41%)
Mutual labels:  reactions
country-flag-emoji-json
Country flag emojis in JSON format.
Stars: ✭ 92 (-8%)
Mutual labels:  emoji
emot
Open source Emoticons and Emoji detection library: emot
Stars: ✭ 178 (+78%)
Mutual labels:  emoji
android-gallery
Shared element transition example with RecyclerView and ViewPager.
Stars: ✭ 38 (-62%)
Mutual labels:  android-ui
mr-emoji
Lightweight emoji picker like SLACK
Stars: ✭ 23 (-77%)
Mutual labels:  emoji
EmojiPicker
This library to show a popover to select emoji for iOS
Stars: ✭ 58 (-42%)
Mutual labels:  emoji
emoji-db
A database of Apple-supported emojis in JSON format. Used by my Alfred emoji workflow.
Stars: ✭ 32 (-68%)
Mutual labels:  emoji

ReactButton

Codacy Badge CodeFactor Build Min API Stars Forks License Maven Central

Android Library to make it easy to add ReactButton feature in your app with Multi Reactions like Facebook or Linkedin ...etc, you can add many reactions as you want, you can also split them into number of columns, and also customize the colors and text for each reactions

Note

From version 2.0.0 and above the library will release without default icons to reduce the size and if you want the facebook reactions you can copy them from the example app here

Demo 😄

Documentation:

Add ReactButton To Your Current Project:

From Maven Central

implementation 'io.github.amrdeveloper:reactbutton:2.1.0'
Or Add ReactButton from Jitpack.io

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:2.1.0'

How To Initializing ReactButton:

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

Set your Reactions:

reactButton.setReactions(Reaction... reaction);

Add new Reactions to the reactions list:

reactButton.addReactions(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);

Change the reactions dialog default gravity, make sure you have disabled the dynamic position

reactButton.setReactionDialogGravity(newGravity);

Enable/Disable the reactions dialog dynamic position

reactButton.enableDialogDynamicPosition(isEnabled);

Change the number of reactions in the Columns, the default value is all reactions size

reactButton.setDialogColumnsNumber(n);

Set the dim amount for the reactions dialog from 0 for no dim to 1 for full dim, the default value is 0

reactButton.setDimAmount(dim);

Change tooltip background shape

reactButton.setReactionTooltipShape(R.drawable.shape);

Change tooltip text color

reactButton.setReactionTooltipTextColor(Color.BLACK);

Change offset between the reaction icon and the tooltip text

reactButton.setTooltipOffsetFromReaction(100);

Enable or Disable the Reaction tooltip feature

reactButton.setEnableReactionTooltip(true);

Set setOnReactionChangeListener:

reactButton.setOnReactionChangeListener(new ReactButton.OnReactionChangeListener() {
    @Override
    public void onReactionChange(Reaction reaction) {
        // Code that will execute when the reaction changed
    }
});

Set OnReactionDialogStateListener:

reactButton.setOnReactionDialogStateListener(new ReactButton.OnReactionDialogStateListener() {
    @Override
    public void onDialogOpened() {
        // Code that will execute when the reaction dialog is opened
    }

    @Override
    public void onDialogDismiss() {
        // Code that will execute after the reaction dialog is dismissed
    }
});

Check if current Reaction is Default Reaction:

boolean isDefault = reactButton.isDefaultReaction();
For full example please check the example app here
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].