skip to Main Content

Android Studio – Can remove space between box and underline for android TextInputLayout

I want to create TextInputLayout without a gap between the underline and edge of the box can remove this gap? image here: <com.google.android.material.textfield.TextInputLayout android:layout_width="0dp" android:layout_height="wrap_content" android:id="@+id/tilSearch" android:hint="@string/search_location" app:errorEnabled="false" app:errorTextColor="@color/red" app:helperTextEnabled="true"> <EditText android:id="@+id/edtSearch" android:layout_width="match_parent" android:layout_height="@dimen/_60dp" android:importantForAutofill="no" android:inputType="text" tools:ignore="LabelFor" /> </com.google.android.material.textfield.TextInputLayout>

VIEW QUESTION

Android Studio – Android TextInputLayout Crashed app when I had added 'style'

I've got problem with TextInputLayout from material components for android. When I add style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" to my TextInputLayout, app has crashed. All code .xml is like fragment. <?xml version="1.0" encoding="utf-8"?> <FrameLayout 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="match_parent" tools:context=".CreatorFragment" android:background="@color/cardview_dark_background"> <LinearLayout android:orientation="vertical" android:padding="20dp"…

VIEW QUESTION
Back To Top
Search