diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-18 01:42:40 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-18 01:42:40 +0000 |
commit | f7dd37baa415af840a5f4d4772770a6018ee7b2c (patch) | |
tree | c3bd92a70c31c3ee39947b729c54f611c70238ba /app/src/main/res | |
parent | 7252dce6e3f7df54440e1c2cdb88a02270e61f48 (diff) | |
download | infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.tar infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.tar.gz infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.tar.bz2 infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.tar.lz infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.tar.xz infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.tar.zst infinity-for-reddit-f7dd37baa415af840a5f4d4772770a6018ee7b2c.zip |
Continue changing vote button icons.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/item_comment.xml | 77 |
1 files changed, 36 insertions, 41 deletions
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index b5bb0afe..c3ee1b25 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -152,50 +152,45 @@ android:paddingStart="4dp" android:paddingEnd="4dp"> - <ImageView - android:id="@+id/up_vote_button_item_post_comment" - android:layout_width="wrap_content" + <com.google.android.material.button.MaterialButtonToggleGroup + android:id="@+id/vote_button_toggle_item_post_comment" + android:layout_width="0dp" android:layout_height="wrap_content" - android:background="?actionBarItemBackground" - android:clickable="true" - android:focusable="true" - android:padding="8dp" - android:src="@drawable/ic_arrow_upward_grey_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:singleSelection="true" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"> - <TextView - android:id="@+id/score_text_view_item_post_comment" - 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_constraintEnd_toStartOf="@+id/down_vote_button_item_post_comment" - app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toEndOf="@+id/up_vote_button_item_post_comment" - app:layout_constraintTop_toTopOf="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" /> - <ImageView - android:id="@+id/down_vote_button_item_post_comment" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:background="?actionBarItemBackground" - android:clickable="true" - android:focusable="true" - android:padding="8dp" - android:src="@drawable/ic_arrow_downward_grey_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" /> + <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" /> + + </com.google.android.material.button.MaterialButtonToggleGroup> <View android:id="@+id/placeholder_item_post_comment" @@ -206,7 +201,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/down_vote_button_item_post_comment" + app:layout_constraintStart_toEndOf="@+id/vote_button_toggle_item_post_comment" app:layout_constraintTop_toTopOf="parent" /> <ImageView |