How should I do it? For example, when I create a stackoverflow question, the Title text box has this in the TextView edit box:
what's your programming question? to be specific.
As soon as you enter it or begin to enter it, it disappears. How do you do this for android? thank,
In the Activity XML activity, specify
android: hint = "Your message"
in a textview. No need to override onClick method
Alternatively, you can use setHint () in the class.
( ) onclick ( , TextView). Yous , , reset , .
with appropriate option: http://developer.android.com/reference/android/widget/TextView.html#setHint%28int%29
Source: https://habr.com/ru/post/1781754/More articles:Нужен ли мне github для управления исходным кодом? - gitIs word wipe style safe for use on the body? - htmlPHP Zend Engine Extension and Static Methods - cCan I “listen” to the CSS value for a DOM element and tell another DOM element to match it? - javascriptusing sed to get the xth, yth and zth lines of a text file - sedChecksums and credit card checks that do not require a connection to a financial institution - algorithmThe delete_at method deletes only array elements - arraysLoading invalid XML in PHP - xmlProblem with Java BufferedReader text file - javaHow to save a map and create a graph with BFS in Ruby - ruby | fooobar.comAll Articles