aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-06-06 07:19:04 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-06-06 07:19:04 +0000
commit01d4d51253308fe8ac5ef6846f21f9cd9acbad00 (patch)
tree1a40aa1ee28d80361f1a8e39339c4531c78546ac /app
parentc4276736aeb8c26c2bd146a88591c350f7263e62 (diff)
downloadinfinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.tar
infinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.tar.gz
infinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.tar.bz2
infinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.tar.lz
infinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.tar.xz
infinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.tar.zst
infinity-for-reddit-01d4d51253308fe8ac5ef6846f21f9cd9acbad00.zip
Refine the UI of FlairBottomSheetFragment.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FlairBottomSheetRecyclerViewAdapter.java2
-rw-r--r--app/src/main/res/layout/fragment_flair_bottom_sheet.xml6
-rw-r--r--app/src/main/res/layout/item_flair.xml15
3 files changed, 16 insertions, 7 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FlairBottomSheetRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FlairBottomSheetRecyclerViewAdapter.java
index 4585c95e..4d738aa3 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FlairBottomSheetRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/FlairBottomSheetRecyclerViewAdapter.java
@@ -39,7 +39,7 @@ public class FlairBottomSheetRecyclerViewAdapter extends RecyclerView.Adapter<Fl
@NonNull
@Override
public FlairViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- return new FlairViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_flair, null, false));
+ return new FlairViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_flair, parent, false));
}
@Override
diff --git a/app/src/main/res/layout/fragment_flair_bottom_sheet.xml b/app/src/main/res/layout/fragment_flair_bottom_sheet.xml
index 41a12ab8..7827bb3a 100644
--- a/app/src/main/res/layout/fragment_flair_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_flair_bottom_sheet.xml
@@ -9,8 +9,12 @@
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="16dp"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
android:text="@string/flair"
+ android:textColor="?attr/primaryTextColor"
android:textSize="?attr/font_18"
android:fontFamily="?attr/font_family" />
diff --git a/app/src/main/res/layout/item_flair.xml b/app/src/main/res/layout/item_flair.xml
index de10c3dd..d6b0c239 100644
--- a/app/src/main/res/layout/item_flair.xml
+++ b/app/src/main/res/layout/item_flair.xml
@@ -9,19 +9,24 @@
<TextView
android:id="@+id/flair_text_view_item_flair"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:padding="16dp"
+ android:layout_weight="1"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family" />
<ImageView
android:id="@+id/edit_flair_image_view_item_flair"
- android:layout_width="24dp"
- android:layout_height="24dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
- android:layout_marginStart="32dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
android:src="@drawable/ic_edit_24dp"
android:visibility="gone"
app:tint="?attr/primaryTextColor"