aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-08-10 04:08:19 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-08-10 04:08:19 +0000
commite487f27461e0bf7e404764ce790d3ed38180b9d6 (patch)
treee1e250af9a16f9b7efc080082d2b7088f5b0fd05
parenta480bc5e10ed504e20c713027cc2a672484b0710 (diff)
downloadinfinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.tar
infinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.tar.gz
infinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.tar.bz2
infinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.tar.lz
infinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.tar.xz
infinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.tar.zst
infinity-for-reddit-e487f27461e0bf7e404764ce790d3ed38180b9d6.zip
Enlarge clicking area for buttons in comments. Add extra bottom padding for CustomToroContainer in ViewPostDetailActivity.
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java2
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml1
-rw-r--r--app/src/main/res/layout/item_comment.xml19
3 files changed, 8 insertions, 14 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
index 362eae60..d46fdfe1 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
@@ -247,7 +247,7 @@ public class ViewPostDetailActivity extends BaseActivity implements FlairBottomS
CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) fab.getLayoutParams();
params.bottomMargin = navBarHeight;
fab.setLayoutParams(params);
- mRecyclerView.setPadding(0, 0, 0, navBarHeight);
+ mRecyclerView.setPadding(0, 0, 0, navBarHeight + mRecyclerView.getPaddingBottom());
showToast = true;
}
}
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml
index 621903a8..a4492fc4 100644
--- a/app/src/main/res/layout/activity_view_post_detail.xml
+++ b/app/src/main/res/layout/activity_view_post_detail.xml
@@ -42,6 +42,7 @@
android:id="@+id/recycler_view_view_post_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:paddingBottom="48dp"
android:clipToPadding="false" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml
index 8724cda8..4d5ce253 100644
--- a/app/src/main/res/layout/item_comment.xml
+++ b/app/src/main/res/layout/item_comment.xml
@@ -120,7 +120,6 @@
android:id="@+id/bottom_constraint_layout_item_post_comment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingBottom="12dp"
android:paddingStart="4dp"
android:paddingEnd="4dp">
@@ -128,8 +127,7 @@
android:id="@+id/up_vote_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
+ android:padding="8dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true"
@@ -154,8 +152,7 @@
android:id="@+id/down_vote_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
+ android:padding="8dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true"
@@ -171,8 +168,7 @@
android:id="@+id/more_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
+ android:padding="8dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true"
@@ -185,8 +181,7 @@
android:id="@+id/expand_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
+ android:padding="8dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true"
@@ -201,8 +196,7 @@
android:id="@+id/save_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
+ android:padding="8dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true"
@@ -214,8 +208,7 @@
android:id="@+id/reply_button_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingStart="8dp"
- android:paddingEnd="8dp"
+ android:padding="8dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true"