aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_post_with_preview.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/item_post_with_preview.xml')
-rw-r--r--app/src/main/res/layout/item_post_with_preview.xml80
1 files changed, 42 insertions, 38 deletions
diff --git a/app/src/main/res/layout/item_post_with_preview.xml b/app/src/main/res/layout/item_post_with_preview.xml
index 468cc882..880487fd 100644
--- a/app/src/main/res/layout/item_post_with_preview.xml
+++ b/app/src/main/res/layout/item_post_with_preview.xml
@@ -261,45 +261,49 @@
android:paddingStart="8dp"
android:paddingEnd="8dp">
- <com.google.android.material.button.MaterialButtonToggleGroup
- android:id="@+id/vote_button_toggle_item_post_with_preview"
- android:layout_width="0dp"
+ <com.google.android.material.button.MaterialButton
+ style="?attr/materialIconButtonStyle"
+ android:id="@+id/upvote_button_item_post_with_preview"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:paddingStart="8dp"
+ android:paddingEnd="8dp"
+ android:minWidth="0dp"
+ android:backgroundTint="#00000000"
+ app:strokeWidth="0dp"
+ app:icon="@drawable/ic_upvote_24dp"
+ app:iconSize="24dp"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <TextView
+ android:id="@+id/score_text_view_item_post_with_preview"
+ android:layout_width="64dp"
android:layout_height="wrap_content"
- app:singleSelection="true"
- app:layout_constraintStart_toStartOf="parent"
+ android:gravity="center"
+ android:textSize="?attr/font_12"
+ android:fontFamily="?attr/font_family"
+ android:textStyle="bold"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toEndOf="@id/upvote_button_item_post_with_preview" />
+
+ <com.google.android.material.button.MaterialButton
+ style="?attr/materialIconButtonStyle"
+ android:id="@+id/downvote_button_item_post_with_preview"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:paddingStart="8dp"
+ android:paddingEnd="8dp"
+ android:minWidth="0dp"
+ android:backgroundTint="#00000000"
+ app:strokeWidth="0dp"
+ app:icon="@drawable/ic_downvote_24dp"
+ app:iconSize="24dp"
app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent">
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
- android:id="@+id/upvote_button_item_post_with_preview"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
- android:minWidth="0dp"
- android:textSize="?attr/font_12"
- android:textStyle="bold"
- android:fontFamily="?attr/font_family"
- app:strokeWidth="0dp"
- app:icon="@drawable/ic_upvote_24dp"
- app:iconSize="24dp"
- android:backgroundTint="#00000000" />
-
- <com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
- android:id="@+id/downvote_button_item_post_with_preview"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
- android:minWidth="0dp"
- app:strokeWidth="0dp"
- app:icon="@drawable/ic_downvote_24dp"
- app:iconSize="24dp"
- android:backgroundTint="#00000000" />
-
- </com.google.android.material.button.MaterialButtonToggleGroup>
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toEndOf="@id/score_text_view_item_post_with_preview" />
<com.google.android.material.button.MaterialButton
android:id="@+id/comments_count_button_item_post_with_preview"
@@ -318,7 +322,7 @@
app:iconPadding="12dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toEndOf="@id/vote_button_toggle_item_post_with_preview"
+ app:layout_constraintStart_toEndOf="@id/downvote_button_item_post_with_preview"
style="?attr/materialIconButtonOutlinedStyle" />
<com.google.android.material.button.MaterialButton