diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-10 15:20:48 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-10 15:20:48 +0000 |
commit | 89cd1cc7cee540889be8a01e28c9b6c9cf4816e9 (patch) | |
tree | 531ef0b72c94e14690e4c46141c089e7b76ddbbd /app/src/main/java/ml | |
parent | 09adffed795be36767ef47998f7dd37217c78923 (diff) | |
download | infinity-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')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java | 9 |
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 -> { |