diff --git a/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java b/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java
index f40cdb7e8..40fbf5f4a 100644
--- a/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java
+++ b/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java
@@ -257,6 +257,8 @@ public interface SharedPreferenceConstants {
String KEY_NOTIFICATION_MENTIONS_ONLY = "notification_mentions_only";
@Preference(type = BOOLEAN, hasDefault = true, defaultBoolean = false)
String KEY_PEBBLE_NOTIFICATIONS = "pebble_notifications";
+ @Preference(type = BOOLEAN, hasDefault = true, defaultBoolean = true)
+ String KEY_FAB_VISIBLE = "fab_visible";
@Preference(type = STRING, hasDefault = true, defaultString = VALUE_COMPOSE_NOW_ACTION_COMPOSE)
String KEY_COMPOSE_NOW_ACTION = "compose_now_action";
diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/HomeActivity.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/HomeActivity.kt
index 1c974a2cb..a8309274f 100644
--- a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/HomeActivity.kt
+++ b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/HomeActivity.kt
@@ -354,6 +354,12 @@ class HomeActivity : BaseActivity(), OnClickListener, OnPageChangeListener, Supp
drawerToggleButton.visibility = View.GONE
}
+ if (preferences.getBoolean(SharedPreferenceConstants.KEY_FAB_VISIBLE)) {
+ actionsButton.visibility = View.VISIBLE
+ } else {
+ actionsButton.visibility = View.GONE
+ }
+
homeContent.addOnLayoutChangeListener { v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom ->
if (top != oldTop) {
val fragment = leftDrawerFragment
diff --git a/twidere/src/main/res-localized/values-de/strings.xml b/twidere/src/main/res-localized/values-de/strings.xml
index abd7cffcf..29df8ee7a 100644
--- a/twidere/src/main/res-localized/values-de/strings.xml
+++ b/twidere/src/main/res-localized/values-de/strings.xml
@@ -805,4 +805,7 @@
Folgendes wird in Twidere gefiltert:\n · Tweets dieses Benutzers\n · Tweets, die diesen Benutzer erwähnen\n · Retweets/Zitate dieses Benutzers
+
+ Floating Action Button
+ Den Floating Action Button anzeigen
diff --git a/twidere/src/main/res/values/strings.xml b/twidere/src/main/res/values/strings.xml
index d29c7239f..95a9a9b56 100644
--- a/twidere/src/main/res/values/strings.xml
+++ b/twidere/src/main/res/values/strings.xml
@@ -821,4 +821,6 @@
Rename existing accounts?
Enable auto refresh to get new tweets automatically?
Please check your system date & time settings.
+ Floating Action Button
+ Show the Floating Action Button
\ No newline at end of file
diff --git a/twidere/src/main/res/xml/preferences_compose.xml b/twidere/src/main/res/xml/preferences_compose.xml
index 89267641c..84df04758 100644
--- a/twidere/src/main/res/xml/preferences_compose.xml
+++ b/twidere/src/main/res/xml/preferences_compose.xml
@@ -21,6 +21,16 @@
+
+
+
+