轉貼
Example source code for Android development. How set gray text to EditText when EditText is blank.
Hint text to display when the text is empty.
In layout/main.xml insert to EditText row Attribute Name android:hint=”Some text”
Hint text to display when the text is empty.
In layout/main.xml insert to EditText row Attribute Name android:hint=”Some text”
Programatically you can use method setHint:
沒有留言:
張貼留言