【发布时间】:2020-01-05 01:21:31
【问题描述】:
在迁移到最新版本的 Material Components (1.1.0-alpha09) 后,我注意到 TextInputLayout 有一些填充水平填充。我的目标是实现没有背景或轮廓框的旧式文本字段。所以我扩展了其中一种样式,即Widget.MaterialComponents.TextInputLayout.FilledBox,并将背景颜色设置为透明。
<style name="Widget.MyApp.TextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.FilledBox.Dense">
<item name="boxBackgroundColor">@color/transparent</item>
</style>
现在的问题是这个输入字段在我的应用程序中看起来很奇怪,有这样的水平填充(这是填充框或轮廓框所必需的)。
所以我的问题是,我怎样才能删除这个填充?
【问题讨论】:
标签: android material-design android-textinputlayout material-components material-components-android