mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:37:29 +00:00
load image previews asynchronously
// FREEBIE
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout 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"
|
||||
android:background="@color/gray95">
|
||||
@@ -11,4 +12,24 @@
|
||||
android:contentDescription="@string/media_preview_activity__image_content_description"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<TextView android:id="@+id/loading_indicator"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="···"
|
||||
android:textSize="30sp"
|
||||
android:textColor="@color/gray10"
|
||||
android:visibility="gone"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<TextView android:id="@+id/error"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="#ff600000"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="15sp"
|
||||
android:padding="10dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
@@ -763,6 +763,7 @@
|
||||
|
||||
<!-- MediaPreviewActivity -->
|
||||
<string name="MediaPreviewActivity_you">You</string>
|
||||
<string name="MediaPreviewActivity_cant_display">Failed to preview this image</string>
|
||||
|
||||
<!-- media_preview -->
|
||||
<string name="media_preview__save_title">Save</string>
|
||||
|
Reference in New Issue
Block a user