MikeH Well-Known Member Licensed User Longtime User Jan 7, 2015 #1 I`d like to make a black textview with white text and grey hint. I can do all except the grey hint.
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2015 #2 You can use this sub: B4X: Sub SetHintColor(tf As TextField, clr As Int) Dim no As NativeObject = tf Dim attr As AttributedString attr.Initialize(tf.HintText, tf.Font, clr) no.SetField("attributedPlaceholder", attr) End Sub
You can use this sub: B4X: Sub SetHintColor(tf As TextField, clr As Int) Dim no As NativeObject = tf Dim attr As AttributedString attr.Initialize(tf.HintText, tf.Font, clr) no.SetField("attributedPlaceholder", attr) End Sub
C caparicio Member Licensed User Longtime User Jan 6, 2016 #3 MikeH said: I`d like to make a black textview with white text and grey hint. I can do all except the grey hint. Click to expand... How do you do to put a hint text on a TextView?
MikeH said: I`d like to make a black textview with white text and grey hint. I can do all except the grey hint. Click to expand... How do you do to put a hint text on a TextView?
MikeH Well-Known Member Licensed User Longtime User Jan 6, 2016 #4 caparicio said: How do you do to put a hint text on a TextView? Click to expand... You can do it with TxtField: B4X: TxtField1.HintText = "Hint text"
caparicio said: How do you do to put a hint text on a TextView? Click to expand... You can do it with TxtField: B4X: TxtField1.HintText = "Hint text"
C caparicio Member Licensed User Longtime User Jan 6, 2016 #5 But I need to be multiline, but it is not multiline TextField
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2016 #6 TextView doesn't support this feature.