686651c30a
This commit will combine the code of ListItemAdapter & GridItemAdapter in LibreOfficeUIActivity to one ExplorerItemAdapter which will handle both the view types. Change-Id: I45c1f5124afee82ff0b78f13609acd37be87fde1 Reviewed-on: https://gerrit.libreoffice.org/34680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com> Tested-by: Aleksandar Stefanović <theonewithideas@gmail.com>
58 lines
2.3 KiB
XML
58 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
This file is part of the LibreOffice project.
|
|
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:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:orientation="horizontal"
|
|
android:layout_marginStart="@dimen/list_item_margin"
|
|
android:layout_marginLeft="@dimen/list_item_margin"
|
|
android:layout_marginEnd="@dimen/list_item_margin"
|
|
android:layout_marginRight="@dimen/list_item_margin">
|
|
<ImageView
|
|
android:id="@+id/file_item_icon"
|
|
tools:src="@drawable/ic_folder_black_24dp"
|
|
tools:tint="@color/text_color_secondary"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="@dimen/file_icon_width"
|
|
android:layout_marginEnd="@dimen/file_icon_margin_end"
|
|
android:layout_marginRight="@dimen/file_icon_margin_end"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/file_icon_desc" />
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:id="@+id/file_item_name"
|
|
tools:text="file or dirname"
|
|
style="@style/ListItemText"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"/>
|
|
<TextView
|
|
android:id="@+id/file_item_size"
|
|
tools:text="filesize"
|
|
style="@style/ListItemText"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1" />
|
|
<TextView
|
|
android:id="@+id/file_item_date"
|
|
tools:text="date/time"
|
|
style="@style/ListItemText"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:ellipsize="end"
|
|
android:gravity="end"
|
|
android:maxLines="1"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|