简体   繁体   English

Android TextInputLayout 遗留样式

[英]Android TextInputLayout legacy style

Android's new material TextInputLayout just supports two boxed and outlined style. Android 的新材质TextInputLayout 只支持boxed 和outlined 两种样式。

在此处输入图像描述

Is there any way to switch to legacy style (that was in support library)有没有办法切换到旧式(在支持库中)

在此处输入图像描述

You can use:您可以使用:

 <com.google.android.material.textfield.TextInputLayout
    style="@style/Widget.Design.TextInputLayout"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM