mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
55 lines
2.7 KiB
XML
55 lines
2.7 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.CircleColorImageView
|
|
android:id="@+id/document_button"
|
|
android:padding="4dp"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:src="@drawable/ic_insert_drive_file_white_24dp"
|
|
android:scaleType="center"
|
|
android:contentDescription="@string/file"
|
|
app:circleColor="@color/document_icon"/>
|
|
|
|
<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"
|
|
android:textColor="@color/document_icon_text"
|
|
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"
|
|
android:textColor="@color/document_icon_text"
|
|
tools:text="24kb"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</merge> |