Post editing functionality

Post editing is now functional! You can now edit the post you've made.

Closes #30
This commit is contained in:
Balazs Toldi
2023-08-01 09:32:34 +02:00
parent 907f6e92c3
commit 3a66a79f49
4 changed files with 179 additions and 35 deletions

View File

@@ -49,10 +49,53 @@
android:textColor="?attr/primaryTextColor"
android:fontFamily="?attr/title_font_family" />
<View
android:id="@+id/divider_edit_post_activity"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:id="@+id/divider_edit_post_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
<EditText
android:id="@+id/post_link_edit_text_post_edit_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00000000"
android:fontFamily="?attr/content_font_family"
android:gravity="top"
android:hint="@string/post_link_hint"
android:inputType="textMultiLine"
android:padding="16dp"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/content_font_18" />
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/upload_image_button_post_edit_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:fontFamily="?attr/font_family"
android:text="@string/upload_image"
android:textSize="?attr/font_default" />
<ImageView
android:id="@+id/image_view_post_edit_activity"
android:layout_width="match_parent"
android:layout_height="1dp" />
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitStart"
android:visibility="gone" />
<View
android:id="@+id/divider2_edit_post_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<EditText
android:id="@+id/post_text_content_edit_text_edit_post_activity"

View File

@@ -1343,4 +1343,5 @@
<string name="url_cannot_be_null_or_empty">URL cannot be null or empty</string>
<string name="could_not_resolve_link">Could not resolve URL :(</string>
<string name="mark_post_as_read_failed">Failed to mark post as read</string>
<string name="upload_image">Upload an image</string>
</resources>