aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-01-06 04:58:30 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-01-06 04:58:30 +0000
commitd2ca131d2570efc555bf35be2f7df84e27106b1c (patch)
tree782d7b080b9220e354c8438520eb6209a94b7905 /app/src/main/res
parent29b6c66ae2ee92673f75217a9e8ac6e19c56c0dc (diff)
downloadinfinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.tar
infinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.tar.gz
infinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.tar.bz2
infinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.tar.lz
infinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.tar.xz
infinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.tar.zst
infinity-for-reddit-d2ca131d2570efc555bf35be2f7df84e27106b1c.zip
Add a FAB to send private message in InboxActivity. Minor layout tweaks.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_inbox.xml8
-rw-r--r--app/src/main/res/layout/dialog_go_to_thing_edit_text.xml27
-rw-r--r--app/src/main/res/values/strings.xml2
3 files changed, 30 insertions, 7 deletions
diff --git a/app/src/main/res/layout/activity_inbox.xml b/app/src/main/res/layout/activity_inbox.xml
index dee4ab8c..b65c0d89 100644
--- a/app/src/main/res/layout/activity_inbox.xml
+++ b/app/src/main/res/layout/activity_inbox.xml
@@ -51,4 +51,12 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fab_inbox_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="@dimen/fab_margin"
+ android:layout_gravity="bottom|end"
+ app:srcCompat="@drawable/ic_add_day_night_24dp" />
+
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml b/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml
index 748376bf..2175b284 100644
--- a/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml
+++ b/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml
@@ -1,10 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
-<EditText xmlns:android="http://schemas.android.com/apk/res/android"
+<com.google.android.material.textfield.TextInputLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="24dp"
- android:background="#00000000"
- android:hint="@string/go_to_thing_hint"
- android:textColor="?attr/primaryTextColor"
- android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family" /> \ No newline at end of file
+ android:paddingStart="16dp"
+ android:paddingTop="8dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="8dp"
+ app:boxStrokeColor="?attr/primaryTextColor"
+ app:hintTextColor="?attr/primaryTextColor">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/text_input_edit_text_go_to_thing_edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fontFamily="?attr/font_family"
+ android:hint="@string/go_to_thing_hint"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default" />
+
+</com.google.android.material.textfield.TextInputLayout> \ 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 640db5b0..29d5930c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1004,4 +1004,6 @@
<string name="add_subreddit_or_user_to_multireddit_success">%1$s is added to multireddit %2$s</string>
<string name="add_subreddit_or_user_to_multireddit_failed">Unable to add %1$s to multireddit %2$s</string>
+ <string name="choose_a_user">Choose a user</string>
+
</resources>