Skip to content

Commit

Permalink
#630 Search - Adjust toolbar buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Niedermann <info@niedermann.it>
  • Loading branch information
stefan-niedermann committed Mar 28, 2021
1 parent d15914a commit f01326f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
35 changes: 17 additions & 18 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,19 @@

<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="?attr/actionBarSize"
android:layout_marginStart="@dimen/spacer_2x"
android:layout_marginTop="@dimen/spacer_1x"
android:layout_marginEnd="@dimen/spacer_2x"
android:layout_marginBottom="@dimen/spacer_1hx"
android:elevation="2dp"
app:strokeWidth="0dp"
app:cardCornerRadius="@dimen/spacer_1x">
app:cardCornerRadius="@dimen/spacer_1x"
app:strokeWidth="0dp">


<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
tools:title="Deck">

<androidx.appcompat.widget.Toolbar
Expand Down Expand Up @@ -151,16 +151,16 @@
tools:hint="@string/app_name_short" />
</androidx.appcompat.widget.Toolbar>

<ImageView
<ImageButton
android:id="@+id/enableSearch"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="0dp"
android:layout_gravity="center_vertical|end"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_archived_cards"
android:paddingStart="@dimen/spacer_1x"
android:paddingEnd="@dimen/spacer_1x"
android:tooltipText="@string/action_archived_cards"
android:background="@null"
android:contentDescription="@string/simple_search"
android:paddingStart="@dimen/spacer_1hx"
android:paddingEnd="@dimen/spacer_1hx"
android:tooltipText="@string/simple_search"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/filterWrapper"
app:layout_constraintTop_toTopOf="parent"
Expand All @@ -177,7 +177,7 @@
app:layout_constraintEnd_toStartOf="@id/accountSwitcher"
app:layout_constraintTop_toTopOf="parent">

<ImageView
<ImageButton
android:id="@+id/filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -208,15 +208,14 @@

<ImageView
android:id="@+id/accountSwitcher"
android:layout_width="48dp"
android:layout_height="?attr/actionBarSize"
android:layout_width="44dp"
android:layout_height="0dp"
android:layout_gravity="center_vertical|end"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/choose_account"
android:paddingStart="0dp"
android:paddingTop="12dp"
android:paddingEnd="@dimen/spacer_1hx"
android:paddingBottom="12dp"
android:padding="@dimen/spacer_1hx"
android:paddingStart="@dimen/spacer_1hx"
android:paddingEnd="@dimen/spacer_1x"
android:tooltipText="@string/choose_account"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,5 @@
<string name="log_file">Log file</string>
<string name="copying_logs_to_file">Copying logs to file…</string>
<string name="account_imported">Account imported</string>
<string name="simple_search">Search</string>
</resources>

0 comments on commit f01326f

Please sign in to comment.