Less padding in toolbar

This commit is contained in:
Corewala 2022-01-05 20:26:11 -05:00
parent 9913d58dd1
commit 597f192995
1 changed files with 38 additions and 39 deletions

View File

@ -33,59 +33,58 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin">
android:layout_marginTop="0dp">
<RelativeLayout android:id="@+id/address_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/default_margin">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/default_margin">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/home"
android:layout_width="@dimen/button_size"
android:layout_height="@dimen/button_size"
android:layout_centerVertical="true"
android:layout_margin="@dimen/button_margin"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/vector_home" />
android:id="@+id/home"
android:layout_width="@dimen/button_size"
android:layout_height="@dimen/button_size"
android:layout_centerVertical="true"
android:layout_margin="@dimen/button_margin"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/vector_home"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/home"
android:layout_toStartOf="@+id/more">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/address_edit"
android:background="@drawable/drawable_filled_rounded_rect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:drawablePadding="4dp"
android:inputType="textNoSuggestions|textUri"
android:singleLine="true"
android:textSize="12sp"
android:imeOptions="actionGo"
android:hint="@string/main_input_hint" />
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/home"
android:layout_toStartOf="@+id/more">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/address_edit"
android:background="@drawable/drawable_filled_rounded_rect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:drawablePadding="4dp"
android:inputType="textNoSuggestions|textUri"
android:singleLine="true"
android:textSize="12sp"
android:imeOptions="actionGo"
android:hint="@string/main_input_hint"/>
</RelativeLayout>
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/more"
android:layout_width="@dimen/button_size"
android:layout_height="@dimen/button_size"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_margin="@dimen/button_margin"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/vector_overflow" />
android:id="@+id/more"
android:layout_width="@dimen/button_size"
android:layout_height="@dimen/button_size"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_margin="@dimen/button_margin"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/vector_overflow"/>
</RelativeLayout>