From ddd7b901da4a2c7814e2814a74b36d47c3549465 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 28 Jul 2020 22:49:11 +0200 Subject: [PATCH] proper coloring and sizing for toolbar_standard.xml(s) Signed-off-by: Andy Scherzinger --- .../android/ui/activity/ToolbarActivity.java | 4 +- src/main/res/layout/toolbar_standard.xml | 272 +++++++++--------- 2 files changed, 145 insertions(+), 131 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java b/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java index 6c204bcfb3..a0ba3c1eb8 100644 --- a/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java @@ -53,7 +53,7 @@ import androidx.core.content.ContextCompat; import androidx.core.view.ViewCompat; /** - * Base class providing toolbar registration functionality, see {@link #setupToolbar(boolean)}. + * Base class providing toolbar registration functionality, see {@link #setupToolbar(boolean, boolean)}. */ public abstract class ToolbarActivity extends BaseActivity { protected MaterialButton mMenuButton; @@ -63,7 +63,7 @@ public abstract class ToolbarActivity extends BaseActivity { private AppBarLayout mAppBar; private RelativeLayout mDefaultToolbar; private Toolbar mToolbar; - private MaterialCardView mHomeSearchToolbar; + private LinearLayout mHomeSearchToolbar; private ImageView mPreviewImage; private FrameLayout mPreviewImageContainer; private LinearLayout mInfoBox; diff --git a/src/main/res/layout/toolbar_standard.xml b/src/main/res/layout/toolbar_standard.xml index 1682a79f91..c618ef3cc3 100644 --- a/src/main/res/layout/toolbar_standard.xml +++ b/src/main/res/layout/toolbar_standard.xml @@ -27,160 +27,174 @@ android:background="@color/bg_default" tools:viewBindingIgnore="true"> - - + - - - - - - - - - - - - - - - - - - - - + + - + - + + + + + + + + + + + + + + android:paddingStart="16dp" + android:paddingTop="8dp" + android:paddingEnd="16dp" + tools:visibility="visible"> - - + + + + + + + + + + + + + + + + +