forked from amazingfate/loongoffice
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>
43 lines
1.5 KiB
XML
43 lines
1.5 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="wrap_content"
|
|
android:paddingTop="4dp"
|
|
android:paddingBottom="4dp"
|
|
android:orientation="vertical" >
|
|
|
|
<ImageView
|
|
android:id="@+id/file_item_icon"
|
|
tools:src="@drawable/ic_folder_black_24dp"
|
|
tools:tint="@color/text_color_secondary"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:scaleType="fitStart"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/file_icon_desc" >
|
|
</ImageView>
|
|
|
|
<TextView
|
|
android:id="@+id/file_item_name"
|
|
tools:text="file or dirname"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingTop="10dp"
|
|
android:layout_gravity="center"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/secondary_text_light"
|
|
android:maxLines="2">
|
|
</TextView>
|
|
|
|
</LinearLayout>
|