Basic quote view attachment handling

This commit is contained in:
Niels Andriesse
2021-06-21 14:24:00 +10:00
parent 517539a837
commit 48df733773
6 changed files with 64 additions and 19 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/black" />
<corners android:radius="4dp" />
</shape>

View File

@@ -18,7 +18,23 @@
android:layout_centerVertical="true"
android:background="@color/text" />
<!-- The start margin below is the accent line thickness (4 dp) + 12 dp -->
<RelativeLayout
android:id="@+id/quoteViewAttachmentPreviewContainer"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="@drawable/view_quote_attachment_preview_background">
<ImageView
android:id="@+id/quoteViewAttachmentPreviewImageView"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerInParent="true"
android:scaleType="centerInside"
android:src="@drawable/ic_microphone" />
</RelativeLayout>
<LinearLayout
android:id="@+id/quoteViewMainContentContainer"

View File

@@ -845,4 +845,6 @@
<string name="fragment_user_details_bottom_sheet_edit_text_hint">Enter a nickname</string>
<string name="invalid_public_key">Invalid public key</string>
<string name="document">Document</string>
</resources>