diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-04 14:46:15 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-04 14:46:15 +0000 |
commit | f3d905c817c29798755fca863775a90ce0b511e1 (patch) | |
tree | 7e058723ec469f8b337be7469d2ff726006a91d8 /app/src/main/res | |
parent | 5210bbe7dbdf6224a8ec7f4bde43dfa17348e608 (diff) | |
download | infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.tar infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.tar.gz infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.tar.bz2 infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.tar.lz infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.tar.xz infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.tar.zst infinity-for-reddit-f3d905c817c29798755fca863775a90ce0b511e1.zip |
Save image name and image url for uploaded images when uploading images. Uploading captured images is available.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml | 53 | ||||
-rw-r--r-- | app/src/main/res/layout/item_uploaded_image.xml | 28 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 3 |
3 files changed, 84 insertions, 0 deletions
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 new file mode 100644 index 00000000..4eb8005c --- /dev/null +++ b/app/src/main/res/layout/fragment_uploaded_images_bottom_sheet.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + tools:context=".bottomsheetfragments.UploadedImagesBottomSheetFragment"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:paddingTop="8dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" + android:text="@string/uploaded_images" + android:fontFamily="?attr/font_family" + android:textSize="?attr/font_18" + android:textColor="?attr/primaryTextColor" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="end"> + + <com.google.android.material.button.MaterialButton + android:id="@+id/capture_button_uploaded_images_bottom_sheet_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:backgroundTint="@color/colorPrimary" + android:textColor="#FFFFFF" + android:text="@string/capture" /> + + <com.google.android.material.button.MaterialButton + android:id="@+id/upload_button_uploaded_images_bottom_sheet_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:backgroundTint="@color/colorPrimary" + android:textColor="#FFFFFF" + android:text="@string/upload" /> + + </LinearLayout> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_uploaded_images_bottom_sheet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_uploaded_image.xml b/app/src/main/res/layout/item_uploaded_image.xml new file mode 100644 index 00000000..6fb4b589 --- /dev/null +++ b/app/src/main/res/layout/item_uploaded_image.xml @@ -0,0 +1,28 @@ +<?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:orientation="vertical" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <TextView + android:id="@+id/image_name_item_uploaded_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fontFamily="?attr/font_family" + android:textSize="?attr/font_16" + android:textColor="?attr/primaryTextColor" /> + + <TextView + android:id="@+id/image_url_item_uploaded_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:fontFamily="?attr/font_family" + android:textSize="?attr/font_12" + android:textColor="?attr/secondaryTextColor" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index cf4d8871..468d7d6d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1118,6 +1118,9 @@ <string name="reply">Reply</string> + <string name="uploaded_images">Uploaded Images</string> + <string name="upload">Upload</string> + <string name="capture">Capture</string> <string name="get_image_bitmap_failed">Unable to get the bitmap of the image</string> <string name="upload_image_failed">Unable to upload the image</string> |