Translations:Android Training/Building a Simple User Interface/17/en

Aus Android Wiki
Wechseln zu: Navigation, Suche

android:hint[Quelltext bearbeiten]

This is a default string to display when the text field is empty. Instead of using a hard-coded string as the value, the "@string/edit_message" value refers to a string resource defined in a separate file. Because this refers to a concrete resource (not just an identifier), it does not need the plus sign. However, because you haven't defined the string resource yet, you’ll see a compiler error at first. You'll fix this in the next section by defining the string.