【发布时间】:2019-10-10 23:06:23
【问题描述】:
当我尝试使用时
@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu
Android Studio 要求我创建样式
<android.support.design.widget.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Type frais"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
android:layout_marginRight="8dp"
android:layout_marginEnd="8dp"
>
<AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</android.support.design.widget.TextInputLayout>
我希望在TextInputLayout 中看到ExposedDropdownMenu 样式,但实际上Android Studio 要求我创建这种样式
【问题讨论】:
标签: android material-design android-textinputlayout material-components-android