Skip to content

Commit 59849bf

Browse files
committed
Update the example app to add setEnableReactionTooltip method
1 parent 4705886 commit 59849bf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/src/main/java/com/amrdeveloper/reactbuttonlibrary/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ protected void onCreate(Bundle savedInstanceState) {
2020
final ReactButton reactButton = findViewById(R.id.reactButton);
2121
reactButton.setReactions(FbReactions.reactions);
2222
reactButton.setDefaultReaction(FbReactions.defaultReact);
23+
reactButton.setEnableReactionTooltip(true);
2324

2425
reactButton.setOnReactionChangeListener(new ReactButton.OnReactionChangeListener() {
2526
@Override

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
android:id="@+id/reactButton"
99
android:layout_width="wrap_content"
1010
android:layout_height="wrap_content"
11+
android:layout_centerHorizontal="true"
12+
android:layout_centerVertical="true"
1113
android:textAllCaps="false" />
1214
</RelativeLayout>

0 commit comments

Comments
 (0)