From 743c16b1bee74c57d56357be4a0ecbb142fecc4b Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sun, 10 Sep 2023 17:19:29 -0400 Subject: Continue adding Card Layout 3. --- .../adapters/PostRecyclerViewAdapter.java | 15 ++++--------- app/src/main/res/drawable/ic_downvote_24dp.xml | 9 ++++++++ .../main/res/drawable/ic_downvote_filled_24dp.xml | 9 ++++++++ app/src/main/res/drawable/ic_upvote_24dp.xml | 9 ++++++++ .../main/res/drawable/ic_upvote_filled_24dp.xml | 9 ++++++++ .../res/layout/item_post_card_3_with_preview.xml | 26 +++++++++++----------- 6 files changed, 53 insertions(+), 24 deletions(-) create mode 100644 app/src/main/res/drawable/ic_downvote_24dp.xml create mode 100644 app/src/main/res/drawable/ic_downvote_filled_24dp.xml create mode 100644 app/src/main/res/drawable/ic_upvote_24dp.xml create mode 100644 app/src/main/res/drawable/ic_upvote_filled_24dp.xml (limited to 'app/src/main') 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 bb2dc2e2..5da7bbc4 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -197,7 +197,6 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter + + diff --git a/app/src/main/res/drawable/ic_downvote_filled_24dp.xml b/app/src/main/res/drawable/ic_downvote_filled_24dp.xml new file mode 100644 index 00000000..27bc0974 --- /dev/null +++ b/app/src/main/res/drawable/ic_downvote_filled_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_upvote_24dp.xml b/app/src/main/res/drawable/ic_upvote_24dp.xml new file mode 100644 index 00000000..9ca6698e --- /dev/null +++ b/app/src/main/res/drawable/ic_upvote_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_upvote_filled_24dp.xml b/app/src/main/res/drawable/ic_upvote_filled_24dp.xml new file mode 100644 index 00000000..b0e00898 --- /dev/null +++ b/app/src/main/res/drawable/ic_upvote_filled_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/item_post_card_3_with_preview.xml b/app/src/main/res/layout/item_post_card_3_with_preview.xml index f22b2bb4..237e2847 100644 --- a/app/src/main/res/layout/item_post_card_3_with_preview.xml +++ b/app/src/main/res/layout/item_post_card_3_with_preview.xml @@ -142,6 +142,16 @@ + + - - @@ -283,7 +283,7 @@ android:textStyle="bold" android:fontFamily="?attr/font_family" app:strokeWidth="0dp" - app:icon="@drawable/ic_arrow_upward_grey_24dp" /> + app:icon="@drawable/ic_upvote_24dp" /> + app:icon="@drawable/ic_downvote_24dp" /> -- cgit v1.2.3