瀏覽代碼

Adjusted drawer quota font-size + Formated Drawer XML code

Signed-off-by: Kilian Périsset <kilian.perisset@infomaniak.com>
Kilian Périsset 5 年之前
父節點
當前提交
af166ba8ce
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. 9 8
      src/main/res/layout/drawer.xml

+ 9 - 8
src/main/res/layout/drawer.xml

@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
+<?xml version="1.0" encoding="utf-8"?><!--
   Nextcloud Android client application
 
   Copyright (C) 2016 Andy Scherzinger
@@ -19,7 +18,7 @@
   License along with this program. If not, see <http://www.gnu.org/licenses/>.
   -->
 <merge xmlns:android="http://schemas.android.com/apk/res/android"
-       xmlns:app="http://schemas.android.com/apk/res-auto">
+    xmlns:app="http://schemas.android.com/apk/res-auto">
 
     <com.google.android.material.navigation.NavigationView
         android:id="@+id/nav_view"
@@ -27,11 +26,11 @@
         android:layout_height="match_parent"
         android:layout_gravity="start"
         android:layout_weight="1"
-        android:fitsSystemWindows="true"
         android:background="@color/appbar"
+        android:fitsSystemWindows="true"
         android:theme="@style/NavigationView_ItemTextAppearance"
-        app:itemTextColor="@color/drawer_text_color"
         app:headerLayout="@layout/drawer_header"
+        app:itemTextColor="@color/drawer_text_color"
         app:menu="@menu/partial_drawer_entries">
 
         <LinearLayout
@@ -60,16 +59,18 @@
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:indeterminate="false"
-                android:scaleY="1.4"
                 android:indeterminateOnly="false"
+                android:scaleY="1.4"
                 android:text="@string/drawer_quota" />
 
-            <TextView
+            <com.google.android.material.textview.MaterialTextView
                 android:id="@+id/drawer_quota_percentage"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:drawablePadding="@dimen/alternate_half_padding"
-                android:text="@string/drawer_quota" />
+                android:fontFamily="sans-serif-medium"
+                android:text="@string/drawer_quota"
+                android:textColor="@color/drawer_text_color" />
 
         </LinearLayout>