#android #xml #android-layout #material-design #android-textinputlayout
Вопрос:
Я пытаюсь реализовать TextInputLayout библиотеки материалов с помощью виджета.Материальные компоненты.TextInputLayout.Очерченныйбокс.разоблаченныйдропдаунмену стиль. Он ведет себя странно, как видно на изображении. В чем может быть возможная причина этой ошибки?
Вот мой код:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<com.google.android.material.textfield.TextInputLayout
android:id="@ id/layoutActivePlaylist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_25sdp"
android:layout_marginEnd="@dimen/_25sdp"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:hint="@string/active_playlist"
app:hintTextColor="@color/fit_white"
>
<AutoCompleteTextView
android:id="@ id/tvActivePlaylistName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/_10sdp"
android:paddingBottom="@dimen/_10sdp"
android:textSize="@dimen/_15ssp"
android:fontFamily="@font/ubuntu_regular"
android:textColor="@color/fit_turquoise"
android:inputType="none"
tools:text="@string/all_songs"
/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>