I am new to android development please help me in creating this type design I want to add text in the center of the top borders in the card
please help me or guide me to achive the same view
CodePudding user response:
in TextView
android:hint="@string/name"
Example
<com.google.android.material.textfield.TextInputLayout
android:id="@ id/editTextLayout"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent">
<com.google.android.material.textfield.TextInputEditText
android:id="@ id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="none"
android:hint="@string/name"
android:inputType="textPersonName" />
</com.google.android.material.textfield.TextInputLayout>
CodePudding user response:
Take a look at he reference code available here
Make changes according to your need.
Happy Coding