Android add placeholder text to EditText

后端 未结 8 859
感动是毒
感动是毒 2020-12-02 04:34

How can I add a placeholder text to EditText in the class that isn\'t in the XML?

I have the following EditText in my code which will be sh

8条回答
  •  旧巷少年郎
    2020-12-02 04:49

    This how to make input password that has hint which not converted to * !!.

    On XML :

    android:inputType="textPassword"
    android:gravity="center"
    android:ellipsize="start"
    android:hint="Input Password !."
    

    thanks to : mango and rjrjr for the insight :D.

提交回复
热议问题