要修改 Android Studio 中 EditText 的 hint 颜色,可以在 XML 中添加以下属性:

android:textColorHint="@color/your_color"

其中,your_color 是你想要设置的颜色,可以在 colors.xml 文件中定义。

另外,如果想要全局修改所有 EditText 的 hint 颜色,可以在 App 的主题中添加以下属性:

<item name="android:textColorHint">@color/your_color</item>

这样就可以统一修改所有 EditText 的 hint 颜色了。

Android studio 修改 hint 颜色

原文地址: https://www.cveoy.top/t/topic/daht 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录