Home
last modified time | relevance | path

Searched refs:listView (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/Dialer/java/com/android/dialer/app/list/
DOldSpeedDialFragment.java91 private PhoneFavoriteListView listView; field in OldSpeedDialFragment
139 listView = (PhoneFavoriteListView) parentView.findViewById(R.id.contact_tile_list); in onCreateView()
140 listView.setOnItemClickListener(this); in onCreateView()
141 listView.setVerticalScrollBarEnabled(false); in onCreateView()
142 listView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT); in onCreateView()
143 listView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY); in onCreateView()
144 listView.getDragDropController().addOnDragDropListener(contactTileAdapter); in onCreateView()
145 listView.setDragShadowOverlay( in onCreateView()
158 listView.setLayoutAnimation(controller); in onCreateView()
159 listView.setAdapter(contactTileAdapter); in onCreateView()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListAdapter.java94 public void configurePinnedHeaders(PinnedHeaderListView listView) { in configurePinnedHeaders() argument
109 listView.setHeaderInvisible(i, true); in configurePinnedHeaders()
113 int headerViewsCount = listView.getHeaderViewsCount(); in configurePinnedHeaders()
120 int position = listView.getPositionAt(topHeaderHeight) - headerViewsCount; in configurePinnedHeaders()
126 listView.setHeaderPinnedAtTop(i, topHeaderHeight, false); in configurePinnedHeaders()
127 topHeaderHeight += listView.getPinnedHeaderHeight(i); in configurePinnedHeaders()
135 int listHeight = listView.getHeight(); in configurePinnedHeaders()
138 int position = listView.getPositionAt(listHeight - bottomHeaderHeight) in configurePinnedHeaders()
149 int height = listView.getPinnedHeaderHeight(i); in configurePinnedHeaders()
152 listView.setHeaderPinnedAtBottom(i, listHeight - bottomHeaderHeight, false); in configurePinnedHeaders()
[all …]
DIndexerListAdapter.java150 public void configurePinnedHeaders(PinnedHeaderListView listView) { in configurePinnedHeaders() argument
151 super.configurePinnedHeaders(listView); in configurePinnedHeaders()
159 listView.setHeaderInvisible(index, false); in configurePinnedHeaders()
161 int listPosition = listView.getPositionAt(listView.getTotalTopPinnedHeaderHeight()); in configurePinnedHeaders()
162 int position = listPosition - listView.getHeaderViewsCount(); in configurePinnedHeaders()
174 listView.setHeaderInvisible(index, false); in configurePinnedHeaders()
176 View topChild = getViewAtVisiblePosition(listView, listPosition); in configurePinnedHeaders()
192 listView.setFadingHeader(index, listPosition, isLastInSection); in configurePinnedHeaders()
DMultiSelectContactsListFragment.java316 protected void bindListHeaderCustom(View listView, View accountFilterContainer) { in bindListHeaderCustom() argument
317 bindListHeaderCommon(listView, accountFilterContainer); in bindListHeaderCustom()
332 protected void bindListHeader(Context context, View listView, View accountFilterContainer, in bindListHeader() argument
335 hideHeaderAndAddPadding(context, listView, accountFilterContainer); in bindListHeader()
339 bindListHeaderCommon(listView, accountFilterContainer); in bindListHeader()
409 private void bindListHeaderCommon(View listView, View accountFilterContainer) { in bindListHeaderCommon() argument
412 setListViewPaddingTop(listView, /* paddingTop */ 0); in bindListHeaderCommon()
418 protected void hideHeaderAndAddPadding(Context context, View listView, in hideHeaderAndAddPadding() argument
421 setListViewPaddingTop(listView, in hideHeaderAndAddPadding()
426 private void setListViewPaddingTop(View listView, int paddingTop) { in setListViewPaddingTop() argument
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/util/
DContactListViewUtils.java32 ListView listView, int parentWidth, int listSpaceWeight, int listViewWeight) { in addPaddingToView() argument
36 listView.setPadding( in addPaddingToView()
38 listView.getPaddingTop(), in addPaddingToView()
40 listView.getPaddingBottom()); in addPaddingToView()
42 listView.setClipToPadding(false); in addPaddingToView()
43 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); in addPaddingToView()
56 Resources resources, final ListView listView, final View rootLayout) { in applyCardPaddingToView() argument
75 listView, in applyCardPaddingToView()
84 listView, rootLayout.getWidth(), listSpaceWeight, listViewWeight); in applyCardPaddingToView()
/packages/providers/MediaProvider/src/com/android/providers/media/
DRingtonePickerActivity.java347 public void onPrepareListView(ListView listView) { in onPrepareListView() argument
352 mDefaultRingtonePos = addDefaultRingtoneItem(listView); in onPrepareListView()
360 mSilentPos = addSilentItem(listView); in onPrepareListView()
379 addNewSoundItem(listView); in onPrepareListView()
383 registerForContextMenu(listView); in onPrepareListView()
420 private int addStaticItem(ListView listView, int textResId) { in addStaticItem() argument
422 com.android.internal.R.layout.select_dialog_singlechoice_material, listView, false); in addStaticItem()
424 listView.addHeaderView(textView); in addStaticItem()
426 return listView.getHeaderViewsCount() - 1; in addStaticItem()
429 private int addDefaultRingtoneItem(ListView listView) { in addDefaultRingtoneItem() argument
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationView.java47 RecyclerView listView = findViewById(R.id.notifications); in onFinishInflate() local
49 listView.setClipChildren(false); in onFinishInflate()
51 listView.setLayoutManager(mLayoutManager); in onFinishInflate()
52 listView.addItemDecoration(new TopAndBottomOffsetDecoration( in onFinishInflate()
54 listView.addItemDecoration(new ItemSpacingDecoration( in onFinishInflate()
59 listView.setAdapter(mAdapter); in onFinishInflate()
61 ((SimpleItemAnimator) listView.getItemAnimator()).setSupportsChangeAnimations(false); in onFinishInflate()
62 listView.addOnItemTouchListener(new CarNotificationItemTouchListener(mContext, mAdapter)); in onFinishInflate()
69 listView.addOnScrollListener(new OnScrollListener() { in onFinishInflate()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java347 public static int getFirstListItemOffset(ListView listView) { in getFirstListItemOffset() argument
348 if (listView == null || listView.getChildCount() == 0 || in getFirstListItemOffset()
349 listView.getFirstVisiblePosition() != 0) { in getFirstListItemOffset()
352 return listView.getChildAt(0).getTop(); in getFirstListItemOffset()
361 public static void requestToMoveToOffset(ListView listView, int offset) { in requestToMoveToOffset() argument
368 if (listView == null || listView.getChildCount() == 0 || in requestToMoveToOffset()
369 listView.getFirstVisiblePosition() != 0 || offset > 0) { in requestToMoveToOffset()
374 if (listView.getChildAt(0).getTop() == offset) { in requestToMoveToOffset()
378 listView.setSelectionFromTop(0, offset); in requestToMoveToOffset()
/packages/apps/Contacts/src/com/android/contacts/util/
DViewUtil.java120 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { in addBottomPaddingToListViewForFab() argument
123 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), in addBottomPaddingToListViewForFab()
124 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); in addBottomPaddingToListViewForFab()
125 listView.setClipToPadding(false); in addBottomPaddingToListViewForFab()
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DViewUtil.java87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { in addBottomPaddingToListViewForFab() argument
90 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), in addBottomPaddingToListViewForFab()
91 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding); in addBottomPaddingToListViewForFab()
92 listView.setClipToPadding(false); in addBottomPaddingToListViewForFab()
/packages/apps/Contacts/src/com/android/contacts/editor/
DGroupMembershipView.java235 ListView listView = mPopup.getListView(); in setGroupMetaData() local
236 if (listView != null && !listView.isItemChecked(position)) { in setGroupMetaData()
238 listView.setItemChecked(position, true); in setGroupMetaData()
239 onItemClick(listView, null, position, listView.getItemIdAtPosition(position)); in setGroupMetaData()
384 ListView listView = mPopup.getListView(); in onClick() local
385 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onClick()
386 listView.setOverScrollMode(OVER_SCROLL_ALWAYS); in onClick()
389 listView.setItemChecked(i, mAdapter.getItem(i).isChecked()); in onClick()
392 listView.setOnItemClickListener(this); in onClick()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactPickerFragmentTest.java160 final ListView listView = (ListView) getFragment().getView() in testLoadAllContactsList() local
162 assertEquals(cursor.getCount(), listView.getCount()); in testLoadAllContactsList()
172 final ListView listView = (ListView) getFragment().getView() in testLoadFrequentContactsList() local
174 assertEquals(cursor.getCount(), listView.getCount()); in testLoadFrequentContactsList()
181 final ListView listView = (ListView) getFragment().getView() in testPickInitialContact() local
184 final ContactListItemView cliv = (ContactListItemView) listView.getChildAt(0); in testPickInitialContact()
214 final ListView listView = (ListView) getFragment().getView() in testPickMoreContacts() local
217 final ContactListItemView cliv = (ContactListItemView) listView.getChildAt(0); in testPickMoreContacts()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsEditQuickResponsesFragment.java83 final ListView listView = UiUtilities.getView(getView(), in onActivityCreated() local
85 listView.setAdapter(adapter); in onActivityCreated()
122 final ListView listView = UiUtilities.getView(view, in onCreateView() local
125 UiUtilities.getView((ViewGroup) listView.getParent(), R.id.empty_view); in onCreateView()
126 listView.setEmptyView(emptyView); in onCreateView()
127 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { in onCreateView()
130 final Cursor c = (Cursor) listView.getItemAtPosition(position); in onCreateView()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCustomHeaderPagerListViewHolder.java54 final ListView listView = (ListView) view.findViewById(getListViewResId()); in createView() local
55 listView.setAdapter(mListAdapter); in createView()
56 listView.setOnScrollListener(new OnScrollListener() { in createView()
69 mListView = listView; in createView()
97 final ListView listView = (ListView) mView.findViewById(getListViewResId()); in maybeSetEmptyView() local
98 listView.setEmptyView(emptyView); in maybeSetEmptyView()
/packages/apps/Dialer/java/com/android/incallui/
DConferenceParticipantListAdapter.java57 private final ListView listView; field in ConferenceParticipantListAdapter
99 ListView listView, ContactPhotoManager contactPhotoManager) { in ConferenceParticipantListAdapter() argument
101 this.listView = listView; in ConferenceParticipantListAdapter()
166 return listView.getContext(); in getContext()
176 int first = listView.getFirstVisiblePosition(); in refreshView()
177 int last = listView.getLastVisiblePosition(); in refreshView()
180 View view = listView.getChildAt(position); in refreshView()
183 getView(position + first, view, listView); in refreshView()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DLimitedMultiSelectDialogFragment.java90 final ListView listView = new ListView(getActivity()); in onCreateDialog() local
91 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onCreateDialog()
92 listView.setAdapter(adapter); in onCreateDialog()
93 listView.setOnItemClickListener(new OnItemClickListener() { in onCreateDialog()
121 listView.setItemChecked(j, true); in onCreateDialog()
127 .setView(listView) in onCreateDialog()
/packages/apps/Email/src/com/android/email/activity/
DInsertQuickResponseDialog.java112 final ListView listView = (ListView) quickResponsesView.findViewById(R.id.quick_responses); in onCreateDialog() local
113 listView.setEmptyView(quickResponsesView.findViewById(R.id.quick_responses_empty_view)); in onCreateDialog()
114 listView.setAdapter(adapter); in onCreateDialog()
115 listView.setOnItemClickListener(new OnItemClickListener() { in onCreateDialog()
118 final Cursor c = (Cursor) listView.getItemAtPosition(position); in onCreateDialog()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
DConversationListFragmentTest.java99 final RecyclerView listView = in testLoadListView() local
102 assertEquals(cursor.getCount(), listView.getChildCount()); in testLoadListView()
110 final RecyclerView listView = in testEmptyView() local
115 assertEquals(0, listView.getChildCount()); in testEmptyView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DWordListPreference.java266 final ListView listView = (ListView)parent; in onWordListClicked()
279 indexToOpen = listView.indexOfChild(v); in onWordListClicked()
282 listView.getLastVisiblePosition() - listView.getFirstVisiblePosition(); in onWordListClicked()
285 final ButtonSwitcher buttonSwitcher = (ButtonSwitcher)listView.getChildAt(i) in onWordListClicked()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationLockscreenPreference.java110 ListView listView = ((AlertDialog) dialog).getListView(); in onDialogStateRestored() local
111 int selectedPosition = listView.getCheckedItemPosition(); in onDialogStateRestored()
150 ListView listView = ((AlertDialog) dialog).getListView(); in onClick() local
151 int selectedPosition = listView.getCheckedItemPosition(); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationLockscreenPreference.java110 ListView listView = ((AlertDialog) dialog).getListView(); in onDialogStateRestored() local
111 int selectedPosition = listView.getCheckedItemPosition(); in onDialogStateRestored()
150 ListView listView = ((AlertDialog) dialog).getListView(); in onClick() local
151 int selectedPosition = listView.getCheckedItemPosition(); in onClick()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSettings.java48 ExpandableListView listView = in onCreate() local
52 new BluetoothMapSettingsAdapter(this, listView, mGroups, in onCreate()
54 listView.setAdapter(adapter); in onCreate()
/packages/apps/Dialer/java/com/android/dialer/about/
DLicenseMenuActivity.java54 ListView listView = (ListView) findViewById(R.id.license_list); in onCreate() local
55 listView.setAdapter(listAdapter); in onCreate()
56 listView.setOnItemClickListener( in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java570 private static void align(VerticalGridView listView, Activity activity) {
571 Context context = listView.getContext();
576 listView.setItemSpacing(activity.getResources()
579 listView.setWindowAlignment(VerticalGridView.WINDOW_ALIGN_HIGH_EDGE);
580 listView.setWindowAlignmentOffset(0);
581 listView.setWindowAlignmentOffsetPercent(keyLinePercent);
/packages/apps/DeskClock/src/com/android/deskclock/
DDropShadowController.java77 public DropShadowController(View dropShadowView, ListView listView) { in DropShadowController() argument
79 mListView = listView; in DropShadowController()
81 updateDropShadow(!Utils.isScrolledToTop(listView)); in DropShadowController()

123