diff options
author | Docile-Alligator <chineseperson5@gmail.com> | 2022-04-10 14:50:35 +0000 |
---|---|---|
committer | Docile-Alligator <chineseperson5@gmail.com> | 2022-04-10 14:50:35 +0000 |
commit | 3283541c9a254177bb712a125ed8c631ced4b7bc (patch) | |
tree | b3b76f9857dfbf4e2ebcbaaf3355a1342afa4ec2 /app/src/main/res | |
parent | ee9249cb64ecec968511f9050b30586be13bcf4c (diff) | |
download | infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.tar infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.tar.gz infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.tar.bz2 infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.tar.lz infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.tar.xz infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.tar.zst infinity-for-reddit-3283541c9a254177bb712a125ed8c631ced4b7bc.zip |
Show post karma, comment karma, awarder karma and awardee karma in ViewUserDetailActivity by clicking the karma info text.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_karma_info_bottom_sheet.xml | 105 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 7 |
2 files changed, 111 insertions, 1 deletions
diff --git a/app/src/main/res/layout/fragment_karma_info_bottom_sheet.xml b/app/src/main/res/layout/fragment_karma_info_bottom_sheet.xml new file mode 100644 index 00000000..2e3f5871 --- /dev/null +++ b/app/src/main/res/layout/fragment_karma_info_bottom_sheet.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:context=".bottomsheetfragments.KarmaInfoBottomSheetFragment"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/post_karma" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView + android:id="@+id/post_karma_karma_info_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_20" + android:fontFamily="?attr/font_family" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/comment_karma" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView + android:id="@+id/comment_karma_karma_info_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_20" + android:fontFamily="?attr/font_family" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/awarder_karma" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView + android:id="@+id/awarder_karma_karma_info_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_20" + android:fontFamily="?attr/font_family" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/awardee_karma" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView + android:id="@+id/awardee_karma_karma_info_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_20" + android:fontFamily="?attr/font_family" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ef3a4ede..9bbe06c9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1277,7 +1277,7 @@ <string name="user_agreement_message">You need to agree to Reddit User Agreement (%1$s) and Infinity for Reddit\'s Privacy Policy (%2$s) before logging in.</string> <string name="agree">Agree</string> <string name="do_not_agree">Don\'t Agree</string> - + <string name="option_1_hint">Option 1 (Required)</string> <string name="option_2_hint">Option 2 (Required)</string> <string name="option_3_hint">Option 3</string> @@ -1287,4 +1287,9 @@ <string name="not_a_valid_number">Not a valid number</string> + <string name="post_karma">Post Karma:</string> + <string name="comment_karma">Comment Karma:</string> + <string name="awarder_karma">Awarder Karma:</string> + <string name="awardee_karma">Awardee Karma:</string> + </resources> |