diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-10-23 04:29:08 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-10-23 04:29:08 +0000 |
commit | 7c6ee5beba83522ad49b54a3fdfdf6d03de107ba (patch) | |
tree | c8e11ab55d248592f74701f21476cd26fe9fa714 /app/src/main/res/layout/item_post_detail_text.xml | |
parent | 415b6d2ec599965adb800b5a0709420c77de9b98 (diff) | |
download | infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.tar infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.tar.gz infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.tar.bz2 infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.tar.lz infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.tar.xz infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.tar.zst infinity-for-reddit-7c6ee5beba83522ad49b54a3fdfdf6d03de107ba.zip |
Center the score of a post. Switch the number of comment and the share button back.
Diffstat (limited to 'app/src/main/res/layout/item_post_detail_text.xml')
-rw-r--r-- | app/src/main/res/layout/item_post_detail_text.xml | 78 |
1 files changed, 41 insertions, 37 deletions
diff --git a/app/src/main/res/layout/item_post_detail_text.xml b/app/src/main/res/layout/item_post_detail_text.xml index 625a598d..8ef8cf2e 100644 --- a/app/src/main/res/layout/item_post_detail_text.xml +++ b/app/src/main/res/layout/item_post_detail_text.xml @@ -219,45 +219,49 @@ android:paddingStart="8dp" android:paddingEnd="8dp"> - <com.google.android.material.button.MaterialButtonToggleGroup - android:id="@+id/vote_button_toggle_item_post_detail_text" - android:layout_width="0dp" - android:layout_height="wrap_content" - app:singleSelection="true" + <com.google.android.material.button.MaterialButton + style="?attr/materialIconButtonStyle" + android:id="@+id/upvote_button_item_post_detail_text" + 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_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" - 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_detail_text" - 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" /> + app:layout_constraintTop_toTopOf="parent" /> - <com.google.android.material.button.MaterialButton - style="?attr/materialButtonOutlinedStyle" - android:id="@+id/downvote_button_item_post_detail_text" - 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" /> + <TextView + android:id="@+id/score_text_view_item_post_detail_text" + android:layout_width="64dp" + android:layout_height="wrap_content" + android:fontFamily="?attr/font_family" + android:gravity="center" + android:textSize="?attr/font_12" + android:textStyle="bold" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/upvote_button_item_post_detail_text" + app:layout_constraintTop_toTopOf="parent" /> - </com.google.android.material.button.MaterialButtonToggleGroup> + <com.google.android.material.button.MaterialButton + style="?attr/materialIconButtonStyle" + android:id="@+id/downvote_button_item_post_detail_text" + 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_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@id/score_text_view_item_post_detail_text" + app:layout_constraintTop_toTopOf="parent" /> <com.google.android.material.button.MaterialButton android:id="@+id/comments_count_button_item_post_detail_text" @@ -276,7 +280,7 @@ app:iconPadding="12dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/vote_button_toggle_item_post_detail_text" + app:layout_constraintStart_toEndOf="@id/downvote_button_item_post_detail_text" style="?attr/materialIconButtonOutlinedStyle" /> <com.google.android.material.button.MaterialButton |