skip to Main Content

Android Studio – how to get text from a TextInputEditText?

I have this for the TextInputEditText: <com.google.android.material.textfield.TextInputEditText android:id="@+id/textInputEditText" android:layout_width="335dp" android:layout_height="255dp" android:background="@color/white" android:hint="@string/tells_us_your_behave" android:minWidth="4dp" android:minHeight="48dp" android:textColor="@color/black" android:textColorHint="#757575" android:visibility="visible" app:layout_constraintBottom_toTopOf="@+id/textView2" app:layout_constraintTop_toBottomOf="@+id/textView" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="37dp" tools:visibility="visible" /> This is for the "Submit" button: <Button android:id="@+id/button5" android:layout_width="321dp" android:layout_height="75dp" android:layout_marginTop="10dp" android:layout_marginBottom="32dp" android:text="@string/submit" android:textSize="20sp" android:onClick="text" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent"…

VIEW QUESTION
Back To Top
Search