Relative Content

Tag Archive for androidandroid-layout

MaterialTextInputLayout, when i have end_icon mode clear_text clears drawables

I have a MaterialTextInputLayout which has an end_icon_mode=”clear_text”, when i use startIconDrawable for MaterialTextInputLayout, it has a big padding between edittext and icon, so i decided to use drawableStart for TextInputEditText, but when I start typing, it shows clearButton, but removes drawableStart of TextInputEditText. I have to prevent removing drawableStart of I need to set custom padding to MaterialTextInputLayout startIconDrawable

how to make layout to be in front? androidstudio

<LinearLayout android:id=”@+id/toplayout” android:layout_width=”0dp” android:layout_height=”wrap_content” android:orientation=”horizontal” app:layout_constraintBottom_toTopOf=”@id/filterlayout” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent”> <LinearLayout android:id=”@+id/menulayout” android:layout_width=”65dp” android:layout_height=”50dp” android:layout_marginLeft=”16dp” android:layout_marginTop=”15dp” android:background=”@drawable/formenulayout” android:elevation=”10dp” android:orientation=”vertical” app:layout_constraintHorizontal_bias=”0.5″ app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent” app:layout_constraintVertical_bias=”0.0″ > <ImageButton android:id=”@+id/menu” android:layout_width=”wrap_content” android:layout_height=”50dp” android:layout_gravity=”center” android:backgroundTint=”@color/white” app:srcCompat=”@drawable/menu_button” /> <ImageButton android:id=”@+id/settings” android:layout_width=”35dp” android:layout_height=”35dp” android:layout_gravity=”center” android:layout_marginTop=”2dp” android:background=”@drawable/gear” android:visibility=”gone” app:useMaterialThemeColors=”false” /> </LinearLayout> <com.google.android.material.card.MaterialCardView android:id=”@+id/materialCardView” android:layout_width=”0dp” android:layout_height=”wrap_content” android:layout_weight=”1″ app:cardCornerRadius=”12dp” app:cardElevation=”8dp” app:cardUseCompatPadding=”true” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toEndOf=”@id/menulayout” app:layout_constraintTop_toTopOf=”parent”> <androidx.appcompat.widget.SearchView android:id=”@+id/searchView” […]