109 lines
5.4 KiB
XML
Raw Normal View History

<?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-12 16:03:32 -07:00
android:gravity="center_vertical"
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 10:27:44 -07: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-12 16:03:32 -07:00
android:id="@+id/icon"
2018-06-26 10:27:44 -07:00
android:layout_width="38dp"
android:layout_height="50dp"
2018-07-12 16:03:32 -07:00
android:src="?attachment_document_icon_large"/>
<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 10:27:44 -07:00
style="@style/Signal.Text.Caption"
android:textAllCaps="true"
2018-06-26 10:27:44 -07:00
android:textSize="10sp"
android:textColor="@color/core_black"
tools:visibility="visible"
2018-06-26 10:27:44 -07:00
tools:text="PDF" />
</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 10:27:44 -07:00
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-15 16:13:28 +11:00
android:layout_marginStart="6dp"
2018-06-26 10:27:44 -07:00
android:orientation="vertical"
android:focusable="false"
2018-06-26 10:27:44 -07:00
android:clickable="false">
<TextView android:id="@+id/file_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-06-26 10:27:44 -07:00
style="@style/Signal.Text.Body"
2020-01-15 16:13:28 +11:00
android:textSize="@dimen/medium_font_size"
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 10:27:44 -07:00
style="@style/Signal.Text.Caption"
android:clickable="false"
tools:text="24kb"/>
</LinearLayout>
</LinearLayout>
</merge>