Searched refs:listItems (Results 1 – 3 of 3) sorted by relevance
162 public int getListHeight(Context context, List<SliceItem> listItems) { in getListHeight() argument163 if (listItems == null) { in getListHeight()169 if (!listItems.isEmpty()) { in getListHeight()170 maybeHeader = listItems.get(0); in getListHeight()173 if (listItems.size() == 1 && !maybeHeader.hasHint(HINT_HORIZONTAL)) { in getListHeight()176 int rowCount = listItems.size(); in getListHeight()177 for (int i = 0; i < listItems.size(); i++) { in getListHeight()178 height += getHeight(context, listItems.get(i), i == 0 && hasRealHeader /* isHeader */, in getListHeight()
286 List<ListItem> listItems = new ArrayList<>(); in initializeWithItems() local289 listItems.add(createItem(/* text= */ items[i], /* position= */ i)); in initializeWithItems()292 mAdapter = new ListItemAdapter(context, new ListItemProvider.ListProvider(listItems)); in initializeWithItems()303 List<ListItem> listItems = new ArrayList<>(); in initializeWithSections() local309 listItems.add(header); in initializeWithSections()314 listItems.add(createItem(/* text= */ items[i], /* position= */ i)); in initializeWithSections()318 mAdapter = new ListItemAdapter(context, new ListItemProvider.ListProvider(listItems)); in initializeWithSections()
241 String[] listItems = getListOfDisplayableOptions(mPossiblyVisibleAccounts); in onCreate() local248 populateUIAccountList(listItems); in onCreate()511 String[] listItems = new String[accounts.size() + (mDisallowAddAccounts ? 0 : 1)]; in getListOfDisplayableOptions() local513 listItems[i] = accounts.get(i).name; in getListOfDisplayableOptions()516 listItems[accounts.size()] = getResources().getString( in getListOfDisplayableOptions()519 return listItems; in getListOfDisplayableOptions()607 private final void populateUIAccountList(String[] listItems) { in populateUIAccountList() argument610 android.R.layout.simple_list_item_single_choice, listItems)); in populateUIAccountList()