2017-03-28 21:05:30 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
tools:context="org.thoughtcrime.securesms.components.DocumentView">
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/document_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
2018-07-13 01:03:32 +02:00
|
|
|
android:gravity="center_vertical"
|
2017-03-28 21:05:30 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AnimatingToggle
|
|
|
|
android:id="@+id/control_toggle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
<com.pnikosis.materialishprogress.ProgressWheel
|
|
|
|
android:id="@+id/download_progress"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:clickable="false"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:matProg_barColor="@color/white"
|
|
|
|
app:matProg_linearProgress="true"
|
|
|
|
app:matProg_spinSpeed="0.333"
|
|
|
|
tools:visibility="gone"/>
|
|
|
|
|
2018-06-26 19:27:44 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/icon_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginStart="-4dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="visible"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false">
|
|
|
|
|
|
|
|
<ImageView
|
2018-07-13 01:03:32 +02:00
|
|
|
android:id="@+id/icon"
|
2018-06-26 19:27:44 +02:00
|
|
|
android:layout_width="38dp"
|
|
|
|
android:layout_height="50dp"
|
2018-07-13 01:03:32 +02:00
|
|
|
android:src="?attachment_document_icon_large"/>
|
2017-03-28 21:05:30 +02:00
|
|
|
|
|
|
|
<TextView android:id="@+id/document"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:clickable="false"
|
|
|
|
android:visibility="visible"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:scaleType="centerInside"
|
2018-06-26 19:27:44 +02:00
|
|
|
style="@style/Signal.Text.Caption"
|
2017-03-28 21:05:30 +02:00
|
|
|
android:textAllCaps="true"
|
2018-06-26 19:27:44 +02:00
|
|
|
android:textSize="10sp"
|
|
|
|
android:textColor="@color/core_black"
|
2017-03-28 21:05:30 +02:00
|
|
|
tools:visibility="visible"
|
2018-06-26 19:27:44 +02:00
|
|
|
tools:text="PDF" />
|
2017-03-28 21:05:30 +02:00
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/download"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:clickable="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background"
|
|
|
|
android:src="@drawable/ic_download_circle_fill_white_48dp"
|
|
|
|
android:contentDescription="@string/audio_view__download_accessibility_description"/>
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
|
|
|
|
2018-06-26 19:27:44 +02:00
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-15 06:13:28 +01:00
|
|
|
android:layout_marginStart="6dp"
|
2018-06-26 19:27:44 +02:00
|
|
|
android:orientation="vertical"
|
2017-03-28 21:05:30 +02:00
|
|
|
android:focusable="false"
|
2018-06-26 19:27:44 +02:00
|
|
|
android:clickable="false">
|
2017-03-28 21:05:30 +02:00
|
|
|
|
|
|
|
<TextView android:id="@+id/file_name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 19:27:44 +02:00
|
|
|
style="@style/Signal.Text.Body"
|
2020-01-15 06:13:28 +01:00
|
|
|
android:textSize="@dimen/medium_font_size"
|
2017-03-28 21:05:30 +02:00
|
|
|
android:singleLine="true"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:clickable="false"
|
|
|
|
android:ellipsize="end"
|
|
|
|
tools:text="The-Anarchist-Tension-by-Alfredo-Bonanno.pdf"/>
|
|
|
|
|
|
|
|
<TextView android:id="@+id/file_size"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 19:27:44 +02:00
|
|
|
style="@style/Signal.Text.Caption"
|
2017-03-28 21:05:30 +02:00
|
|
|
android:clickable="false"
|
|
|
|
tools:text="24kb"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</merge>
|