mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
110 lines
5.4 KiB
XML
110 lines
5.4 KiB
XML
<?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"
|
|
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"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/icon_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="-4dp"
|
|
android:layout_marginStart="-4dp"
|
|
android:gravity="center"
|
|
android:visibility="visible"
|
|
android:clickable="false"
|
|
android:focusable="false">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="38dp"
|
|
android:layout_height="50dp"
|
|
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"
|
|
style="@style/Signal.Text.Caption"
|
|
android:textAllCaps="true"
|
|
android:textSize="10sp"
|
|
android:textColor="@color/core_black"
|
|
tools:visibility="visible"
|
|
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>
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_marginStart="2dp"
|
|
android:orientation="vertical"
|
|
android:focusable="false"
|
|
android:clickable="false">
|
|
|
|
<TextView android:id="@+id/file_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Signal.Text.Body"
|
|
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"
|
|
style="@style/Signal.Text.Caption"
|
|
android:clickable="false"
|
|
tools:text="24kb"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</merge> |