aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-10 15:20:48 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-10 15:20:48 +0000
commit89cd1cc7cee540889be8a01e28c9b6c9cf4816e9 (patch)
tree531ef0b72c94e14690e4c46141c089e7b76ddbbd /app/src/main/java/ml/docilealligator
parent09adffed795be36767ef47998f7dd37217c78923 (diff)
downloadinfinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.tar
infinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.tar.gz
infinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.tar.bz2
infinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.tar.lz
infinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.tar.xz
infinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.tar.zst
infinity-for-reddit-89cd1cc7cee540889be8a01e28c9b6c9cf4816e9.zip
Continue adding Card Layout 3.
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
index cd2e141d..36b33332 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
@@ -197,6 +197,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
private int mVoteAndReplyUnavailableVoteButtonColor;
private int mPostIconAndInfoColor;
private int mDividerColor;
+ private int mButtonBackgroundColor;
private float mScale;
private boolean mDisplaySubredditName;
private boolean mVoteButtonsOnTheRight;
@@ -354,6 +355,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
mVoteAndReplyUnavailableVoteButtonColor = customThemeWrapper.getVoteAndReplyUnavailableButtonColor();
mPostIconAndInfoColor = customThemeWrapper.getPostIconAndInfoColor();
mDividerColor = customThemeWrapper.getDividerColor();
+ mButtonBackgroundColor = Color.parseColor("#FFFFFF");
mCommentIcon = AppCompatResources.getDrawable(activity, R.drawable.ic_comment_grey_24dp);
if (mCommentIcon != null) {
@@ -5959,12 +5961,17 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
archivedImageView.setColorFilter(mArchivedIconTint, PorterDuff.Mode.SRC_IN);
lockedImageView.setColorFilter(mLockedIconTint, PorterDuff.Mode.SRC_IN);
crosspostImageView.setColorFilter(mCrosspostIconTint, PorterDuff.Mode.SRC_IN);
+ upvoteButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor));
upvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
+ downvoteButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor));
downvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
+ //commentsCountButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor));
commentsCountButton.setTextColor(mPostIconAndInfoColor);
- //commentsCountButton.setIcon(mCommentIcon);
+ commentsCountButton.setIcon(mCommentIcon);
//commentsCountButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
+ //saveButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor));
saveButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
+ //shareButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor));
shareButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
itemView.setOnClickListener(view -> {