1 <?xml version="1.0" encoding="utf-8"?>
3 This file is part of the LibreOffice project.
5 This Source Code Form is subject to the terms of the Mozilla Public
6 License, v. 2.0. If a copy of the MPL was not distributed with this
7 file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
10 xmlns:tools="http://schemas.android.com/tools"
11 android:layout_width="match_parent"
12 android:layout_height="48dp"
13 android:orientation="horizontal"
14 android:background="?android:attr/selectableItemBackground"
15 android:layout_marginStart="@dimen/list_item_margin"
16 android:layout_marginLeft="@dimen/list_item_margin"
17 android:layout_marginEnd="@dimen/list_item_margin"
18 android:layout_marginRight="@dimen/list_item_margin"
19 tools:ignore="UseCompoundDrawables">
20 <!--using compound drawables is ignored because more control over the drawable size is needed-->
23 android:layout_width="32dp"
24 android:layout_height="wrap_content"
25 android:layout_gravity="center_vertical"
26 android:layout_marginEnd="@dimen/file_icon_margin_end"
27 android:layout_marginRight="@dimen/file_icon_margin_end"
28 android:adjustViewBounds="true"
29 android:id="@+id/imageView"
30 android:contentDescription="@string/file_icon_desc"/>
32 android:layout_width="wrap_content"
33 android:layout_height="match_parent"
34 android:id="@+id/textView"
35 style="@style/ListItemText"
37 android:ellipsize="end"/>