Align file browser layout and folder icon with files client

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-11-18 11:23:32 +01:00
parent bb422fb112
commit 29b15a190a
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 30 additions and 34 deletions

View File

@ -1,32 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- <!--
~ Nextcloud Talk application @author Google LLC
~ Copyright (C) 2018 Google LLC
~ @author Mario Danic
~ Copyright (C) 2017-2019 Mario Danic <mario@lovelyhq.com> Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ This program is free software: you can redistribute it and/or modify You may obtain a copy of the License at
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or http://www.apache.org/licenses/LICENSE-2.0
~ at your option) any later version.
~ Unless required by applicable law or agreed to in writing, software
~ This program is distributed in the hope that it will be useful, distributed under the License is distributed on an "AS IS" BASIS,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the See the License for the specific language governing permissions and
~ GNU General Public License for more details. limitations under the License.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
--> -->
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp" android:width="24dp"
android:height="16dp" android:height="24dp"
android:viewportWidth="16" android:tint="#0082c9"
android:viewportHeight="16"> android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path <path
android:fillColor="#0082c9" android:fillColor="#FF000000"
android:pathData="M1.5,2 C1.25,2,1,2.25,1,2.5 L1,13.5 C1,13.76,1.24,14,1.5,14 L14.5,14 android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z" />
C14.76,14,15,13.759,15,13.5 L15,4.5 C15,4.25,14.75,4,14.5,4 L8,4 L6,2 Z" />
</vector> </vector>

View File

@ -23,13 +23,15 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/double_margin_between_elements" android:layout_marginTop="@dimen/standard_margin"
android:layout_marginStart="@dimen/standard_margin"
android:layout_marginBottom="@dimen/standard_margin"
android:background="@color/bg_default"> android:background="@color/bg_default">
<CheckBox <CheckBox
android:id="@+id/select_file_checkbox" android:id="@+id/select_file_checkbox"
android:layout_width="wrap_content" android:layout_width="48dp"
android:layout_height="wrap_content" android:layout_height="48dp"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:clickable="true" android:clickable="true"
@ -93,10 +95,10 @@
<com.facebook.drawee.view.SimpleDraweeView <com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/file_icon" android:id="@+id/file_icon"
android:layout_width="@dimen/small_item_height" android:layout_width="40dp"
android:layout_height="@dimen/small_item_height" android:layout_height="40dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginEnd="8dp" android:layout_marginEnd="@dimen/standard_margin"
app:actualImageScaleType="fitCenter" app:actualImageScaleType="fitCenter"
app:placeholderImageScaleType="fitCenter" /> app:placeholderImageScaleType="fitCenter" />