diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java index ea30eb1e4..a0dbdcc05 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java @@ -56,8 +56,8 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ } public static class Holder extends StatusDisplayItem.Holder{ - private final TextView reply, boost, favorite; - private final ImageView share, bookmark; + private final TextView replies, boosts, favorites; + private final View reply, boost, favorite, share, bookmark; private static final Animation opacityOut, opacityIn; private View touchingView = null; @@ -91,21 +91,16 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ public Holder(Activity activity, ViewGroup parent){ super(activity, R.layout.display_item_footer, parent); - reply=findViewById(R.id.reply); - boost=findViewById(R.id.boost); - favorite=findViewById(R.id.favorite); - bookmark=findViewById(R.id.bookmark); - share=findViewById(R.id.share); - if(Build.VERSION.SDK_INTboostConsumer(v, r)); } private void boostConsumer(View v, Status r) { v.startAnimation(opacityIn); - bindButton(boost, r.reblogsCount); + bindButton(boosts, r.reblogsCount); } private boolean onBoostLongClick(View v){ @@ -312,10 +307,10 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ } private void onFavoriteClick(View v){ - favorite.setSelected(!item.status.favourited); + favorites.setSelected(!item.status.favourited); AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(item.status, !item.status.favourited, r->{ v.startAnimation(opacityIn); - bindButton(favorite, r.favouritesCount); + bindButton(favorites, r.favouritesCount); }); } diff --git a/mastodon/src/main/res/color/boost_icon.xml b/mastodon/src/main/res/color/boost_icon.xml index e50a9554a..9efc146c8 100644 --- a/mastodon/src/main/res/color/boost_icon.xml +++ b/mastodon/src/main/res/color/boost_icon.xml @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/mastodon/src/main/res/layout/display_item_footer.xml b/mastodon/src/main/res/layout/display_item_footer.xml index e1a173b2b..420f8b529 100644 --- a/mastodon/src/main/res/layout/display_item_footer.xml +++ b/mastodon/src/main/res/layout/display_item_footer.xml @@ -18,80 +18,105 @@ android:layout_weight="1" android:layout_width="0dp" android:layout_height="match_parent"> - + - + tools:text="123" + tools:ignore="RtlSymmetry" /> + - + - + tools:text="123" + tools:ignore="RtlSymmetry" /> + - + - + tools:text="123" + tools:ignore="RtlSymmetry" /> + diff --git a/mastodon/src/main/res/values/attrs.xml b/mastodon/src/main/res/values/attrs.xml index 86ffa2122..95b630003 100644 --- a/mastodon/src/main/res/values/attrs.xml +++ b/mastodon/src/main/res/values/attrs.xml @@ -21,6 +21,7 @@ + diff --git a/mastodon/src/main/res/values/styles.xml b/mastodon/src/main/res/values/styles.xml index c29fc5452..12e31868e 100644 --- a/mastodon/src/main/res/values/styles.xml +++ b/mastodon/src/main/res/values/styles.xml @@ -28,6 +28,7 @@ ?colorGray100 ?colorGray800 ?colorGray500 + ?colorGray300 ?colorGray50 #E9EDF2 ?colorGray50 @@ -127,6 +128,7 @@ ?colorGray700 ?colorGray50 ?colorGray400 + ?colorGray500 ?colorGray800 #E9EDF2 ?colorGray700