A
A
ArturPendragonOfficial2021-06-12 19:29:45
android studio
ArturPendragonOfficial, 2021-06-12 19:29:45

How do I change background in TextInputLayout in xml?

This style has the default gray color for the stroke of this box and the triangle.
I want to change their colors to blue.


60c4e0d7712ea435983226.png

<com.google.android.material.textfield.TextInputLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin10"
            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu">

            <AutoCompleteTextView
                android:id="@+id/cropsAuto"
                android:textSize="@dimen/text_size"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:inputType="none"
                android:text="@string/choose_one_of_them" />


How can I do it ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question