Is there any way by which we can set hint Text color (setHintTextColor) for an entire layout, i.e all the child elements in that layout?
Moreover, I would prefer to do it programmatically, and not through layout xml.
Is there any way by which we can set hint Text color (setHintTextColor) for an entire layout, i.e all the child elements in that layout?
Moreover, I would prefer to do it programmatically, and not through layout xml.
You can create your own theme
which styles the colorHint
:
<style name="AppTheme" parent="Theme.AppCompat"
<item name="android:textColorHint">@color/text_color_hint</item>
</style>