aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-22 15:20:11 -0700
committerAllan Wang <me@allanwang.ca>2017-06-22 15:20:11 -0700
commit56678f8a76a4034ae8a63c92e49ba39cc54ee057 (patch)
tree7ebad2c45dc573d6e28824462478b6f9d2bf30ed /app/src/main/res/layout
parent297e6704a6332c43408b8a3579ccfaccaa6591a1 (diff)
downloadfrost-56678f8a76a4034ae8a63c92e49ba39cc54ee057.tar.gz
frost-56678f8a76a4034ae8a63c92e49ba39cc54ee057.tar.bz2
frost-56678f8a76a4034ae8a63c92e49ba39cc54ee057.zip
Add notification filtering
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/item_keyword.xml25
-rw-r--r--app/src/main/res/layout/view_keywords.xml44
2 files changed, 69 insertions, 0 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