diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-10-23 16:51:01 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-10-23 16:51:01 +0000 |
commit | b50b5a1e9ab2f27771927e3d5b86123b92241d46 (patch) | |
tree | ea9f828eb9a59db075072e2355243dd605ba1935 /app/src/main/res/layout | |
parent | 3725db7c02f94b2c123b4482413062308ffac7f6 (diff) | |
download | infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.tar infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.tar.gz infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.tar.bz2 infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.tar.lz infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.tar.xz infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.tar.zst infinity-for-reddit-b50b5a1e9ab2f27771927e3d5b86123b92241d46.zip |
Center the score of a comment. Switch the number of comment and the share button back on a comment.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/item_comment.xml | 85 |
1 files changed, 48 insertions, 37 deletions
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index bd820199..6c981463 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -152,45 +152,56 @@ android:paddingStart="4dp" android:paddingEnd="4dp"> - <com.google.android.material.button.MaterialButtonToggleGroup - android:id="@+id/vote_button_toggle_item_post_comment" - 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_comment" + 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_constraintHorizontal_chainStyle="spread_inside" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/score_text_view_item_post_comment" + app:layout_constraintHorizontal_bias="0.5" 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_comment" - 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_comment" - 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_comment" + android:layout_width="64dp" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="?attr/font_12" + android:textStyle="bold" + android:fontFamily="?attr/font_family" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/downvote_button_item_post_comment" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/upvote_button_item_post_comment" + 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_comment" + 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_constraintEnd_toStartOf="@+id/placeholder_item_post_comment" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/score_text_view_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> <View android:id="@+id/placeholder_item_post_comment" @@ -201,7 +212,7 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/more_button_item_post_comment" app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toEndOf="@+id/vote_button_toggle_item_post_comment" + app:layout_constraintStart_toEndOf="@+id/downvote_button_item_post_comment" app:layout_constraintTop_toTopOf="parent" /> <com.google.android.material.button.MaterialButton |