What I want to achieve is something like this, a search barrier without upper and lower indentation: 
What I get is: 
I even tried to set the background to transparent and then zero, but the background of the creeping line turns white, it doesnโt look like the first image, I want the search arrow to look like it was placed between both layouts (the top layout is darker and the layout below is lighter as you see in both photos). I use basic attributes for search in xml, thanks!
EDIT: This is seekBar in XML. I do not believe that this has anything to do with the root layout, because everywhere, if I start a new project and I add a search bar, it still has this background, and if I try to set it to transparency, it will become white.
<SeekBar android:id="@+id/window_song_seekbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/primaryColor" android:paddingLeft="0px" android:paddingRight="0px" />
source share