android.support.design.widget.TextInputLayout切换到 AndroidX 并启用后错误膨胀类style/Widget.MaterialComponents.TextInputLayout.OutlinedBox
朋友们大家好,今天我将我的项目切换到 Androidx(我需要的新库需要),并且我的TextInputLayout.
请注意,当我删除 OulinedBox 样式时,它可以完美编译,但我绝对需要这个项目。
有谁知道让 OulinedBox TextInputLayout 样式与 AndroidX 一起使用的方法?
非常感谢您的帮助和时间。
<android.support.design.widget.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="60dp"
android:layout_marginTop="20dp"
app:boxStrokeColor="@color/gradient_begin_purple">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/login"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)