Created
January 31, 2020 00:22
-
-
Save jtmuller5/a8de3598d31ad9f8de3c556cd4f79ec6 to your computer and use it in GitHub Desktop.
TextInputEditText from Material Design
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.google.android.material.textfield.TextInputLayout | |
android:id="@+id/search_container" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="8dp" | |
android:layout_marginEnd="16dp" | |
app:endIconMode="clear_text" | |
app:endIconTint="@color/primaryYellow" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<com.google.android.material.textfield.TextInputEditText | |
android:id="@+id/search_box" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="8dp" | |
android:layout_marginEnd="16dp" | |
android:layout_marginBottom="8dp" | |
android:hint="@string/searchHint" | |
android:imeOptions="actionSearch" | |
android:inputType="textPersonName" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
</com.google.android.material.textfield.TextInputLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment