|
@@ -0,0 +1,105 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
+ ~ Nextcloud Talk application
|
|
|
+ ~
|
|
|
+ ~ @author Mario Danic
|
|
|
+ ~ Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com>
|
|
|
+ ~
|
|
|
+ ~ This program is free software: you can redistribute it and/or modify
|
|
|
+ ~ it under the terms of the GNU General Public License as published by
|
|
|
+ ~ the Free Software Foundation, either version 3 of the License, or
|
|
|
+ ~ at your option) any later version.
|
|
|
+ ~
|
|
|
+ ~ This program is distributed in the hope that it will be useful,
|
|
|
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ ~ GNU General Public License for more details.
|
|
|
+ ~
|
|
|
+ ~ You should have received a copy of the GNU General Public License
|
|
|
+ ~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+ -->
|
|
|
+
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/standard_margin"
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
+ android:layout_marginBottom="@dimen/standard_margin"
|
|
|
+ android:background="@color/bg_default">
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/select_file_checkbox"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:clickable="true"
|
|
|
+ android:focusable="true"
|
|
|
+ android:longClickable="false"
|
|
|
+ android:visibility="visible" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fileFavoriteImageView"
|
|
|
+ android:layout_width="16dp"
|
|
|
+ android:layout_height="16dp"
|
|
|
+ android:layout_below="@id/file_icon"
|
|
|
+ android:layout_alignEnd="@id/file_icon"
|
|
|
+ android:contentDescription="@string/starred"
|
|
|
+ android:src="@drawable/ic_star_black_24dp"
|
|
|
+ app:tint="@color/favorite_icon_tint" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fileEncryptedImageView"
|
|
|
+ android:layout_width="16dp"
|
|
|
+ android:layout_height="16dp"
|
|
|
+ android:layout_below="@id/file_icon"
|
|
|
+ android:layout_alignStart="@+id/file_icon"
|
|
|
+ android:contentDescription="@string/encrypted"
|
|
|
+ android:src="@drawable/ic_lock_grey600_24px" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/file_modified_info"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignWithParentIfMissing="true"
|
|
|
+ android:layout_below="@id/filename_text_view"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_toStartOf="@id/select_file_checkbox"
|
|
|
+ android:layout_toEndOf="@id/file_icon"
|
|
|
+ android:ellipsize="marquee"
|
|
|
+ android:marqueeRepeatLimit="1"
|
|
|
+ android:paddingBottom="6dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textAlignment="viewStart"
|
|
|
+ android:textColor="@color/textColorMaxContrast"
|
|
|
+ android:textSize="14sp"
|
|
|
+ tools:text="3 minutes ago" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/filename_text_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignWithParentIfMissing="true"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:layout_toStartOf="@id/select_file_checkbox"
|
|
|
+ android:layout_toEndOf="@id/file_icon"
|
|
|
+ android:ellipsize="marquee"
|
|
|
+ android:marqueeRepeatLimit="1"
|
|
|
+ android:paddingTop="6dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textAlignment="viewStart"
|
|
|
+ android:textColor="@color/conversation_item_header"
|
|
|
+ android:textSize="@dimen/two_line_primary_text_size"
|
|
|
+ tools:text="filename.md" />
|
|
|
+
|
|
|
+ <com.facebook.drawee.view.SimpleDraweeView
|
|
|
+ android:id="@+id/file_icon"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
|
+ app:actualImageScaleType="fitCenter"
|
|
|
+ app:placeholderImageScaleType="fitCenter" />
|
|
|
+
|
|
|
+</RelativeLayout>
|