Game Development Reference
In-Depth Information
The text to be displayed is set to a string variable named “ hello_world ,” located in the file strings.xml ,
which is located in the “res/values” directory.
You can hard-code a string value by removing the “ @string/ ” portion and just have the text you want
to display enclosed in quotes, such as
android:text="Hello World EveryBODY!!!"
However, this is not recommended.
You can also preview and edit the layout inside of Eclipse by selecting the layout file and clicking the
Graphical Layout tab located at the bottom left of the file view (see Figure 1-28 .)
Figure 1-28. Graphical layout preview in Eclipse
 
Search WWH ::




Custom Search