فهرست منبع

optimize layout/design

AndyScherzinger 7 سال پیش
والد
کامیت
c738d9e46a

+ 31 - 0
src/main/res/drawable/divider.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Nextcloud Android client application
+
+  Copyright (C) 2018 Andy Scherzinger
+
+  This program is free software; you can redistribute it and/or
+  modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+  License as published by the Free Software Foundation; either
+  version 3 of the License, or any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+
+  You should have received a copy of the GNU Affero General Public
+  License along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item
+        android:bottom="0dp"
+        android:left="72dp"
+        android:right="0dp"
+        android:top="0dp">
+        <shape android:shape="rectangle">
+            <solid android:color="@color/list_divider_background" />
+            <size android:height="1dp" />
+        </shape>
+    </item>
+</layer-list>

+ 0 - 2
src/main/res/layout/file_details_share_user_item.xml

@@ -23,8 +23,6 @@
     android:layout_height="wrap_content"
     android:orientation="horizontal"
     android:weightSum="1"
-    android:paddingTop="@dimen/standard_eigth_padding"
-    android:paddingBottom="@dimen/standard_eigth_padding"
     tools:ignore="UseCompoundDrawables">
 
         <ImageView

+ 9 - 4
src/main/res/layout/file_details_sharing_fragment.xml

@@ -18,7 +18,6 @@
   License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -->
 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_weight="1">
@@ -28,13 +27,17 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="vertical"
-        android:paddingTop="@dimen/standard_half_padding">
+        android:paddingTop="@dimen/standard_eigth_padding">
 
         <android.support.v7.widget.SearchView
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:id="@+id/searchView"
             android:hint="@string/share_search"
+            android:layout_marginStart="@dimen/standard_eighth_margin"
+            android:layout_marginLeft="@dimen/standard_eighth_margin"
+            android:layout_marginEnd="@dimen/standard_margin"
+            android:layout_marginRight="@dimen/standard_margin"
             style="@style/ownCloud.SearchView"/>
 
         <LinearLayout
@@ -45,7 +48,7 @@
             android:orientation="horizontal"
             android:paddingLeft="@dimen/standard_padding"
             android:paddingRight="@dimen/standard_padding"
-            android:paddingTop="@dimen/standard_half_padding">
+            android:paddingTop="@dimen/standard_padding">
 
             <android.support.v7.widget.AppCompatCheckBox
                 android:id="@+id/share_by_link"
@@ -92,7 +95,9 @@
             android:layout_width="match_parent"
             android:layout_height="0dip"
             android:layout_weight="1"
-            android:visibility="gone" />
+            android:visibility="gone"
+            android:divider="@drawable/divider"
+            android:dividerHeight="1dp"/>
 
         <TextView
             android:id="@+id/fdShareNoUsers"