summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layouts/mastodon/layout/drawer_status.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layouts/mastodon/layout/drawer_status.xml')
-rw-r--r--app/src/main/res/layouts/mastodon/layout/drawer_status.xml89
1 files changed, 63 insertions, 26 deletions
diff --git a/app/src/main/res/layouts/mastodon/layout/drawer_status.xml b/app/src/main/res/layouts/mastodon/layout/drawer_status.xml
index 1f27d35fc..d331c73d4 100644
--- a/app/src/main/res/layouts/mastodon/layout/drawer_status.xml
+++ b/app/src/main/res/layouts/mastodon/layout/drawer_status.xml
@@ -657,32 +657,53 @@
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/reply_count"
+ android:layout_marginStart="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="+"
android:textColor="?colorControlNormal"
- android:textSize="12sp"
android:visibility="gone"
tools:ignore="HardcodedText"
tools:visibility="visible" />
</androidx.appcompat.widget.LinearLayoutCompat>
- <com.varunest.sparkbutton.SparkButton
- android:id="@+id/action_button_boost"
- android:layout_width="48dp"
+
+ <androidx.appcompat.widget.LinearLayoutCompat
+ android:id="@+id/action_button_boost_container"
+ android:layout_width="wrap_content"
android:layout_height="48dp"
- android:adjustViewBounds="true"
- android:contentDescription="@string/reblog_add"
- app:activeImage="@drawable/ic_round_repeat_active_24"
- app:iconSize="28dp"
- app:inactiveImage="@drawable/ic_round_repeat_24"
+ android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/action_button_quote"
app:layout_constraintStart_toEndOf="@+id/action_button_reply_container"
app:layout_constraintTop_toTopOf="parent"
- app:primaryColor="@color/boost_icon"
- app:secondaryColor="@color/boost_icon" />
+ app:layout_constraintVertical_bias="0.0">
+
+ <com.varunest.sparkbutton.SparkButton
+ android:id="@+id/action_button_boost"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:adjustViewBounds="true"
+ android:layout_gravity="center"
+ android:contentDescription="@string/reblog_add"
+ app:activeImage="@drawable/ic_round_repeat_active_24"
+ app:iconSize="28dp"
+ app:inactiveImage="@drawable/ic_round_repeat_24"
+ app:primaryColor="@color/boost_icon"
+ app:secondaryColor="@color/boost_icon" />
+
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/boost_count"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:textColor="?colorControlNormal"
+ android:visibility="gone"
+ tools:ignore="HardcodedText"
+ tools:visibility="visible" />
+
+ </androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/action_button_quote"
@@ -697,28 +718,44 @@
android:src="@drawable/ic_baseline_format_quote_24"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@+id/action_button_favorite"
- app:layout_constraintStart_toEndOf="@+id/action_button_boost"
+ app:layout_constraintEnd_toStartOf="@+id/action_button_favorite_container"
+ app:layout_constraintStart_toEndOf="@+id/action_button_boost_container"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
- <com.varunest.sparkbutton.SparkButton
- android:id="@+id/action_button_favorite"
- android:layout_width="48dp"
+ <androidx.appcompat.widget.LinearLayoutCompat
+ android:id="@+id/action_button_favorite_container"
+ android:layout_width="wrap_content"
android:layout_height="48dp"
- android:layout_gravity="center"
- android:adjustViewBounds="true"
- android:contentDescription="@string/favourite_add"
- app:activeImage="@drawable/ic_round_star_24"
- app:animationSpeed="1.5"
- app:inactiveImage="@drawable/ic_round_star_border_24"
+ android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/action_button_bookmark"
app:layout_constraintStart_toEndOf="@+id/action_button_quote"
app:layout_constraintTop_toTopOf="parent"
- app:primaryColor="@color/marked_icon"
- app:secondaryColor="@color/marked_icon"
- sparkbutton:iconSize="28dp" />
+ app:layout_constraintVertical_bias="0.0">
+ <com.varunest.sparkbutton.SparkButton
+ android:id="@+id/action_button_favorite"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:layout_gravity="center"
+ android:adjustViewBounds="true"
+ android:contentDescription="@string/favourite_add"
+ app:activeImage="@drawable/ic_round_star_24"
+ app:animationSpeed="1.5"
+ app:inactiveImage="@drawable/ic_round_star_border_24"
+ app:primaryColor="@color/marked_icon"
+ app:secondaryColor="@color/marked_icon"
+ sparkbutton:iconSize="28dp" />
+ <androidx.appcompat.widget.AppCompatTextView
+ android:id="@+id/favorite_count"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:textColor="?colorControlNormal"
+ android:visibility="gone"
+ tools:ignore="HardcodedText"
+ tools:visibility="visible" />
+ </androidx.appcompat.widget.LinearLayoutCompat>
<com.varunest.sparkbutton.SparkButton
android:id="@+id/action_button_bookmark"
@@ -732,7 +769,7 @@
app:inactiveImage="@drawable/ic_round_bookmark_border_24"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/action_button_translate"
- app:layout_constraintStart_toEndOf="@+id/action_button_favorite"
+ app:layout_constraintStart_toEndOf="@+id/action_button_favorite_container"
app:layout_constraintTop_toTopOf="parent"
app:primaryColor="@color/marked_icon"
app:secondaryColor="@color/marked_icon"