/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | Spinner1.java | 45 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()
|
D | AutoComplete3.java | 34 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local 39 textView.setAdapter(adapter); in onCreate() 41 textView.setAdapter(adapter); in onCreate()
|
D | Controls1.java | 45 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()
|
D | AutoComplete2.java | 34 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local 39 textView.setAdapter(adapter); in onCreate()
|
D | AutoComplete1.java | 33 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local 36 textView.setAdapter(adapter); in onCreate()
|
D | List3.java | 45 SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local 53 adapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() { in onCreate() 72 setListAdapter(adapter); in onCreate()
|
D | AutoComplete6.java | 33 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, in onCreate() local 36 textView.setAdapter(adapter); in onCreate()
|
D | SplitTouchView.java | 43 ListAdapter adapter = new ArrayAdapter<String>(this, in onCreate() local 45 list1.setAdapter(adapter); in onCreate() 46 list2.setAdapter(adapter); in onCreate()
|
D | AutoComplete5.java | 37 AutoComplete4.ContactListAdapter adapter = in onCreate() local 42 textView.setAdapter(adapter); in onCreate()
|
D | List2.java | 41 ListAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local 50 setListAdapter(adapter); in onCreate()
|
D | Animation2.java | 45 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()
|
D | Gallery2.java | 43 SpinnerAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local 54 g.setAdapter(adapter); in onCreate()
|
D | Animation3.java | 46 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()
|
D | List7.java | 67 ListAdapter adapter = new SimpleCursorAdapter(this, in onCreate() local 76 setListAdapter(adapter); in onCreate()
|
/development/samples/devbytes/ui/ListViewDeletion/src/com/example/android/listviewdeletion/ |
D | ListViewDeletion.java | 57 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/ |
D | WiFiChatFragment.java | 28 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/ |
D | GestureBuilderActivity.java | 276 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/ |
D | SoftInputModes.java | 50 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()
|
D | ScreenOrientation.java | 57 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()
|
D | SearchInvoke.java | 72 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()
|
D | MenuInflateFromXml.java | 83 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/ |
D | ListViewAnimations.java | 56 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/ |
D | ContactAdder.java | 108 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()
|
D | ContactManager.java | 91 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/ |
D | Adapters.java | 410 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 …]
|