Ok. I will try in another small project. Is it possible to translate HintText? if it is written in designer how it will be? Isn't it possible to write as;
I think, I saw the problem. Background colour of textfield is black and the font color of the hinttext is gray. So, I can't see. How can I change HintText color?
I think, I saw the problem. Background colour of textfield is black and the font color of the hinttext is gray. So, I can't see. How can I change HintText color?
lets say you are having problem with txtusername.text
use below code under aapplicatio_start:
B4X:
Dim NoTxtField As NativeObject = txtusername
Dim AttrTxt As AttributedString
AttrTxt.Initialize(txtusername.HintText, txtusername.Font, Colors.white)
NoTxtField.SetField("attributedPlaceholder", AttrTxt )
this will set the hint color of txtusername.text to white. ( dont forget to set the hinttext in designer for example: "Kullanıcı Adınız" for the txtusername.text )
they are the same.But you have to write this code before the code i gave . Because it will take the hinttext of textview so you have to set textfieldx.hinttext = "Hello"
before the code i wrote above.
Ok. I did as you said. When the app starts, it is ok. But when the hint text translated to another language it disappears again. So, do I need to write your codes for each translation place?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.