diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 204d9575..89c2aaa6 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -16,8 +16,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:layout_marginStart="@dimen/spacer_activity_sides" - android:layout_marginEnd="@dimen/spacer_activity_sides" + android:layout_marginHorizontal="@dimen/spacer_activity_sides" app:contentInsetStartWithNavigation="0dp" app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" app:titleMarginStart="0dp" @@ -36,7 +35,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" - android:paddingStart="@dimen/spacer_1x" - android:paddingEnd="@dimen/spacer_1x" /> + android:paddingHorizontal="@dimen/spacer_1x" /> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_edit.xml b/app/src/main/res/layout/activity_edit.xml index 1fcff7ca..8948c076 100644 --- a/app/src/main/res/layout/activity_edit.xml +++ b/app/src/main/res/layout/activity_edit.xml @@ -15,8 +15,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:layout_marginStart="@dimen/spacer_activity_sides" - android:layout_marginEnd="@dimen/spacer_activity_sides" + android:layout_marginHorizontal="@dimen/spacer_activity_sides" app:contentInsetStartWithNavigation="0dp" app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" app:titleMarginStart="0dp" diff --git a/app/src/main/res/layout/activity_exception.xml b/app/src/main/res/layout/activity_exception.xml index 919f7dfd..ce352cc6 100644 --- a/app/src/main/res/layout/activity_exception.xml +++ b/app/src/main/res/layout/activity_exception.xml @@ -11,8 +11,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:layout_marginStart="@dimen/spacer_activity_sides" - android:layout_marginEnd="@dimen/spacer_activity_sides" + android:layout_marginHorizontal="@dimen/spacer_activity_sides" app:contentInsetStartWithNavigation="0dp" app:elevation="4dp" app:titleMarginStart="0dp" @@ -56,8 +55,7 @@ diff --git a/app/src/main/res/layout/activity_import_account.xml b/app/src/main/res/layout/activity_import_account.xml index 85a0b217..630990e2 100644 --- a/app/src/main/res/layout/activity_import_account.xml +++ b/app/src/main/res/layout/activity_import_account.xml @@ -43,10 +43,8 @@ android:layout_height="wrap_content" android:layout_below="@id/welcome_text" android:layout_centerHorizontal="true" - android:paddingStart="32dp" - android:paddingTop="24dp" - android:paddingEnd="32dp" - android:paddingBottom="24dp" + android:paddingHorizontal="32dp" + android:paddingVertical="@dimen/spacer_3x" android:text="@string/choose_account" app:backgroundTint="@color/defaultBrand" /> diff --git a/app/src/main/res/layout/activity_manage_accounts.xml b/app/src/main/res/layout/activity_manage_accounts.xml index 7e01326b..17cd73cc 100644 --- a/app/src/main/res/layout/activity_manage_accounts.xml +++ b/app/src/main/res/layout/activity_manage_accounts.xml @@ -16,8 +16,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:layout_marginStart="@dimen/spacer_activity_sides" - android:layout_marginEnd="@dimen/spacer_activity_sides" + android:layout_marginHorizontal="@dimen/spacer_activity_sides" app:contentInsetStartWithNavigation="0dp" app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" app:title="@string/manage_accounts" diff --git a/app/src/main/res/layout/activity_notes_list_view.xml b/app/src/main/res/layout/activity_notes_list_view.xml index 5286b2f0..c18db2dd 100644 --- a/app/src/main/res/layout/activity_notes_list_view.xml +++ b/app/src/main/res/layout/activity_notes_list_view.xml @@ -24,10 +24,8 @@ + android:paddingHorizontal="@dimen/spacer_1x"> @@ -73,8 +72,7 @@ android:id="@+id/navigationMenu" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="@dimen/spacer_1x" - android:paddingBottom="@dimen/spacer_1x" + android:paddingVertical="@dimen/spacer_1x" app:layoutManager="LinearLayoutManager" tools:itemCount="3" tools:listitem="@layout/item_navigation" /> diff --git a/app/src/main/res/layout/fragment_about_credits_tab.xml b/app/src/main/res/layout/fragment_about_credits_tab.xml index 35dcae9f..fad03f62 100644 --- a/app/src/main/res/layout/fragment_about_credits_tab.xml +++ b/app/src/main/res/layout/fragment_about_credits_tab.xml @@ -14,8 +14,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:layout_marginTop="30dp" - android:layout_marginBottom="30dp" + android:layout_marginVertical="30dp" android:text="@string/app_name" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/fg_default_low" diff --git a/app/src/main/res/layout/fragment_note_edit.xml b/app/src/main/res/layout/fragment_note_edit.xml index 4e11a3c2..75e6ab84 100644 --- a/app/src/main/res/layout/fragment_note_edit.xml +++ b/app/src/main/res/layout/fragment_note_edit.xml @@ -27,16 +27,13 @@ android:id="@+id/editContent" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/spacer_activity_sides" - android:layout_marginEnd="@dimen/spacer_activity_sides" + android:layout_marginHorizontal="@dimen/spacer_activity_sides" android:background="?attr/colorPrimary" android:ems="10" android:gravity="top" android:inputType="textMultiLine|textCapSentences" android:lineSpacingMultiplier="@dimen/note_line_spacing" android:padding="@dimen/spacer_2x" - android:paddingStart="@dimen/spacer_2x" - android:paddingEnd="@dimen/spacer_2x" android:textColor="@color/fg_default" tools:text="@tools:sample/lorem/random" /> diff --git a/app/src/main/res/layout/fragment_note_preview.xml b/app/src/main/res/layout/fragment_note_preview.xml index 68d0175b..bd9aabef 100644 --- a/app/src/main/res/layout/fragment_note_preview.xml +++ b/app/src/main/res/layout/fragment_note_preview.xml @@ -24,12 +24,10 @@ android:id="@+id/single_note_content" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/spacer_activity_sides" - android:layout_marginEnd="@dimen/spacer_activity_sides" + android:layout_marginHorizontal="@dimen/spacer_activity_sides" android:lineSpacingMultiplier="@dimen/note_line_spacing" android:padding="@dimen/spacer_2x" - android:paddingStart="@dimen/spacer_2x" - android:paddingEnd="@dimen/spacer_2x" + android:paddingHorizontal="@dimen/spacer_2x" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/fg_default" android:textIsSelectable="true" diff --git a/app/src/main/res/layout/item_account_choose.xml b/app/src/main/res/layout/item_account_choose.xml index 8cfbd4be..30458288 100644 --- a/app/src/main/res/layout/item_account_choose.xml +++ b/app/src/main/res/layout/item_account_choose.xml @@ -8,8 +8,7 @@ android:gravity="center" android:orientation="horizontal" android:padding="@dimen/spacer_2x" - android:paddingStart="@dimen/spacer_1x" - android:paddingEnd="@dimen/spacer_1x"> + android:paddingHorizontal="@dimen/spacer_1x"> @@ -37,8 +35,7 @@ android:id="@+id/noteExcerpt" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginEnd="@dimen/spacer_2x" + android:layout_marginHorizontal="@dimen/spacer_2x" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/fg_default" tools:maxLength="200" diff --git a/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml b/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml index 9e7d0f3b..f60e5292 100644 --- a/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml +++ b/app/src/main/res/layout/item_notes_list_note_item_grid_only_title.xml @@ -55,7 +55,6 @@ android:textAppearance="?attr/textAppearanceHeadline5" android:textColor="@color/fg_default" tools:maxLength="50" - tools:targetApi="m" tools:text="@tools:sample/lorem/random" /> \ No newline at end of file diff --git a/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml b/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml index 966f4b66..384a674b 100644 --- a/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml +++ b/app/src/main/res/layout/item_notes_list_note_item_with_excerpt.xml @@ -65,9 +65,8 @@ android:layout_weight="1" android:orientation="vertical" android:paddingStart="0dp" - android:paddingTop="@dimen/spacer_2x" - android:paddingEnd="@dimen/spacer_2x" - android:paddingBottom="@dimen/spacer_2x"> + android:paddingVertical="@dimen/spacer_2x" + android:paddingEnd="@dimen/spacer_2x"> @@ -109,10 +107,8 @@ android:layout_marginStart="@dimen/spacer_1x" android:background="@drawable/border" android:maxLines="1" - android:paddingStart="@dimen/spacer_1x" - android:paddingTop="1dp" - android:paddingEnd="@dimen/spacer_1x" - android:paddingBottom="1dp" + android:paddingVertical="1dp" + android:paddingHorizontal="@dimen/spacer_1x" android:singleLine="true" android:textColor="?android:textColorPrimary" android:textSize="@dimen/secondary_font_size" diff --git a/app/src/main/res/layout/item_notes_list_note_item_without_excerpt.xml b/app/src/main/res/layout/item_notes_list_note_item_without_excerpt.xml index 91232a01..f7e42863 100644 --- a/app/src/main/res/layout/item_notes_list_note_item_without_excerpt.xml +++ b/app/src/main/res/layout/item_notes_list_note_item_without_excerpt.xml @@ -63,13 +63,11 @@ android:id="@+id/noteTitle" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginTop="10sp" - android:layout_marginBottom="10sp" + android:layout_marginVertical="10sp" android:layout_weight="1" android:ellipsize="end" android:maxLines="1" - android:paddingTop="@dimen/spacer_2x" - android:paddingBottom="@dimen/spacer_2x" + android:paddingVertical="@dimen/spacer_2x" android:textColor="?android:textColorPrimary" android:textSize="@dimen/primary_font_size" tools:text="@tools:sample/lorem/random" /> @@ -83,8 +81,7 @@ android:layout_marginEnd="@dimen/spacer_2x" android:background="@drawable/border" android:maxLines="1" - android:paddingStart="@dimen/spacer_1x" - android:paddingEnd="@dimen/spacer_1x" + android:paddingHorizontal="@dimen/spacer_1x" android:paddingBottom="1dp" android:singleLine="true" android:textColor="?android:textColorPrimary" diff --git a/app/src/main/res/layout/item_pref.xml b/app/src/main/res/layout/item_pref.xml index 1d84737b..82295748 100644 --- a/app/src/main/res/layout/item_pref.xml +++ b/app/src/main/res/layout/item_pref.xml @@ -4,8 +4,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" - android:paddingStart="@dimen/spacer_activity_sides" - android:paddingEnd="@dimen/spacer_activity_sides" + android:paddingHorizontal="@dimen/spacer_activity_sides" android:minHeight="?android:attr/listPreferredItemHeight"> + android:paddingVertical="@dimen/spacer_1x"> + android:paddingEnd="@dimen/spacer_1hx"> diff --git a/app/src/main/res/layout/widget_note_list.xml b/app/src/main/res/layout/widget_note_list.xml index a3e7e163..a34f14cd 100644 --- a/app/src/main/res/layout/widget_note_list.xml +++ b/app/src/main/res/layout/widget_note_list.xml @@ -5,10 +5,8 @@ android:layout_height="match_parent" android:background="@drawable/widget_background" android:orientation="vertical" - android:paddingStart="@dimen/widget_inner_padding_horizontal" - android:paddingTop="@dimen/widget_inner_padding_vertical" - android:paddingEnd="@dimen/widget_inner_padding_horizontal" - android:paddingBottom="@dimen/widget_inner_padding_vertical"> + android:paddingVertical="@dimen/widget_inner_padding_vertical" + android:paddingHorizontal="@dimen/widget_inner_padding_horizontal"> @style/MaterialAlertDialogTheme @style/actionModeStyle - @style/toolbarStyle @style/tabStyle -