aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/dialog_edit_flair.xml24
-rw-r--r--app/src/main/res/layout/item_flair.xml26
2 files changed, 43 insertions, 7 deletions
diff --git a/app/src/main/res/layout/dialog_edit_flair.xml b/app/src/main/res/layout/dialog_edit_flair.xml
new file mode 100644
index 00000000..7893cf66
--- /dev/null
+++ b/app/src/main/res/layout/dialog_edit_flair.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <EditText
+ android:id="@+id/flair_edit_text_edit_flair_dialog"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="24dp"
+ android:background="#00000000"
+ android:textColor="@color/primaryTextColor"
+ android:hint="@string/flair"
+ android:maxLength="64" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:text="@string/only_allow_64_chars"
+ android:textColor="@color/colorAccent"/>
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_flair.xml b/app/src/main/res/layout/item_flair.xml
index c6006358..7cce337f 100644
--- a/app/src/main/res/layout/item_flair.xml
+++ b/app/src/main/res/layout/item_flair.xml
@@ -1,16 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground">
<TextView
android:id="@+id/flair_text_view_item_flair"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"
- android:textColor="@color/primaryTextColor"
- android:clickable="true"
- android:focusable="true"
- android:background="?attr/selectableItemBackground" />
+ android:textColor="@color/primaryTextColor" />
+ <ImageView
+ android:id="@+id/edit_flair_image_view_item_flair"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical|end"
+ android:layout_marginStart="32dp"
+ android:src="@drawable/ic_outline_edit_24px"
+ android:visibility="gone"
+ android:tint="@color/primaryTextColor"
+ android:background="?actionBarItemBackground"
+ android:clickable="true"
+ android:focusable="true" />
</LinearLayout> \ No newline at end of file