Public class extends. The result, once built and installed into the emulator, is shown in Figure 6‑3.
Public onCreate
Super onCreate
SetContentView
FindViewById
SetText
The result, once built and installed into the emulator, is shown in Figure 6‑3.
Figure 6‑3. The FieldDemo sample application
Note
Android’s emulator only allows one application in the launcher per unique Java package. Since all the demos in this chapter share the package, you will only see one of these demos in your emulator’s launcher at any one time.
Another flavor of field is one that offers auto‑completion, to help users supply a value without typing in the whole text. That is provided in Android as the widget and is discussed in Chapter 8.
Дата добавления: 2015-05-16; просмотров: 834;