60 lines
2.2 KiB
XML
60 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
-->
|
|
<LinearLayout 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:orientation="vertical"
|
|
android:padding="4dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/file_item_icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/file_icon_desc"
|
|
android:scaleType="fitCenter"
|
|
tools:src="@drawable/ic_folder_black_24dp"
|
|
tools:tint="@color/text_color_secondary" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="4dp"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="24dp">
|
|
|
|
<TextView
|
|
android:id="@+id/file_item_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="2"
|
|
android:textAlignment="center"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
tools:text="file or dirname" />
|
|
|
|
<ImageView
|
|
android:id="@+id/file_actions_button"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/file_actions_icon_desc"
|
|
android:scaleType="fitStart"
|
|
android:tint="?android:attr/textColorPrimary"
|
|
app:srcCompat="@drawable/ic_more_vert_black_24dp" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|