From 56d8cd0facfa6d5bde67665f5064f00fe765edb6 Mon Sep 17 00:00:00 2001 From: opyale Date: Thu, 14 May 2020 12:46:49 +0200 Subject: [PATCH] Small layout adjustments and correcting typos. --- .../gitnex/fragments/SettingsFragment.java | 4 +- app/src/main/res/layout/fragment_settings.xml | 45 +++++++++---------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java b/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java index 1546680b..7375fabb 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java @@ -30,13 +30,13 @@ public class SettingsFragment extends Fragment { View v = inflater.inflate(R.layout.fragment_settings, container, false); - LinearLayout appreanceFrame = v.findViewById(R.id.appreanceFrame); + LinearLayout appearanceFrame = v.findViewById(R.id.appearanceFrame); LinearLayout fileViewerFrame = v.findViewById(R.id.fileViewerFrame); LinearLayout securityFrame = v.findViewById(R.id.securityFrame); LinearLayout languagesFrame = v.findViewById(R.id.languagesFrame); LinearLayout reportsFrame = v.findViewById(R.id.reportsFrame); - appreanceFrame.setOnClickListener(v1 -> startActivity(new Intent(getContext(), SettingsAppearanceActivity.class))); + appearanceFrame.setOnClickListener(v1 -> startActivity(new Intent(getContext(), SettingsAppearanceActivity.class))); fileViewerFrame.setOnClickListener(v1 -> startActivity(new Intent(getContext(), SettingsFileViewerActivity.class))); diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index 92548ef4..c9cd556a 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -17,11 +17,11 @@ android:layout_height="wrap_content"> + android:layout_marginTop="20dp"> + android:textSize="16sp" /> @@ -62,21 +61,20 @@ android:layout_height="wrap_content" android:drawableStart="@drawable/ic_file" android:drawablePadding="24dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" android:text="@string/fileViewerHeader" android:textColor="?attr/primaryTextColor" - android:textSize="16sp" - android:textStyle="bold" - android:paddingStart="12dp" - android:paddingEnd="12dp" /> + android:textSize="16sp" /> @@ -95,12 +93,11 @@ android:layout_height="wrap_content" android:drawableStart="@drawable/ic_security_24dp" android:drawablePadding="24dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" android:text="@string/settingsSecurityHeader" android:textColor="?attr/primaryTextColor" - android:textSize="16sp" - android:textStyle="bold" - android:paddingStart="12dp" - android:paddingEnd="12dp" /> + android:textSize="16sp" /> + android:textSize="16sp" /> + android:textSize="16sp" />