diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-07-12 03:31:28 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-07-12 03:31:28 +0000 |
commit | fcc34b45d4aeae95bd16c9d70f0a2db5109951f0 (patch) | |
tree | d8708a4ede38d34d4ae70b9860aa6fb1e18262a1 /app/src/main/res/layout | |
parent | 68d3a7b09f42aef6c3ec1874af3c9dee4c3eef8c (diff) | |
download | infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.tar infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.tar.gz infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.tar.bz2 infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.tar.lz infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.tar.xz infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.tar.zst infinity-for-reddit-fcc34b45d4aeae95bd16c9d70f0a2db5109951f0.zip |
Use a modal bottom sheet to display post selection instead of an alert dialog. Fixed some icons.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_main.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/post_type_bottom_sheet.xml | 122 |
2 files changed, 124 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 6c30dbc2..fc198172 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -72,7 +72,7 @@ android:layout_height="24dp" android:layout_gravity="center_vertical" android:layout_marginEnd="32dp" - android:src="@drawable/ic_outline_account_circle_24px" + android:src="@drawable/ic_outline_check_circle_outline_24px" android:tint="@color/primaryTextColor"/> <TextView @@ -103,7 +103,7 @@ android:layout_height="24dp" android:layout_gravity="center_vertical" android:layout_marginEnd="32dp" - android:src="@drawable/ic_outline_account_circle_24px" + android:src="@drawable/ic_outline_settings_24px" android:tint="@color/primaryTextColor"/> <TextView diff --git a/app/src/main/res/layout/post_type_bottom_sheet.xml b/app/src/main/res/layout/post_type_bottom_sheet.xml new file mode 100644 index 00000000..617c1aa3 --- /dev/null +++ b/app/src/main/res/layout/post_type_bottom_sheet.xml @@ -0,0 +1,122 @@ +<?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"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp" + android:text="@string/dialog_post_type" + android:textSize="18sp" /> + + <LinearLayout + android:id="@+id/text_type_linear_layout_post_type_bottom_sheet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" > + + <ImageView + android:layout_width="18dp" + android:layout_height="18dp" + android:layout_gravity="center_vertical" + android:layout_marginEnd="32dp" + android:src="@drawable/ic_outline_text_24px" + android:tint="@color/primaryTextColor" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/dialog_post_text" + android:textColor="@color/primaryTextColor" + android:textSize="18sp" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/link_type_linear_layout_post_type_bottom_sheet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" > + + <ImageView + android:layout_width="18dp" + android:layout_height="18dp" + android:layout_gravity="center_vertical" + android:layout_marginEnd="32dp" + android:src="@drawable/ic_link" + android:tint="@color/primaryTextColor" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/dialog_post_link" + android:textColor="@color/primaryTextColor" + android:textSize="18sp" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/image_type_linear_layout_post_type_bottom_sheet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" > + + <ImageView + android:layout_width="18dp" + android:layout_height="18dp" + android:layout_gravity="center_vertical" + android:layout_marginEnd="32dp" + android:src="@drawable/ic_menu_gallery" + android:tint="@color/primaryTextColor" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/dialog_post_image" + android:textColor="@color/primaryTextColor" + android:textSize="18sp" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/video_type_linear_layout_post_type_bottom_sheet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" > + + <ImageView + android:layout_width="18dp" + android:layout_height="18dp" + android:layout_marginEnd="32dp" + android:layout_gravity="center_vertical" + android:src="@drawable/ic_outline_video_label_24px" + android:tint="@color/primaryTextColor" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/dialog_post_video" + android:textColor="@color/primaryTextColor" + android:textSize="18sp" /> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file |