Show toot stat inline (#3413)
* Show toot stat inline * Correct elements position * Format stats and show it according to setting * inline toot statistics setting * Code formatting * Use kotlin functions * Change the statistics setting description * Use capital letters for all variants * increase the statistics margin * Merge fixes * Code review fixes * move setReblogsCount and setFavouritedCount to StatusViewHolder * code cleaning * code cleaning * import lexicographical order --------- Co-authored-by: Grigorii Ioffe <zikasaks@gmail.com> Co-authored-by: grigoriiioffe <zikasaks@icloud.com>
This commit is contained in:
parent
9087d0ecdd
commit
75e7b9f1a5
16 changed files with 146 additions and 4 deletions
|
|
@ -329,7 +329,7 @@
|
|||
android:id="@+id/status_replies"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginStart="45dp"
|
||||
android:textSize="?attr/status_text_medium"
|
||||
app:layout_constraintBottom_toBottomOf="@id/status_reply"
|
||||
app:layout_constraintStart_toStartOf="@id/status_reply"
|
||||
|
|
@ -353,6 +353,17 @@
|
|||
sparkbutton:primaryColor="@color/tusky_blue"
|
||||
sparkbutton:secondaryColor="@color/tusky_blue_light" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/status_insets"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="45dp"
|
||||
android:textSize="?attr/status_text_medium"
|
||||
app:layout_constraintBottom_toBottomOf="@id/status_inset"
|
||||
app:layout_constraintStart_toStartOf="@id/status_inset"
|
||||
app:layout_constraintTop_toTopOf="@id/status_inset"
|
||||
tools:text="1+" />
|
||||
|
||||
<at.connyduck.sparkbutton.SparkButton
|
||||
android:id="@+id/status_favourite"
|
||||
android:layout_width="52dp"
|
||||
|
|
@ -370,6 +381,17 @@
|
|||
sparkbutton:primaryColor="@color/tusky_orange"
|
||||
sparkbutton:secondaryColor="@color/tusky_orange_light" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/status_favourites_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="45dp"
|
||||
android:textSize="?attr/status_text_medium"
|
||||
app:layout_constraintBottom_toBottomOf="@id/status_inset"
|
||||
app:layout_constraintStart_toStartOf="@id/status_favourite"
|
||||
app:layout_constraintTop_toTopOf="@id/status_inset"
|
||||
tools:text="" />
|
||||
|
||||
<at.connyduck.sparkbutton.SparkButton
|
||||
android:id="@+id/status_bookmark"
|
||||
android:layout_width="52dp"
|
||||
|
|
|
|||
|
|
@ -664,6 +664,7 @@
|
|||
|
||||
<string name="pref_title_show_notifications_filter">Show Notifications filter</string>
|
||||
<string name="pref_title_enable_swipe_for_tabs">Enable swipe gesture to switch between tabs</string>
|
||||
<string name="pref_title_show_stat_inline">Show post statistics in timeline</string>
|
||||
|
||||
|
||||
<string name="create_poll_title">Poll</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue