mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-06 05:49:49 +02:00
Deleting and editing posts are now available.
This commit is contained in:
64
app/src/main/res/layout/activity_edit_post.xml
Normal file
64
app/src/main/res/layout/activity_edit_post.xml
Normal file
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/coordinator_layout_edit_post_activity"
|
||||
tools:context=".EditPostActivity">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/AppTheme.AppBarOverlay">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar_edit_post_activity"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"
|
||||
app:navigationIcon="?attr/homeAsUpIndicator" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/post_title_text_view_edit_post_activity"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="top"
|
||||
android:padding="16dp"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/primaryTextColor" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/dividerColor" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/post_text_content_edit_text_edit_post_activity"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="top"
|
||||
android:padding="16dp"
|
||||
android:hint="@string/post_text_content_hint"
|
||||
android:inputType="textCapSentences|textMultiLine"
|
||||
android:textSize="18sp"
|
||||
android:background="#00000000"
|
||||
android:textColor="@color/primaryTextColor" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
@@ -87,7 +87,7 @@
|
||||
android:textColor="@color/primaryTextColor"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
android:text="@string/spoiler"
|
||||
android:textColor="@color/primaryTextColor"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
|
@@ -87,7 +87,7 @@
|
||||
android:textColor="@color/primaryTextColor"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
android:text="@string/spoiler"
|
||||
android:textColor="@color/primaryTextColor"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
|
@@ -87,7 +87,7 @@
|
||||
android:textColor="@color/primaryTextColor"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
android:text="@string/spoiler"
|
||||
android:textColor="@color/primaryTextColor"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
|
@@ -87,7 +87,7 @@
|
||||
android:textColor="@color/primaryTextColor"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
android:text="@string/spoiler"
|
||||
android:textColor="@color/primaryTextColor"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
|
@@ -64,7 +64,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/textColorPrimaryDark"
|
||||
android:textColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<TextView
|
||||
|
@@ -9,7 +9,7 @@
|
||||
android:id="@+id/vertical_block_item_post_comment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/textColorPrimaryDark"/>
|
||||
android:background="@color/colorPrimaryDarkDayNightTheme"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -30,7 +30,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:textColor="@color/textColorPrimaryDark"/>
|
||||
android:textColor="@color/colorPrimaryDarkDayNightTheme"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/comment_time_text_view_item_post_comment"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
android:id="@+id/vertical_block_item_load_more_comments"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/textColorPrimaryDark" />
|
||||
android:background="@color/colorPrimaryDarkDayNightTheme" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/placeholder_text_view_item_load_more_comments"
|
||||
|
@@ -161,7 +161,7 @@
|
||||
android:padding="4dp"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
android:padding="4dp"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
|
@@ -45,7 +45,7 @@
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_below="@id/subreddit_text_view_item_post_detail"
|
||||
android:layout_toEndOf="@id/icon_gif_image_view_item_post_detail"
|
||||
android:textColor="@color/textColorPrimaryDark" />
|
||||
android:textColor="@color/colorPrimaryDarkDayNightTheme" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
android:padding="4dp"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
android:padding="4dp"
|
||||
android:visibility="gone"
|
||||
app:lib_setRadius="3dp"
|
||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||
app:lib_setRoundedBorderColor="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:lib_setRoundedView="true"
|
||||
app:lib_setShape="rectangle" />
|
||||
|
||||
|
@@ -35,7 +35,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/baseline_add_white_24"
|
||||
android:tint="@color/textColorPrimaryDark"
|
||||
android:tint="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
@@ -35,7 +35,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/baseline_add_white_24"
|
||||
android:tint="@color/textColorPrimaryDark"
|
||||
android:tint="@color/colorPrimaryDarkDayNightTheme"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
Reference in New Issue
Block a user