diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-14 05:53:08 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-14 05:53:08 +0000 |
commit | eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17 (patch) | |
tree | cedd6330b86c51a237d28f29aed72bd66121d7dc /app/src/main/res/layout | |
parent | a62f47aacb443df4f680ffb1321e84b7f54966f3 (diff) | |
download | infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.tar infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.tar.gz infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.tar.bz2 infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.tar.lz infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.tar.xz infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.tar.zst infinity-for-reddit-eaef58037c9df2cb7938c4a34f2ee5bcaf6b0d17.zip |
Editing flair is now available.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/dialog_edit_flair.xml | 24 | ||||
-rw-r--r-- | app/src/main/res/layout/item_flair.xml | 26 |
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 |