diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-16 00:40:39 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-16 00:40:39 +0000 |
commit | 4f4dc821d4daaf332c16d970256999c9532fcb3c (patch) | |
tree | aedfcf6792986ed02f7789822f7733ccb6117c57 /app/src/main/res/layout | |
parent | b9ecbc2a105828326e8996229eb57640f248b1ce (diff) | |
download | infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.tar infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.tar.gz infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.tar.bz2 infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.tar.lz infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.tar.xz infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.tar.zst infinity-for-reddit-4f4dc821d4daaf332c16d970256999c9532fcb3c.zip |
Implement SelectOrCaptureImageBottomSheetFragment.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/fragment_select_or_capture_image_bottom_sheet.xml | 53 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml | 2 |
2 files changed, 54 insertions, 1 deletions
diff --git a/app/src/main/res/layout/fragment_select_or_capture_image_bottom_sheet.xml b/app/src/main/res/layout/fragment_select_or_capture_image_bottom_sheet.xml new file mode 100644 index 00000000..55f60691 --- /dev/null +++ b/app/src/main/res/layout/fragment_select_or_capture_image_bottom_sheet.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="8dp" + android:overScrollMode="never"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/select_image_text_view_select_or_capture_image_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/select_image" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + android:drawableStart="@drawable/ic_outline_select_photo_day_night_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + + <TextView + android:id="@+id/capture_image_text_view_select_or_capture_image_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/capture" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + android:drawableStart="@drawable/ic_outline_add_a_photo_day_night_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + + </LinearLayout> + +</androidx.core.widget.NestedScrollView>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml b/app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml index 79b6fa82..f3e96ef5 100644 --- a/app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml @@ -40,7 +40,7 @@ android:layout_margin="16dp" android:backgroundTint="@color/colorPrimary" android:textColor="#FFFFFF" - android:text="@string/upload" /> + android:text="@string/select_image" /> </LinearLayout> |