Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

text layout and edit text android studio

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/filledTextField"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="32dp"
        android:layout_marginTop="64dp"
        android:layout_marginEnd="32dp"
        android:hint="Enter something">
 
        <!--this is the actual edit text which takes the input-->
        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/edit_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
 
    </com.google.android.material.textfield.TextInputLayout>
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #text #layout #edit #text #android #studio
ADD COMMENT
Topic
Name
8+2 =