diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-06-07 11:55:29 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-06-07 11:55:29 +0300 |
commit | 83f1e06c0f26164e90d74491fc6a5d6772d12efe (patch) | |
tree | cba0f232ea66a28b7bff14aaee985e5a71f537ec /app/src/main/res/layout | |
parent | c872320b9b530cd7a32af80904ba8bd3455a77f6 (diff) | |
parent | ced0e1a0ecbfb73fa1c4a775951d37d1cd3277ff (diff) |
Merge branch 'master' into api-v1
# Conflicts:
# app/src/main/java/it/niedermann/owncloud/notes/android/fragment/BaseNoteFragment.java
# app/src/main/res/values/strings.xml
Diffstat (limited to 'app/src/main/res/layout')
22 files changed, 517 insertions, 289 deletions
diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 3aac5851..8e6c0a2f 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -1,31 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" android:orientation="vertical"> - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" + <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" - android:layout_height="?attr/actionBarSize" - android:background="?attr/colorPrimary" - android:theme="@style/toolbarStyle" - app:contentInsetStartWithNavigation="0dp" - app:elevation="4dp" - app:navigationIcon="@drawable/ic_arrow_back_white_24dp" - app:titleMarginStart="0dp" - tools:title="@string/simple_about" /> + android:layout_height="wrap_content"> - <com.google.android.material.tabs.TabLayout - android:id="@+id/tabs" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" + app:titleMarginStart="0dp" + tools:title="@string/simple_about" /> + + <com.google.android.material.tabs.TabLayout + android:id="@+id/tabs" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:tabIndicatorColor="@color/defaultBrand" + android:background="?attr/colorPrimary" /> + </com.google.android.material.appbar.AppBarLayout> <androidx.viewpager.widget.ViewPager android:id="@+id/pager" android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:background="?attr/colorPrimary" /> </LinearLayout>
\ 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 c01930b7..e7da04b0 100644 --- a/app/src/main/res/layout/activity_edit.xml +++ b/app/src/main/res/layout/activity_edit.xml @@ -1,26 +1,30 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical"> - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" + <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" - android:layout_height="?attr/actionBarSize" - android:background="?attr/colorPrimary" - android:theme="@style/toolbarStyle" - app:contentInsetStartWithNavigation="0dp" - app:elevation="4dp" - app:navigationIcon="@drawable/ic_arrow_back_white_24dp" - app:titleMarginStart="0dp" - tools:title="Edit Sample note" /> + android:layout_height="wrap_content"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" + app:titleMarginStart="0dp" + tools:title="Edit Sample note" /> + </com.google.android.material.appbar.AppBarLayout> <androidx.fragment.app.FragmentContainerView android:id="@+id/fragment_container_view" android:layout_width="match_parent" + android:background="?attr/colorPrimary" android:layout_height="match_parent" /> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_exception.xml b/app/src/main/res/layout/activity_exception.xml index 37dc4bcb..e1e25491 100644 --- a/app/src/main/res/layout/activity_exception.xml +++ b/app/src/main/res/layout/activity_exception.xml @@ -4,6 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorPrimary" android:orientation="vertical"> <androidx.appcompat.widget.Toolbar @@ -11,7 +12,6 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" - android:theme="@style/toolbarStyle" app:contentInsetStartWithNavigation="0dp" app:elevation="4dp" app:titleMarginStart="0dp" @@ -30,12 +30,12 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginStart="@dimen/spacer_2x" - android:layout_marginLeft="16dp" - android:layout_marginEnd="16dp" - android:layout_marginRight="16dp" + android:layout_marginLeft="@dimen/spacer_2x" + android:layout_marginEnd="@dimen/spacer_2x" + android:layout_marginRight="@dimen/spacer_2x" android:layout_weight="1" android:background="@color/bg_highlighted" - android:padding="8dp" + android:padding="@dimen/spacer_1x" android:scrollbars="horizontal|vertical" android:textIsSelectable="true" android:typeface="monospace" @@ -45,7 +45,7 @@ style="?android:buttonBarStyle" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="16dp" + android:layout_margin="@dimen/spacer_2x" android:gravity="end" android:orientation="horizontal" android:weightSum="1.0"> @@ -56,7 +56,8 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight=".5" - android:text="@string/simple_close" /> + android:text="@string/simple_close" + android:textColor="@color/defaultBrand" /> <Button android:id="@+id/copy" @@ -66,7 +67,7 @@ android:layout_marginTop="6dp" android:layout_marginBottom="6dp" android:layout_weight=".5" - android:background="@color/primary" + android:background="@color/defaultBrand" android:foreground="?attr/selectableItemBackground" android:text="@string/simple_copy" android:textColor="@color/fg_contrast" diff --git a/app/src/main/res/layout/activity_manage_accounts.xml b/app/src/main/res/layout/activity_manage_accounts.xml new file mode 100644 index 00000000..60e684cf --- /dev/null +++ b/app/src/main/res/layout/activity_manage_accounts.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?attr/colorPrimary" + android:orientation="vertical"> + + <com.google.android.material.appbar.AppBarLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" + app:title="@string/manage_accounts" + app:titleMarginStart="0dp" /> + </com.google.android.material.appbar.AppBarLayout> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/accounts" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + tools:listitem="@layout/item_account_choose" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_note_list_configuration.xml b/app/src/main/res/layout/activity_note_list_configuration.xml index bf14a9fe..061784e3 100644 --- a/app/src/main/res/layout/activity_note_list_configuration.xml +++ b/app/src/main/res/layout/activity_note_list_configuration.xml @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" 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 2915f416..1b022607 100644 --- a/app/src/main/res/layout/activity_notes_list_view.xml +++ b/app/src/main/res/layout/activity_notes_list_view.xml @@ -11,23 +11,94 @@ android:layout_height="match_parent" android:orientation="vertical"> - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" + <com.google.android.material.appbar.AppBarLayout + android:id="@+id/app_bar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/colorPrimary" - android:theme="@style/toolbarStyle" - app:contentInsetStartWithNavigation="0dp" - app:elevation="4dp" - app:titleMarginStart="0dp" - tools:navigationIcon="@drawable/ic_arrow_back_white_24dp" - tools:title="@string/app_name" /> + app:elevation="0dp"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" + app:titleMarginStart="0dp" + tools:title="@string/app_name"> + + <androidx.appcompat.widget.SearchView + android:id="@+id/search_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + </androidx.appcompat.widget.Toolbar> + + <com.google.android.material.card.MaterialCardView + android:id="@+id/home_toolbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/spacer_1x" + android:layout_marginLeft="@dimen/spacer_1x" + android:layout_marginTop="@dimen/design_appbar_elevation" + android:layout_marginEnd="@dimen/spacer_1x" + android:layout_marginRight="@dimen/spacer_1x" + android:layout_marginBottom="@dimen/design_appbar_elevation" + app:cardCornerRadius="@dimen/spacer_1x" + app:cardElevation="6dp" + app:strokeWidth="0dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <androidx.appcompat.widget.AppCompatImageButton + android:id="@+id/menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="?attr/selectableItemBackgroundBorderless" + android:paddingStart="@dimen/spacer_1x" + android:paddingLeft="@dimen/spacer_1x" + android:paddingTop="@dimen/spacer_2x" + android:paddingEnd="@dimen/spacer_1x" + android:paddingRight="@dimen/spacer_1x" + android:paddingBottom="@dimen/spacer_2x" + android:tint="?attr/colorAccent" + app:srcCompat="@drawable/ic_baseline_menu_24" /> + + <com.google.android.material.textview.MaterialTextView + android:id="@+id/search_text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginStart="@dimen/spacer_1x" + android:layout_marginLeft="@dimen/spacer_1x" + android:layout_marginEnd="@dimen/spacer_1x" + android:layout_marginRight="@dimen/spacer_1x" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="start" + android:lines="1" + android:textSize="16sp" + tools:text="@string/search_in_all" /> + + <androidx.appcompat.widget.AppCompatImageView + android:id="@+id/launchAccountSwitcher" + android:layout_width="?attr/actionBarSize" + android:layout_height="?attr/actionBarSize" + android:layout_gravity="center_vertical|end" + android:background="?attr/selectableItemBackgroundBorderless" + android:padding="12dp" + app:srcCompat="@drawable/ic_account_circle_grey_24dp" /> + </LinearLayout> + + </com.google.android.material.card.MaterialCardView> + </com.google.android.material.appbar.AppBarLayout> <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:id="@+id/swiperefreshlayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/bg_normal" tools:context="it.niedermann.owncloud.notes.android.activity.NotesListViewActivity"> <FrameLayout @@ -43,13 +114,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" + android:indeterminateTint="@color/defaultBrand" + tools:targetApi="lollipop" tools:visibility="gone" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/bg_highlighted" android:scrollbars="vertical" tools:listitem="@layout/item_notes_list_note_item" /> </FrameLayout> @@ -61,7 +133,6 @@ android:id="@+id/fab_create" style="@style/fab" android:title="@string/action_create" - app:backgroundTint="@color/primary" - app:rippleColor="@color/primary_dark" + app:backgroundTint="@color/defaultBrand" app:srcCompat="@drawable/ic_add_white_24dp" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml index a8e43cc1..10b8089e 100644 --- a/app/src/main/res/layout/activity_preferences.xml +++ b/app/src/main/res/layout/activity_preferences.xml @@ -5,21 +5,25 @@ android:layout_height="match_parent" android:orientation="vertical"> - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" + <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" - android:layout_height="?attr/actionBarSize" - android:background="?attr/colorPrimary" - android:theme="@style/toolbarStyle" - app:contentInsetStartWithNavigation="0dp" - app:elevation="4dp" - app:navigationIcon="@drawable/ic_arrow_back_white_24dp" - app:title="@string/action_settings" - app:titleMarginStart="0dp" /> + android:layout_height="wrap_content"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" + app:contentInsetStartWithNavigation="0dp" + app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp" + app:title="@string/action_settings" + app:titleMarginStart="0dp" /> + </com.google.android.material.appbar.AppBarLayout> <androidx.fragment.app.FragmentContainerView android:id="@+id/fragment_container_view" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:background="?attr/colorPrimary" /> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/dialog_account_switcher.xml b/app/src/main/res/layout/dialog_account_switcher.xml new file mode 100644 index 00000000..f5260947 --- /dev/null +++ b/app/src/main/res/layout/dialog_account_switcher.xml @@ -0,0 +1,139 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:id="@+id/accountLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?attr/selectableItemBackground" + android:orientation="horizontal" + android:padding="@dimen/spacer_3x"> + + <androidx.appcompat.widget.AppCompatImageView + android:id="@+id/currentAccountItemAvatar" + android:layout_width="36dp" + android:layout_height="36dp" + android:contentDescription="@null" + android:focusable="false" + android:scaleType="center" + app:srcCompat="@drawable/ic_account_circle_grey_24dp" /> + + <TextView + android:id="@+id/accountItemLabel" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_marginStart="@dimen/spacer_2x" + android:layout_marginLeft="@dimen/spacer_2x" + android:layout_marginEnd="@dimen/spacer_2x" + android:layout_marginRight="@dimen/spacer_2x" + android:layout_weight="1" + android:ellipsize="middle" + android:singleLine="true" + android:textAppearance="@style/TextAppearance.AppCompat.Widget.TextView.SpinnerItem" + android:textColor="?android:textColorPrimary" + tools:text="@tools:sample/full_names" /> + + <androidx.appcompat.widget.AppCompatImageView + android:id="@+id/check" + android:layout_width="36dp" + android:layout_height="36dp" + android:contentDescription="@null" + android:focusable="false" + android:scaleType="center" + app:srcCompat="@drawable/check" /> + </LinearLayout> + + <View + android:layout_width="match_parent" + android:layout_height="1dp" + android:background="@color/fg_default_high" /> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/accounts_list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="0dp" + android:scrollbarStyle="outsideOverlay" + android:scrollbars="vertical" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + tools:itemCount="3" + tools:listitem="@layout/item_account_choose" /> + + <LinearLayout + android:id="@+id/add_account" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?attr/selectableItemBackground" + android:orientation="horizontal" + android:paddingStart="@dimen/spacer_3x" + android:paddingLeft="@dimen/spacer_3x" + android:paddingTop="@dimen/spacer_1x" + android:paddingEnd="@dimen/spacer_3x" + android:paddingRight="@dimen/spacer_3x" + android:paddingBottom="@dimen/spacer_1x"> + + <androidx.appcompat.widget.AppCompatImageView + android:layout_width="36dp" + android:layout_height="36dp" + android:contentDescription="@null" + android:focusable="false" + android:scaleType="center" + app:srcCompat="@drawable/ic_person_add_grey600_24dp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_marginStart="@dimen/spacer_2x" + android:layout_marginLeft="@dimen/spacer_2x" + android:ellipsize="middle" + android:singleLine="true" + android:text="@string/add_account" + android:textAppearance="@style/TextAppearance.AppCompat.Widget.TextView.SpinnerItem" + android:textColor="?android:textColorPrimary" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/manage_accounts" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/spacer_2x" + android:background="?attr/selectableItemBackground" + android:orientation="horizontal" + android:paddingStart="@dimen/spacer_3x" + android:paddingLeft="@dimen/spacer_3x" + android:paddingTop="@dimen/spacer_1x" + android:paddingEnd="@dimen/spacer_3x" + android:paddingRight="@dimen/spacer_3x" + android:paddingBottom="@dimen/spacer_1x"> + + <androidx.appcompat.widget.AppCompatImageView + android:layout_width="36dp" + android:layout_height="36dp" + android:contentDescription="@null" + android:focusable="false" + android:scaleType="center" + app:srcCompat="@drawable/ic_settings_grey600_24dp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_marginStart="@dimen/spacer_2x" + android:layout_marginLeft="@dimen/spacer_2x" + android:ellipsize="middle" + android:singleLine="true" + android:text="@string/manage_accounts" + android:textAppearance="@style/TextAppearance.AppCompat.Widget.TextView.SpinnerItem" + android:textColor="?android:textColorPrimary" /> + + </LinearLayout> +</LinearLayout> + diff --git a/app/src/main/res/layout/dialog_change_category.xml b/app/src/main/res/layout/dialog_change_category.xml index a73a32e9..86243c23 100644 --- a/app/src/main/res/layout/dialog_change_category.xml +++ b/app/src/main/res/layout/dialog_change_category.xml @@ -5,21 +5,16 @@ android:id="@+id/editCategoryLayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical"> + android:orientation="vertical" + android:padding="?attr/dialogPreferredPadding"> - <com.google.android.material.textfield.TextInputLayout + <EditText + android:id="@+id/search" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="16dp"> - - <EditText - android:id="@+id/search" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:hint="@string/change_category_title" - android:importantForAutofill="no" - android:inputType="text" /> - </com.google.android.material.textfield.TextInputLayout> + android:hint="@string/change_category_title" + android:importantForAutofill="no" + android:inputType="text" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" diff --git a/app/src/main/res/layout/dialog_exception.xml b/app/src/main/res/layout/dialog_exception.xml index c5327464..875605ac 100644 --- a/app/src/main/res/layout/dialog_exception.xml +++ b/app/src/main/res/layout/dialog_exception.xml @@ -47,7 +47,7 @@ android:layout_marginBottom="@dimen/spacer_2x" android:layout_weight="1" android:background="@color/bg_highlighted" - android:padding="8dp" + android:padding="@dimen/spacer_1x" android:scrollbars="horizontal|vertical" android:textIsSelectable="true" android:typeface="monospace" diff --git a/app/src/main/res/layout/drawer_layout.xml b/app/src/main/res/layout/drawer_layout.xml index 74419fd9..ec445d1c 100644 --- a/app/src/main/res/layout/drawer_layout.xml +++ b/app/src/main/res/layout/drawer_layout.xml @@ -5,7 +5,6 @@ android:id="@+id/drawerLayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:fitsSystemWindows="true" tools:openDrawer="left"> <include @@ -23,7 +22,8 @@ <androidx.core.widget.NestedScrollView android:id="@+id/scrollView" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:background="?attr/colorPrimary"> <LinearLayout android:layout_width="match_parent" @@ -33,120 +33,53 @@ <RelativeLayout android:id="@+id/header_view" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?attr/colorPrimary" - android:theme="@style/ThemeOverlay.AppCompat.Dark"> - - <androidx.appcompat.widget.AppCompatImageView - android:layout_width="match_parent" - android:layout_height="164dp" - android:contentDescription="@null" - android:scaleType="centerCrop" - app:srcCompat="@drawable/background" /> + android:layout_height="@dimen/drawer_header_height" + android:background="@color/defaultBrand"> <androidx.appcompat.widget.AppCompatImageView - android:id="@+id/current_account_image" - android:layout_width="@dimen/avatar_size" - android:layout_height="@dimen/avatar_size" - android:layout_gravity="center_vertical" - android:layout_marginStart="@dimen/header_padding" - android:layout_marginLeft="@dimen/header_padding" - android:layout_marginTop="46dp" - android:contentDescription="@string/app_name" - app:srcCompat="@mipmap/ic_launcher" /> + android:id="@+id/logo" + android:layout_width="@dimen/drawer_header_logo_size" + android:layout_height="@dimen/drawer_header_logo_size" + android:layout_centerVertical="true" + android:layout_margin="@dimen/spacer_2x" + android:gravity="center" + app:srcCompat="@drawable/ic_launcher_foreground_full" /> <TextView android:id="@+id/app_name" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@id/current_account_image" - android:layout_marginTop="6dp" - android:layout_marginStart="@dimen/header_padding" - android:layout_marginLeft="@dimen/header_padding" - android:layout_marginEnd="@dimen/header_padding" - android:layout_marginRight="@dimen/header_padding" - android:ellipsize="end" - android:shadowColor="@android:color/black" - android:shadowDx="0.5" - android:shadowDy="0" - android:shadowRadius="2" - android:text="@string/app_name_long" - android:textColor="@android:color/white" - android:textSize="14sp" - android:textStyle="bold" /> - - <TextView - android:id="@+id/account" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@+id/app_name" - android:layout_marginStart="@dimen/header_padding" - android:layout_marginLeft="@dimen/header_padding" - android:layout_marginEnd="@dimen/widget_margin" - android:layout_marginRight="@dimen/widget_margin" + android:layout_centerVertical="true" + android:layout_toEndOf="@id/logo" + android:layout_toRightOf="@id/logo" android:ellipsize="end" - android:maxLines="1" - android:shadowColor="@android:color/black" - android:layout_alignParentStart="true" - android:layout_toStartOf="@id/account_arrow" - android:shadowDx="0.5" - android:shadowDy="0" - android:shadowRadius="2" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:text="@string/app_name" android:textColor="@android:color/white" - android:textSize="12sp" - tools:text="user@nextcloud.example.comuser@nextcloud.example.comuser@nextcloud.example.com" - android:layout_alignParentLeft="true" - android:layout_toLeftOf="@id/account_arrow" /> - - <androidx.appcompat.widget.AppCompatImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:id="@+id/account_arrow" - app:srcCompat="@drawable/ic_arrow_drop_down_white_24dp" - android:layout_alignParentEnd="true" - android:layout_alignBottom="@+id/account" - android:layout_marginEnd="@dimen/header_padding" - android:layout_alignParentRight="true" - android:layout_marginRight="@dimen/header_padding" /> + android:textSize="24sp" /> </RelativeLayout> - <LinearLayout - android:id="@+id/accountNavigation" + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/navigationList" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical"> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/navigationList" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingBottom="8dp" - app:layoutManager="LinearLayoutManager" - tools:listitem="@layout/item_navigation" /> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/navigationMenu" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingBottom="8dp" - app:layoutManager="LinearLayoutManager" - tools:listitem="@layout/item_navigation" /> - </LinearLayout> - - <LinearLayout - android:id="@+id/accountChooser" + android:paddingTop="@dimen/spacer_1x" + android:paddingBottom="@dimen/spacer_1x" + app:layoutManager="LinearLayoutManager" + tools:itemCount="6" + tools:listitem="@layout/item_navigation" /> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/navigationMenu" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingBottom="8dp" - android:orientation="vertical" - android:visibility="gone"/> + android:paddingTop="@dimen/spacer_1x" + android:paddingBottom="@dimen/spacer_1x" + app:layoutManager="LinearLayoutManager" + tools:itemCount="3" + tools:listitem="@layout/item_navigation" /> </LinearLayout> - </androidx.core.widget.NestedScrollView> - </com.google.android.material.navigation.NavigationView> - </androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_about_license_tab.xml b/app/src/main/res/layout/fragment_about_license_tab.xml index c57c88ed..6afaa763 100644 --- a/app/src/main/res/layout/fragment_about_license_tab.xml +++ b/app/src/main/res/layout/fragment_about_license_tab.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -22,17 +23,19 @@ android:padding="10dp" android:text="@string/about_app_license" /> - <Button + <com.google.android.material.button.MaterialButton android:id="@+id/about_app_license_button" + style="@style/Widget.MaterialComponents.Button" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/about_app_license_button" /> + android:text="@string/about_app_license_button" + app:backgroundTint="@color/defaultBrand" /> <TextView style="?android:attr/listSeparatorTextViewStyle" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/spacer_2x" android:text="@string/about_icons_disclaimer_title" /> <TextView diff --git a/app/src/main/res/layout/fragment_note_edit.xml b/app/src/main/res/layout/fragment_note_edit.xml index 954351b0..1c0417d2 100644 --- a/app/src/main/res/layout/fragment_note_edit.xml +++ b/app/src/main/res/layout/fragment_note_edit.xml @@ -3,7 +3,8 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + tools:background="?attr/colorPrimary"> <ScrollView android:id="@+id/scrollView" @@ -17,12 +18,12 @@ android:id="@+id/editContent" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@null" android:ems="10" android:gravity="top" android:inputType="textMultiLine|textCapSentences" - android:padding="16dp" + android:padding="@dimen/spacer_2x" android:textColor="@color/fg_default" + android:theme="@style/textViewStyle" tools:text="@tools:sample/lorem/random" /> </ScrollView> @@ -32,6 +33,7 @@ android:layout_gravity="bottom|end" android:translationY="-56dp" android:visibility="gone" + app:backgroundTint="@color/defaultBrand" app:fabSize="mini" app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp" tools:visibility="visible" /> @@ -41,6 +43,7 @@ style="@style/fab" android:layout_gravity="bottom|end" android:visibility="gone" + app:backgroundTint="@color/defaultBrand" app:fabSize="mini" app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp" tools:visibility="visible" /> diff --git a/app/src/main/res/layout/fragment_note_preview.xml b/app/src/main/res/layout/fragment_note_preview.xml index 0e81b33e..d841f3c2 100644 --- a/app/src/main/res/layout/fragment_note_preview.xml +++ b/app/src/main/res/layout/fragment_note_preview.xml @@ -3,13 +3,13 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + tools:background="?attr/colorPrimary"> <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:id="@+id/swiperefreshlayout" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/bg_normal" tools:context="it.niedermann.owncloud.notes.android.activity.NotesListViewActivity" tools:ignore="MergeRootFrame"> @@ -24,11 +24,11 @@ android:id="@+id/single_note_content" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/bg_normal" - android:padding="16dp" + android:padding="@dimen/spacer_2x" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="@color/fg_default" android:textIsSelectable="true" + android:theme="@style/textViewStyle" tools:text="@tools:sample/lorem/random" /> </ScrollView> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> @@ -39,6 +39,7 @@ android:layout_gravity="bottom|end" android:translationY="-56dp" android:visibility="gone" + app:backgroundTint="@color/defaultBrand" app:fabSize="mini" app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp" tools:visibility="visible" /> @@ -48,6 +49,7 @@ style="@style/fab" android:layout_gravity="bottom|end" android:visibility="gone" + app:backgroundTint="@color/defaultBrand" app:fabSize="mini" app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp" tools:visibility="visible" /> diff --git a/app/src/main/res/layout/item_account.xml b/app/src/main/res/layout/item_account.xml index ac14985b..18c6f52e 100644 --- a/app/src/main/res/layout/item_account.xml +++ b/app/src/main/res/layout/item_account.xml @@ -6,8 +6,8 @@ android:background="?attr/selectableItemBackground" android:paddingLeft="6dp" android:paddingStart="6dp" - android:paddingRight="8dp" - android:paddingEnd="8dp"> + android:paddingRight="@dimen/spacer_1x" + android:paddingEnd="@dimen/spacer_1x"> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/accountItemAvatar" diff --git a/app/src/main/res/layout/item_account_choose.xml b/app/src/main/res/layout/item_account_choose.xml index fc4899aa..33abe594 100644 --- a/app/src/main/res/layout/item_account_choose.xml +++ b/app/src/main/res/layout/item_account_choose.xml @@ -5,28 +5,60 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" - android:padding="24dp" - android:orientation="horizontal"> + android:orientation="horizontal" + android:padding="@dimen/spacer_3x"> - <androidx.appcompat.widget.AppCompatImageView - android:id="@+id/accountItemAvatar" - android:layout_width="32dp" - android:layout_height="32dp" - android:scaleType="center" - android:focusable="false" - app:srcCompat="@drawable/ic_account_circle_grey_24dp" - android:contentDescription="@null" /> + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="@dimen/spacer_1hx" + android:layout_marginRight="@dimen/spacer_1hx"> + + <androidx.appcompat.widget.AppCompatImageView + android:id="@+id/accountItemAvatar" + android:layout_width="36dp" + android:layout_height="36dp" + android:contentDescription="@null" + android:focusable="false" + android:scaleType="center" + app:srcCompat="@drawable/ic_account_circle_grey_24dp" /> + + <androidx.appcompat.widget.AppCompatImageView + android:id="@+id/currentAccountIndicator" + android:layout_width="12dp" + android:layout_height="12dp" + android:layout_gravity="end|bottom" + android:visibility="gone" + app:srcCompat="@drawable/check" + tools:visibility="visible" /> + </FrameLayout> <TextView android:id="@+id/accountItemLabel" + android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_width="wrap_content" android:layout_gravity="center" + android:layout_marginStart="@dimen/spacer_2x" + android:layout_marginLeft="@dimen/spacer_2x" + android:layout_marginEnd="@dimen/spacer_2x" + android:layout_marginRight="@dimen/spacer_2x" + android:layout_weight="1" android:ellipsize="middle" android:singleLine="true" - android:layout_marginLeft="16dp" - android:layout_marginStart="16dp" + android:textAppearance="@style/TextAppearance.AppCompat.Widget.TextView.SpinnerItem" android:textColor="?android:textColorPrimary" - tools:hint="Username"/> + tools:text="@tools:sample/full_names" /> + -</LinearLayout>
\ No newline at end of file + <androidx.appcompat.widget.AppCompatImageView + android:id="@+id/delete" + android:layout_width="36dp" + android:layout_height="36dp" + android:background="?attr/selectableItemBackgroundBorderless" + android:contentDescription="@null" + android:focusable="false" + android:scaleType="center" + android:visibility="gone" + app:srcCompat="@drawable/ic_delete_grey600_24dp" + tools:visibility="visible" /> +</LinearLayout> diff --git a/app/src/main/res/layout/item_category.xml b/app/src/main/res/layout/item_category.xml index 95c76732..b23a6e3f 100644 --- a/app/src/main/res/layout/item_category.xml +++ b/app/src/main/res/layout/item_category.xml @@ -7,14 +7,14 @@ android:background="?android:selectableItemBackground" android:clickable="true" android:focusable="true" - android:padding="16dp"> + android:padding="@dimen/spacer_2x"> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginEnd="16dp" - android:layout_marginRight="16dp" + android:layout_marginEnd="@dimen/spacer_2x" + android:layout_marginRight="@dimen/spacer_2x" android:contentDescription="@null" android:focusable="false" android:scaleType="center" @@ -36,8 +36,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical|end" - android:layout_marginStart="16dp" - android:layout_marginLeft="16dp" + android:layout_marginStart="@dimen/spacer_2x" + android:layout_marginLeft="@dimen/spacer_2x" android:textColor="@color/fg_default" tools:text="23" /> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_navigation.xml b/app/src/main/res/layout/item_navigation.xml index 65fb4438..e1dc16e8 100644 --- a/app/src/main/res/layout/item_navigation.xml +++ b/app/src/main/res/layout/item_navigation.xml @@ -1,12 +1,13 @@ -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="6dp" - android:paddingLeft="6dp" - android:paddingEnd="8dp" - android:paddingRight="8dp"> + android:gravity="center_vertical" + android:paddingStart="@dimen/spacer_1x" + android:paddingLeft="@dimen/spacer_1x" + android:paddingEnd="@dimen/spacer_1x" + android:paddingRight="@dimen/spacer_1x"> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/navigationItemIcon" @@ -14,33 +15,26 @@ android:layout_height="44dp" android:contentDescription="@null" android:focusable="false" - android:padding="10dp" android:scaleType="center" app:srcCompat="@drawable/ic_folder_grey600_24dp" /> <TextView - android:id="@+id/navigationItemCount" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_alignParentRight="true" - android:layout_centerVertical="true" - android:padding="8dp" - android:textColor="?android:textColorPrimary" - tools:text="37" /> - - <TextView android:id="@+id/navigationItemLabel" - android:layout_width="match_parent" + android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_centerVertical="true" - android:layout_marginStart="64dp" - android:layout_marginLeft="64dp" - android:layout_toStartOf="@id/navigationItemCount" - android:layout_toLeftOf="@id/navigationItemCount" + android:layout_marginStart="@dimen/spacer_1x" + android:layout_marginLeft="@dimen/spacer_1x" + android:layout_weight="1" android:ellipsize="end" android:lines="1" android:textColor="?android:textColorSecondary" - tools:text="Category 1" /> + tools:text="@tools:sample/lorem/random" /> -</RelativeLayout>
\ No newline at end of file + <TextView + android:id="@+id/navigationItemCount" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="@dimen/spacer_1x" + android:textColor="?android:textColorPrimary" + tools:text="37" /> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_notes_list_note_item.xml b/app/src/main/res/layout/item_notes_list_note_item.xml index 61ad02fc..ba88af2a 100644 --- a/app/src/main/res/layout/item_notes_list_note_item.xml +++ b/app/src/main/res/layout/item_notes_list_note_item.xml @@ -12,8 +12,8 @@ android:layout_width="32dp" android:layout_height="32dp" android:layout_gravity="center_vertical" - android:layout_marginLeft="@dimen/button_padding" android:layout_marginStart="@dimen/button_padding" + android:layout_marginLeft="@dimen/button_padding" android:contentDescription="@string/menu_favorite" app:srcCompat="@drawable/ic_star_white_24dp" /> @@ -34,42 +34,43 @@ android:background="@drawable/list_item_background_selector"> <FrameLayout - android:layout_centerVertical="true" android:layout_width="wrap_content" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:layout_centerVertical="true"> <ImageView android:id="@+id/noteFavorite" - android:contentDescription="@string/menu_favorite" - android:padding="16dp" android:layout_width="wrap_content" android:layout_height="match_parent" - tools:src="@drawable/ic_star_yellow_24dp"/> + android:background="?attr/selectableItemBackgroundBorderless" + android:contentDescription="@string/menu_favorite" + android:padding="@dimen/spacer_2x" + tools:src="@drawable/ic_star_yellow_24dp" /> <androidx.appcompat.widget.AppCompatImageView android:id="@+id/noteStatus" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="center_vertical|end" + android:layout_marginTop="12dp" android:layout_marginEnd="4dp" android:layout_marginRight="4dp" - android:layout_marginTop="12dp" - android:layout_gravity="center_vertical|end" android:baseline="14dp" app:srcCompat="@drawable/ic_sync_blue_18dp" /> </FrameLayout> <androidx.appcompat.widget.LinearLayoutCompat - android:layout_weight="1" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingTop="16dp" - android:paddingRight="16dp" - android:paddingEnd="16dp" - android:paddingLeft="0dp" + android:layout_weight="1" + android:orientation="vertical" android:paddingStart="0dp" - android:paddingBottom="16dp" - android:orientation="vertical"> + android:paddingLeft="0dp" + android:paddingTop="@dimen/spacer_2x" + android:paddingEnd="@dimen/spacer_2x" + android:paddingRight="@dimen/spacer_2x" + android:paddingBottom="@dimen/spacer_2x"> <androidx.appcompat.widget.LinearLayoutCompat android:layout_width="match_parent" @@ -79,12 +80,12 @@ android:id="@+id/noteTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_weight="1" android:ellipsize="end" android:maxLines="1" - android:layout_weight="1" - android:textSize="@dimen/primary_font_size" android:textColor="?android:textColorPrimary" - tools:text="@tools:sample/lorem/random"/> + android:textSize="@dimen/primary_font_size" + tools:text="@tools:sample/lorem/random" /> </androidx.appcompat.widget.LinearLayoutCompat> @@ -96,34 +97,35 @@ android:id="@+id/noteExcerpt" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentLeft="true" android:layout_alignParentStart="true" + android:layout_alignParentLeft="true" + android:layout_weight="1" android:ellipsize="end" android:maxLines="1" - android:paddingBottom="1dp" android:paddingTop="1dp" - android:layout_weight="1" + android:paddingBottom="1dp" android:textSize="@dimen/secondary_font_size" - tools:text="@tools:sample/lorem/random"/> + tools:text="@tools:sample/lorem/random" /> <TextView android:id="@+id/noteCategory" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_marginStart="@dimen/spacer_1x" + android:layout_marginLeft="@dimen/spacer_1x" android:background="@drawable/border" android:maxLines="1" - android:paddingBottom="1dp" - android:paddingLeft="8dp" - android:paddingRight="8dp" + android:paddingLeft="@dimen/spacer_1x" android:paddingTop="1dp" - android:layout_marginStart="8dp" - android:layout_marginLeft="8dp" + android:paddingRight="@dimen/spacer_1x" + android:paddingBottom="1dp" android:singleLine="true" android:textColor="?android:textColorPrimary" android:textSize="@dimen/secondary_font_size" - tools:text="@string/category_work"/> + tools:maxLength="15" + tools:text="@tools:sample/lorem/random" /> </androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat> </androidx.appcompat.widget.LinearLayoutCompat> diff --git a/app/src/main/res/layout/item_notes_list_section_item.xml b/app/src/main/res/layout/item_notes_list_section_item.xml index 68af3740..6e20555c 100644 --- a/app/src/main/res/layout/item_notes_list_section_item.xml +++ b/app/src/main/res/layout/item_notes_list_section_item.xml @@ -1,28 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="wrap_content"> - - <TextView - android:id="@+id/sectionTitle" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentEnd="false" - android:layout_alignParentRight="true" - android:layout_alignParentStart="true" - android:layout_alignParentLeft="true" - android:layout_alignParentTop="true" - android:layout_alignWithParentIfMissing="true" - android:background="@color/bg_normal" - android:ellipsize="end" - android:gravity="center_vertical" - android:paddingBottom="8dp" - android:paddingLeft="56dp" - android:paddingStart="56dp" - android:paddingRight="16dp" - android:paddingEnd="16dp" - android:paddingTop="48dp" - android:textColor="@color/fg_default_selection" - android:textSize="@dimen/secondary_font_size" - android:hint="@string/listview_updated_yesterday"/> -</RelativeLayout>
\ No newline at end of file +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/sectionTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignWithParentIfMissing="true" + android:layout_alignParentStart="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_alignParentEnd="false" + android:layout_alignParentRight="true" + android:background="@color/bg_normal" + android:ellipsize="end" + android:gravity="center_vertical" + android:hint="@string/listview_updated_yesterday" + android:paddingStart="56dp" + android:paddingLeft="56dp" + android:paddingTop="48dp" + android:paddingEnd="@dimen/spacer_2x" + android:paddingRight="@dimen/spacer_2x" + android:paddingBottom="@dimen/spacer_1x" + android:textColor="@color/fg_default_selection" + android:textSize="@dimen/secondary_font_size" />
\ No newline at end of file diff --git a/app/src/main/res/layout/item_pref.xml b/app/src/main/res/layout/item_pref.xml index 8237bdad..48d035ef 100644 --- a/app/src/main/res/layout/item_pref.xml +++ b/app/src/main/res/layout/item_pref.xml @@ -11,7 +11,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:contentDescription="@null" - android:padding="16dp" + android:padding="@dimen/spacer_2x" tools:src="@drawable/ic_settings_grey600_24dp" /> <LinearLayout @@ -22,7 +22,6 @@ android:orientation="vertical" tools:ignore="RtlSymmetry"> - <TextView android:id="@android:id/title" android:layout_width="wrap_content" @@ -49,6 +48,6 @@ android:layout_height="match_parent" android:gravity="center_vertical" android:orientation="vertical" - android:padding="16dp" /> + android:padding="@dimen/spacer_2x" /> </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_preference_category.xml b/app/src/main/res/layout/item_preference_category.xml new file mode 100644 index 00000000..4580a438 --- /dev/null +++ b/app/src/main/res/layout/item_preference_category.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@android:id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="56dp" + android:paddingLeft="56dp" + android:paddingTop="@dimen/spacer_3x" + android:paddingEnd="0dp" + android:paddingRight="0dp" + tools:text="@tools:sample/lorem" /> |