mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-29 11:17:47 +00:00
ea374735e1
Previously, we were always rendering images as squares. Instead of doing that, we now render them as close to true-to-size as possible (within reasonable min/max width/height boundaries).
63 lines
2.8 KiB
XML
63 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/attachment_editor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:visibility="gone">
|
|
|
|
<org.thoughtcrime.securesms.components.RemovableEditableMediaView
|
|
android:id="@+id/removable_media_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center">
|
|
|
|
<org.thoughtcrime.securesms.components.location.SignalMapView
|
|
android:id="@+id/attachment_location"
|
|
android:layout_width="210dp"
|
|
android:layout_height="210dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:visibility="gone"/>
|
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
android:id="@+id/attachment_thumbnail"
|
|
android:layout_width="230dp"
|
|
android:layout_height="150dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:visibility="gone"
|
|
android:contentDescription="@string/conversation_activity__attachment_thumbnail"
|
|
app:backgroundColorHint="?conversation_background"
|
|
app:minWidth="100dp"
|
|
app:maxWidth="300dp"
|
|
app:minHeight="100dp"
|
|
app:maxHeight="300dp" />
|
|
|
|
<org.thoughtcrime.securesms.components.AudioView
|
|
android:id="@+id/attachment_audio"
|
|
android:layout_width="210dp"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="15dp"
|
|
app:widgetBackground="?conversation_item_bubble_background"
|
|
app:foregroundTintColor="@color/grey_500"
|
|
app:backgroundTintColor="?conversation_item_bubble_background"/>
|
|
|
|
<org.thoughtcrime.securesms.components.DocumentView
|
|
android:id="@+id/attachment_document"
|
|
android:layout_width="210dp"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="15dp"
|
|
app:documentWidgetBackground="?conversation_item_bubble_background"
|
|
app:documentForegroundTintColor="@color/grey_500"
|
|
app:documentBackgroundTintColor="?conversation_item_bubble_background"/>
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.RemovableEditableMediaView>
|
|
|
|
</FrameLayout>
|
|
|