RegisterForContextMenu getListView

 

After executing the and getting the , creates a with the following parameters:

• The activity (or other ) creating the adapter; in this case, the itself

• The identifier for a layout to be used for rendering the list entries ()

• The cursor ()

• The properties to pull out of the cursor and use for configuring the list entry View instances ( and )

• The corresponding identifiers of widgets in the list entry layout that those properties should go into ( and )

After that, we put the adapter into the , and we get the results shown in Figure 27‑1.

Figure 27‑1. ConstantsBrowser, showing a list of physical constants

If you need more control over the views than you can reasonably achieve with the stock view construction logic, subclass and override to create your own widgets to go into the list, as demonstrated in Chapter 9.

 








Дата добавления: 2015-05-16; просмотров: 698;


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

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

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

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