Android EditText

Example:

                                    
                                          <?xml version="1.0" encoding="utf-8"?>
                                          <FrameLayout 
                                             xmlns:android="http://schemas.android.com/apk/res/android"
                                             xmlns:tools="http://schemas.android.com/tools" 
                                             android:layout_width="match_parent"
                                             android:layout_height="match_parent"
                                             tools:context=".Edittext"
                                             android:padding="16dp">
                                          
                                           <EditText
                                               android:id="@+id/edittext"
                                               android:layout_width="match_parent"
                                               android:layout_height="wrap_content"
                                               android:layout_gravity="center"
                                               android:hint="Enter your name"
                                               android:maxLines="1"/>
                                          </FrameLayout>
                                    
                                  

Output