Skip to content

Instantly share code, notes, and snippets.

@ozbek
Last active June 11, 2019 03:10
Show Gist options
  • Save ozbek/6e1cf0a878efbffa383e87ffd2cdb4bb to your computer and use it in GitHub Desktop.
Save ozbek/6e1cf0a878efbffa383e87ffd2cdb4bb to your computer and use it in GitHub Desktop.
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toStartOf="parent"
app:layout_constraintStart_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:hint="Title">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/textInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext"
android:inputType="text"
android:lines="1"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment