Skip to content

Instantly share code, notes, and snippets.

@gilgoldzweig
Last active December 27, 2019 10:18
Show Gist options
  • Save gilgoldzweig/b62bb793f601b1746b579a6fa6d7de78 to your computer and use it in GitHub Desktop.
Save gilgoldzweig/b62bb793f601b1746b579a6fa6d7de78 to your computer and use it in GitHub Desktop.
MotionLayout layout search view|-|&tag=MotionLayout
<androidx.appcompat.widget.SearchView
android:id="@+id/search_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:background="@color/md_white_1000"
android:elevation="4dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/navigation_icon"
app:queryHint="Search" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment