/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | ContactListViewUtils.java | 18 private static void addPaddingToView(ListView listView, int parentWidth, argument 24 listView.setPadding( 26 listView.getPaddingTop(), 28 listView.getPaddingBottom()); 30 listView.setClipToPadding(false); 31 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); 36 * Add padding to {@param listView} if this configuration has set both space weight and 38 * layout file so that the {@param listView}'s padding can be set proportional to the card 42 * @param listView ListView that we add padding to 46 final ListView listView, fina 45 applyCardPaddingToView(Resources resources, final ListView listView, final View rootLayout) argument [all...] |
H A D | ViewUtil.java | 98 * @param listView to add the padding to 101 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { argument 104 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), 105 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); 106 listView.setClipToPadding(false);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | PinnedHeaderListAdapter.java | 94 public void configurePinnedHeaders(PinnedHeaderListView listView) { argument 109 listView.setHeaderInvisible(i, true); 113 int headerViewsCount = listView.getHeaderViewsCount(); 120 int position = listView.getPositionAt(topHeaderHeight) - headerViewsCount; 126 listView.setHeaderPinnedAtTop(i, topHeaderHeight, false); 127 topHeaderHeight += listView.getPinnedHeaderHeight(i); 135 int listHeight = listView.getHeight(); 138 int position = listView.getPositionAt(listHeight - bottomHeaderHeight) 149 int height = listView.getPinnedHeaderHeight(i); 152 listView [all...] |
H A D | IndexerListAdapter.java | 150 public void configurePinnedHeaders(PinnedHeaderListView listView) { argument 151 super.configurePinnedHeaders(listView); 159 listView.setHeaderInvisible(index, false); 161 int listPosition = listView.getPositionAt(listView.getTotalTopPinnedHeaderHeight()); 162 int position = listPosition - listView.getHeaderViewsCount(); 174 listView.setHeaderInvisible(index, false); 176 View topChild = listView.getChildAt(listPosition); 192 listView.setFadingHeader(index, listPosition, isLastInSection);
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
H A D | ViewUtil.java | 84 * @param listView to add the padding to 87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { argument 90 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), 91 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); 92 listView.setClipToPadding(false);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapEmailSettings.java | 49 ExpandableListView listView = (ExpandableListView) findViewById(R.id.bluetooth_map_email_settings_list_view); 51 BluetoothMapEmailSettingsAdapter adapter = new BluetoothMapEmailSettingsAdapter(this,listView, mGroups, mLoader.getAccountsEnabledCount()); 52 listView.setAdapter(adapter);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | RingtonePickerActivity.java | 191 public void onPrepareListView(ListView listView) { argument 194 mDefaultRingtonePos = addDefaultRingtoneItem(listView); 202 mSilentPos = addSilentItem(listView); 222 * @param listView The ListView to add to. 226 private int addStaticItem(ListView listView, int textResId) { argument 228 com.android.internal.R.layout.select_dialog_singlechoice_material, listView, false); 230 listView.addHeaderView(textView); 232 return listView.getHeaderViewsCount() - 1; 235 private int addDefaultRingtoneItem(ListView listView) { argument 237 return addStaticItem(listView, 245 addSilentItem(ListView listView) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | AccountSettingsEditQuickResponsesFragment.java | 83 final ListView listView = UiUtilities.getView(getView(), 85 listView.setAdapter(adapter); 122 final ListView listView = UiUtilities.getView(view, 125 UiUtilities.getView((ViewGroup) listView.getParent(), R.id.empty_view); 126 listView.setEmptyView(emptyView); 127 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { 130 final Cursor c = (Cursor) listView.getItemAtPosition(position);
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
H A D | SearchFragment.java | 100 final ListView listView = getListView(); 102 listView.setBackgroundColor(res.getColor(R.color.background_dialer_results)); 103 listView.setClipToPadding(false); 105 listView.setOnScrollListener(new OnScrollListener() { 211 final ListView listView = getListView(); 212 listView.setPaddingRelative( 213 listView.getPaddingStart(), 215 listView.getPaddingEnd(), 216 listView.getPaddingBottom());
|
H A D | ListsFragment.java | 161 final AbsListView listView = getCurrentListView(); 162 return listView != null && (listView.getChildCount() == 0 163 || listView.getChildAt(0).getTop() == listView.getPaddingTop());
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
H A D | ContactDisplayUtils.java | 355 public static int getFirstListItemOffset(ListView listView) { argument 356 if (listView == null || listView.getChildCount() == 0 || 357 listView.getFirstVisiblePosition() != 0) { 360 return listView.getChildAt(0).getTop(); 366 * @param listView that should be scrolled 369 public static void requestToMoveToOffset(ListView listView, int offset) { argument 376 if (listView == null || listView.getChildCount() == 0 || 377 listView [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | InsertQuickResponseDialog.java | 112 final ListView listView = (ListView) quickResponsesView.findViewById(R.id.quick_responses); 113 listView.setEmptyView(quickResponsesView.findViewById(R.id.quick_responses_empty_view)); 114 listView.setAdapter(adapter); 115 listView.setOnItemClickListener(new OnItemClickListener() { 118 final Cursor c = (Cursor) listView.getItemAtPosition(position);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | GroupMembershipView.java | 190 ListView listView = mPopup.getListView(); 191 if (listView != null && !listView.isItemChecked(position)) { 193 listView.setItemChecked(position, true); 194 onItemClick(listView, null, position, listView.getItemIdAtPosition(position)); 319 ListView listView = mPopup.getListView(); 320 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 321 listView.setOverScrollMode(OVER_SCROLL_ALWAYS); 324 listView [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | LimitedMultiSelectDialogFragment.java | 90 final ListView listView = new ListView(getActivity()); 91 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 92 listView.setAdapter(adapter); 93 listView.setOnItemClickListener(new OnItemClickListener() { 121 listView.setItemChecked(j, true); 127 .setView(listView)
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | CallLogFragment.java | 240 final ListView listView = getListView(); 247 if (listView.getFirstVisiblePosition() > 5) { 248 listView.setSelection(5); 258 listView.smoothScrollToPosition(0); 544 final ListView listView = getListView(); 545 listView.removeFooterView(mFooterView); 546 listView.addFooterView(mFooterView); 548 ViewUtil.addBottomPaddingToListViewForFab(listView, getResources()); 604 final ListView listView = getListView(); 621 if (listView ! [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | SettingsPreferenceFragment.java | 203 ListView listView = getListView(); 204 ListAdapter adapter = listView.getAdapter(); 220 final ListView listView = getListView(); 221 final ListAdapter adapter = listView.getAdapter(); 226 listView.post(new Runnable() { 229 listView.setSelection(position); 230 listView.postDelayed(new Runnable() { 233 final int index = position - listView.getFirstVisiblePosition(); 234 if (index >= 0 && index < listView.getChildCount()) { 235 final View v = listView [all...] |
H A D | UserDictionarySettings.java | 113 final ListView listView = getListView(); 114 listView.setAdapter(createAdapter()); 115 listView.setFastScrollEnabled(true); 116 listView.setEmptyView(emptyView);
|
H A D | DreamSettings.java | 117 ListView listView = getListView(); 118 listView.setItemsCanFocus(true); 122 listView.setEmptyView(emptyView); 125 listView.setAdapter(mAdapter);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
H A D | WordListPreference.java | 258 final ListView listView = (ListView)parent; 271 indexToOpen = listView.indexOfChild(v); 274 listView.getLastVisiblePosition() - listView.getFirstVisiblePosition(); 277 final ButtonSwitcher buttonSwitcher = (ButtonSwitcher)listView.getChildAt(i)
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | MiscFilesHandler.java | 255 final ListView listView = (ListView) parent; 261 listView.setItemChecked(listPosition, isChecked); 268 if (listView.getCheckedItemCount() > 0) { 271 listView.setItemChecked(listPosition, !view.isChecked()); 278 if (listView.getCheckedItemCount() > 0) { 279 listView.setItemChecked(listPosition, !view.isChecked());
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | SearchActivity.java | 272 final ListView listView = getListView(); 273 listView.setItemsCanFocus(true); 274 listView.setFocusable(true); 275 listView.setClickable(true); 356 listView.setFocusable(true); 357 listView.setFocusableInTouchMode(true); 358 listView.requestFocus();
|
H A D | ConversationList.java | 143 ListView listView = getListView(); 144 listView.setOnCreateContextMenuListener(mConvListOnCreateContextMenuListener); 145 listView.setOnKeyListener(mThreadListKeyListener); 146 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); 147 listView.setMultiChoiceModeListener(new ModeCallback()); 150 listView.setEmptyView(findViewById(R.id.empty)); 194 ListView listView = getListView(); 195 mSavedFirstVisiblePosition = listView.getFirstVisiblePosition(); 196 View firstChild = listView.getChildAt(0); 210 ListView listView [all...] |
/packages/apps/Settings/tests/src/com/android/settings/tests/ |
H A D | BluetoothRequestPermissionTest.java | 89 ListView listView = (ListView) findViewById(R.id.msg_container); 90 listView.setAdapter(mMsgAdapter);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
H A D | UserDictionarySettings.java | 152 final ListView listView = getListView(); 153 listView.setAdapter(createAdapter()); 154 listView.setFastScrollEnabled(true); 155 listView.setEmptyView(emptyView);
|
/packages/apps/Music/src/com/android/music/ |
H A D | MusicPicker.java | 188 TrackListAdapter(Context context, ListView listView, int layout, argument 191 mListView = listView; 439 final ListView listView = getListView(); 441 listView.setItemsCanFocus(false); 443 mAdapter = new TrackListAdapter(this, listView, 449 listView.setTextFilterEnabled(true); 452 listView.setSaveEnabled(false);
|