Cole K
06/24/2021, 11:48 PM<?xml version=“1.0” encoding=“utf-8"?>
<com.google.android.material.appbar.AppBarLayout xmlns:android=“http://schemas.android.com/apk/res/android”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:background=“@null”>
<FrameLayout
android:layout_width=“match_parent”
android:layout_height=“wrap_content”>
<com.comapny.apps.view.custom.ui.MyToolbar
android:id=“@+id/toolbar”
style=“@style/AppTheme.Toolbar”
android:layout_width=“match_parent”/>
<com.comapny.apps.view.custom.SearchView
android:id=“@+id/search_view”
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:layout_gravity=“bottom”
android:visibility=“invisible”/>
</FrameLayout>
</com.google.android.material.appbar.AppBarLayout>It seems like I can only see the shadow under my search view when I
include
the layout in other views. When I use it as a custom ui component (<com.company.apps.view.custom.ui.SearchToolbar/>
), it does not show the shadow. Any idea as to why?Cole K
06/25/2021, 12:01 AMKirill Grouchnikov
06/25/2021, 2:19 AMChristiano
06/25/2021, 6:52 AM