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; просмотров: 762;


Поиск по сайту:

При помощи поиска вы сможете найти нужную вам информацию.

Поделитесь с друзьями:

Если вам перенёс пользу информационный материал, или помог в учебе – поделитесь этим сайтом с друзьями и знакомыми.
helpiks.org - Хелпикс.Орг - 2014-2024 год. Материал сайта представляется для ознакомительного и учебного использования. | Поддержка
Генерация страницы за: 0.003 сек.