Use an extra container for the margin to be taken into account by the layout_scrollFlags
This commit is contained in:
parent
8170f523e0
commit
b203093073
|
@ -78,17 +78,24 @@
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible">
|
tools:visibility="visible">
|
||||||
|
|
||||||
<androidx.appcompat.widget.SearchView
|
<!-- Use an extra container for the margin to be taken into account by the layout_scrollFlags -->
|
||||||
android:id="@+id/searchView"
|
<FrameLayout
|
||||||
style="@style/VectorSearchView"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="4dp"
|
app:layout_scrollFlags="scroll|enterAlways|snap">
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:background="@null"
|
<androidx.appcompat.widget.SearchView
|
||||||
android:minHeight="0dp"
|
android:id="@+id/searchView"
|
||||||
app:layout_scrollFlags="scroll|enterAlways|snap"
|
style="@style/VectorSearchView"
|
||||||
tools:queryHint="@string/search_hint" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:background="@null"
|
||||||
|
android:minHeight="0dp"
|
||||||
|
tools:queryHint="@string/search_hint" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue