aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_keyword.xml25
-rw-r--r--app/src/main/res/layout/view_keywords.xml44
-rw-r--r--app/src/main/res/values/ids.xml11
-rw-r--r--app/src/main/res/values/strings_preferences24
4 files changed, 94 insertions, 10 deletions
diff --git a/app/src/main/res/layout/item_keyword.xml b/app/src/main/res/layout/item_keyword.xml
new file mode 100644
index 00000000..2c24997f
--- /dev/null
+++ b/app/src/main/res/layout/item_keyword.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:paddingBottom="8dp"
+ android:paddingTop="8dp">
+
+ <android.support.v7.widget.AppCompatTextView
+ android:id="@+id/keyword_text"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:paddingEnd="@dimen/kau_dialog_margin" />
+
+ <ImageView
+ android:id="@+id/keyword_delete"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:background="?android:attr/selectableItemBackground"
+ android:scaleType="center" />
+
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/view_keywords.xml b/app/src/main/res/layout/view_keywords.xml
new file mode 100644
index 00000000..88498826
--- /dev/null
+++ b/app/src/main/res/layout/view_keywords.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="@dimen/kau_dialog_margin_bottom"
+ android:paddingEnd="@dimen/kau_dialog_margin"
+ android:paddingStart="@dimen/kau_dialog_margin">
+
+ <android.support.v7.widget.AppCompatEditText
+ android:id="@+id/edit_text"
+ android:layout_width="0dp"
+ android:layout_height="48dp"
+ android:hint="@string/hint_keyword"
+ android:paddingEnd="@dimen/kau_dialog_margin"
+ app:layout_constraintVertical_bias="0.5"
+ app:layout_constraintEnd_toStartOf="@+id/add_icon"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <ImageView
+ android:id="@id/add_icon"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:layout_marginBottom="8dp"
+ android:layout_marginTop="8dp"
+ android:background="?android:attr/selectableItemBackgroundBorderless"
+ android:scaleType="center"
+ app:layout_constraintBottom_toBottomOf="@id/edit_text"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toEndOf="@id/edit_text"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/recycler"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHeight_default="wrap"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/edit_text" />
+
+</android.support.constraint.ConstraintLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/ids.xml b/app/src/main/res/values/ids.xml
index 76a167af..9ce1b4e3 100644
--- a/app/src/main/res/values/ids.xml
+++ b/app/src/main/res/values/ids.xml
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="item_account" type="id" />
- <item name="pref_item_header" type="id" />
- <item name="pref_item_text" type="id" />
- <item name="pref_item_checkbox" type="id" />
-
- <item name="pref_view_title" type="id" />
- <item name="pref_view_desc" type="id" />
- <item name="pref_view_icon" type="id" />
- <item name="pref_view_icon_frame" type="id" />
- <item name="pref_view_inner_frame" type="id" />
- <item name="pref_view_checkbox" type="id" />
+ <item name="item_keyword" type="id" />
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings_preferences b/app/src/main/res/values/strings_preferences
index 1352360c..2aad590f 100644
--- a/app/src/main/res/values/strings_preferences
+++ b/app/src/main/res/values/strings_preferences
@@ -1,7 +1,31 @@
<resources>
+ <!--categories-->
+ <string name="appearance">Appearance</string>
+ <string name="appearance_desc">Theme, Items to display, etc</string>
+
+ <string name="notifications_desc">Frequency, filters, etc</string>
+
+ <!--themes-->
<string name="theme">Theme</string>
<string name="text_color">Text Color</string>
<string name="background_color">Background Color</string>
<string name="header_color">Header Color</string>
<string name="icon_color">Icon Color</string>
+
+ <string name="rounded_icons">Rounded Icons</string>
+ <string name="base_customization">Base Customization</string>
+ <string name="feed_customization">Feed Customization</string>
+ <string name="suggested_friends">Suggested Friends</string>
+ <string name="suggested_friends_desc">Show suggested friends in the feed</string>
+
+ <string name="notification_frequency">Notification Frequency</string>
+ <string name="notification_keywords">Keywords</string>
+ <string name="notification_keywords_desc">Does not notify when notification contains any of these keys.</string>
+ <string name="add_keyword">Add Keyword</string>
+ <string name="hint_keyword">Type keyword and press +</string>
+ <string name="empty_keyword">Empty Keyword</string>
+
+ <string name="fancy_animations">Fancy Animations</string>
+ <string name="fancy_animations_desc">Reveal webviews using ripples and animate transitions</string>
+
</resources> \ No newline at end of file