簡體   English   中英

更改默認 TextInputLayout 樣式?

[英]Change default TextInputLayout style?

我正在使用 Material Design Components 並希望更改TextInputLayout的默認樣式,這意味着我的更改將應用​​於TextInputLayout所有實例,而不必在每個實例上明確定義style="@style/my_style"

如果以及如何可能?

您可以在應用主題中使用textInputStyle屬性。

<style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> 
   <item name="textInputStyle">@style/myCustomStyle</item>
</style>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM