我想创建具有Widget.MaterialComponents.TextInputLayout.OutlinedBox风格的TextInputLayout。我尝试了很多方法,但都不能得到所需的结果。TextInputLayouttextInputLayout = new TextInputLayout(getActivity(),null,R.style.Widget_MaterialComponents_TextInputLayout_OutlinedBox);
textIn
虽然从材料样式中使用这种样式,但我在AppTheme中提供的AppTheme或扩展该样式本身并提供TextAppearance的位置并不重要 E/AndroidRuntime在com.google.android.material.internal.ThemeEnforcement.checkTextAppearance(ThemeEnforcement.java:185)(TextInputLayout.java:474) a
我正在尝试改变textInputLayout的轮廓或边框的颜色,我不知道为什么它不改变,我寻找并找到一些解决方案,但没有为我工作。在这里,我将样式放在textInputLayout中,然后将其应用于
<style name="WhiteOutlineBox" parent="Widget.MaterialComponents.TextInputLayout.OutlineBox-- this style for the hint text lable