Home
last modified time | relevance | path

Searched refs:adapter (Results 1 – 25 of 39) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/view/
DSpinner1.java45 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( in onCreate() local
47 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
48 s1.setAdapter(adapter); in onCreate()
62 adapter = ArrayAdapter.createFromResource(this, R.array.planets, in onCreate()
64 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
65 s2.setAdapter(adapter); in onCreate()
DAutoComplete3.java34 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
39 textView.setAdapter(adapter); in onCreate()
41 textView.setAdapter(adapter); in onCreate()
DControls1.java45 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
47 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
48 s1.setAdapter(adapter); in onCreate()
DAutoComplete2.java34 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
39 textView.setAdapter(adapter); in onCreate()
DAutoComplete1.java33 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
36 textView.setAdapter(adapter); in onCreate()
DList3.java45 SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local
53 adapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() { in onCreate()
72 setListAdapter(adapter); in onCreate()
DAutoComplete6.java33 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
36 textView.setAdapter(adapter); in onCreate()
DSplitTouchView.java43 ListAdapter adapter = new ArrayAdapter<String>(this, in onCreate() local
45 list1.setAdapter(adapter); in onCreate()
46 list2.setAdapter(adapter); in onCreate()
DAutoComplete5.java37 AutoComplete4.ContactListAdapter adapter = in onCreate() local
42 textView.setAdapter(adapter); in onCreate()
DList2.java41 ListAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local
50 setListAdapter(adapter); in onCreate()
DAnimation2.java45 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
47 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
48 s.setAdapter(adapter); in onCreate()
DGallery2.java43 SpinnerAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local
54 g.setAdapter(adapter); in onCreate()
DAnimation3.java46 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
48 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
49 s.setAdapter(adapter); in onCreate()
DList7.java67 ListAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local
76 setListAdapter(adapter); in onCreate()
/development/samples/devbytes/ui/ListViewDeletion/src/com/example/android/listviewdeletion/
DListViewDeletion.java57 final StableArrayAdapter adapter = new StableArrayAdapter(this, in onCreate() local
59 listview.setAdapter(adapter); in onCreate()
74 final String item = adapter.getItem(position); in onCreate()
81 adapter.remove(item); in onCreate()
101 adapter.remove(item); in onCreate()
110 adapter.remove(item); in onCreate()
132 adapter.notifyDataSetChanged(); in onCreate()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiChatFragment.java28 ChatMessageAdapter adapter = null; field in WiFiChatFragment
37 adapter = new ChatMessageAdapter(getActivity(), android.R.id.text1, in onCreateView()
39 listView.setAdapter(adapter); in onCreateView()
66 adapter.add(readMessage); in pushMessage()
67 adapter.notifyDataSetChanged(); in pushMessage()
/development/apps/GestureBuilder/src/com/android/gesture/builder/
DGestureBuilderActivity.java276 final GesturesAdapter adapter = mAdapter; in changeGestureName() local
277 final int count = adapter.getCount(); in changeGestureName()
282 final NamedGesture gesture = adapter.getItem(i); in changeGestureName()
291 adapter.notifyDataSetChanged(); in changeGestureName()
308 final GesturesAdapter adapter = mAdapter; in deleteGesture() local
309 adapter.setNotifyOnChange(false); in deleteGesture()
310 adapter.remove(gesture); in deleteGesture()
311 adapter.sort(mSorter); in deleteGesture()
313 adapter.notifyDataSetChanged(); in deleteGesture()
374 final GesturesAdapter adapter = mAdapter; in onProgressUpdate() local
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DSoftInputModes.java50 ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(this, in onCreate() local
52 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
53 mResizeMode.setAdapter(adapter); in onCreate()
DScreenOrientation.java57 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( in onCreate() local
59 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
60 mOrientation.setAdapter(adapter); in onCreate()
DSearchInvoke.java72 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( in onCreate() local
74 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
75 mMenuMode.setAdapter(adapter); in onCreate()
DMenuInflateFromXml.java83 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local
85 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
90 mSpinner.setAdapter(adapter); in onCreate()
/development/samples/devbytes/animation/ListViewAnimations/src/com/example/android/listviewanimations/
DListViewAnimations.java56 final StableArrayAdapter adapter = new StableArrayAdapter(this, in onCreate() local
58 listview.setAdapter(adapter); in onCreate()
71 adapter.notifyDataSetChanged(); in onCreate()
94 adapter.notifyDataSetChanged(); in onCreate()
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java108 ArrayAdapter<String> adapter; in onCreate() local
109 adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item); in onCreate()
110 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
114 adapter.add(ContactsContract.CommonDataKinds.Phone.getTypeLabel( in onCreate()
119 mContactPhoneTypeSpinner.setAdapter(adapter); in onCreate()
123 adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item); in onCreate()
124 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in onCreate()
127 adapter.add(ContactsContract.CommonDataKinds.Email.getTypeLabel( in onCreate()
132 mContactEmailTypeSpinner.setAdapter(adapter); in onCreate()
DContactManager.java91 SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.contact_entry, cursor, in populateContactList() local
93 mContactList.setAdapter(adapter); in populateContactList()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DAdapters.java410 XmlCursorAdapter adapter = (XmlCursorAdapter) loadAdapter(context, id, ADAPTER_CURSOR, in loadCursorAdapter() local
414 adapter.setUri(uri); in loadCursorAdapter()
416 adapter.load(); in loadCursorAdapter()
418 return adapter; in loadCursorAdapter()
448 XmlCursorAdapter adapter = (XmlCursorAdapter) loadAdapter(context, id, ADAPTER_CURSOR, in loadCursorAdapter() local
452 adapter.changeCursor(cursor); in loadCursorAdapter()
455 return adapter; in loadCursorAdapter()
478 final BaseAdapter adapter = loadAdapter(context, id, null, parameters); in loadAdapter() local
479 if (adapter instanceof ManagedAdapter) { in loadAdapter()
480 ((ManagedAdapter) adapter).load(); in loadAdapter()
[all …]

12