HomeSort by relevance Sort by last modified time
    Searched defs:listView (Results 1 - 25 of 44) sorted by null

1 2

  /development/samples/ApiDemos/src/com/example/android/apis/view/
Focus1.java 24 import android.widget.ListView;
42 ListView listView = (ListView) findViewById(R.id.rssListView);
43 listView.setAdapter(new ArrayAdapter<String>(this,
List10.java 22 import android.widget.ListView;
38 final ListView listView = getListView();
40 listView.setItemsCanFocus(false);
41 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
List11.java 22 import android.widget.ListView;
38 final ListView listView = getListView();
40 listView.setItemsCanFocus(false);
41 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
LayoutAnimation2.java 27 import android.widget.ListView;
51 ListView listView = getListView();
52 listView.setLayoutAnimation(controller);
  /frameworks/base/core/tests/coretests/src/android/widget/listview/
ListRecyclerProfiling.java 17 package android.widget.listview;
22 import android.widget.ListView;
41 ListView listView = (ListView) findViewById(R.id.list);
43 ViewDebug.startRecyclerTracing("SimpleList", listView);
45 listView.setAdapter(new ArrayAdapter<String>(this,
ListWithHeaders.java 17 package android.widget.listview;
24 import android.widget.ListView;
39 final ListView listView = getListView();
40 listView.setItemsCanFocus(true);
45 listView.addHeaderView(header);
51 listView.addFooterView(footer);
54 final ListAdapter adapter = listView.getAdapter();
55 listView.setAdapter(adapter);
ListWithDisappearingItemBug.java 17 package android.widget.listview;
31 import android.widget.ListView;
76 ListView listView = getListView();
77 listView.setLayoutAnimation(controller);
  /cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityEndToEndTestActivity.java 28 import android.widget.ListView;
70 ListView listView = (ListView) findViewById(R.id.listview);
71 listView.setAdapter(listAdapter);
AccessibilityEndToEndTest.java 34 import android.widget.ListView;
96 selectedEvent.setClassName(ListView.class.getName());
112 final ListView listView = (ListView) activity.findViewById(R.id.listview);
115 listView.setSelection(1);
  /frameworks/base/core/tests/coretests/src/android/widget/
ListViewTest.java 31 import android.widget.ListView;
38 * If a view in a ListView requests a layout it should be remeasured.
43 ListView listView = new ListView(context);
46 listView.setAdapter(adapter);
51 listView.measure(measureSpec, measureSpec);
52 listView.layout(0, 0, 100, 100);
54 MockView childView = (MockView) listView.getChildAt(0);
58 listView.measure(measureSpec, measureSpec)
    [all...]
  /frameworks/base/core/java/android/content/
SyncActivityTooManyDeletes.java 29 import android.widget.ListView;
73 ListView listView = new ListView(this);
74 listView.setAdapter(adapter);
75 listView.setItemsCanFocus(true);
76 listView.setOnItemClickListener(this);
89 ll.addView(listView, lp);
  /packages/apps/Contacts/src/com/android/contacts/widget/
PinnedHeaderListAdapter.java 90 public void configurePinnedHeaders(PinnedHeaderListView listView) {
105 listView.setHeaderInvisible(i, true);
109 int headerViewsCount = listView.getHeaderViewsCount();
116 int position = listView.getPositionAt(topHeaderHeight) - headerViewsCount;
122 listView.setHeaderPinnedAtTop(i, topHeaderHeight, false);
123 topHeaderHeight += listView.getPinnedHeaderHeight(i);
131 int listHeight = listView.getHeight();
134 int position = listView.getPositionAt(listHeight - bottomHeaderHeight)
145 int height = listView.getPinnedHeaderHeight(i);
151 listView.setHeaderPinnedAtBottom(i, listHeight - bottomHeaderHeight, animate)
    [all...]
IndexerListAdapter.java 21 import android.widget.ListView;
42 private int position = ListView.INVALID_POSITION;
48 position = ListView.INVALID_POSITION;
160 public void configurePinnedHeaders(PinnedHeaderListView listView) {
161 super.configurePinnedHeaders(listView);
169 listView.setHeaderInvisible(index, false);
171 int listPosition = listView.getPositionAt(listView.getTotalTopPinnedHeaderHeight());
172 int position = listPosition - listView.getHeaderViewsCount();
184 listView.setHeaderInvisible(index, false)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
AbsListViewTest.java 49 import android.widget.ListView;
65 private ListView mListView;
80 "ListView to test")
96 mListView = (ListView)mActivity.findViewById(R.id.listview_default);
537 MyListView listView = new MyListView(mActivity);
538 listView.dispatchDraw(canvas);
631 MyListView listView = new MyListView(mActivity);
634 assertTrue(listView.checkLayoutParams(param1));
637 assertFalse(listView.checkLayoutParams(param2));
658 MyListView listView = new MyListView(mActivity)
    [all...]
ListViewTest.java 48 import android.widget.ListView;
56 @TestTargetClass(ListView.class)
66 private ListView mListView;
93 mListView = (ListView) mActivity.findViewById(R.id.listview_default);
99 method = "ListView",
104 method = "ListView",
109 method = "ListView",
115 new ListView(mActivity);
116 new ListView(mActivity, mAttributeSet);
117 new ListView(mActivity, mAttributeSet, 0)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
GroupMembershipView.java 43 import android.widget.ListView;
256 ListView listView = mPopup.getListView();
257 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
260 listView.setItemChecked(i, mAdapter.getItem(i).isChecked());
263 listView.setOnItemClickListener(this);
277 ListView list = (ListView) parent;
  /packages/apps/Email/src/com/android/email/activity/
ShortcutPickerFragment.java 37 import android.widget.ListView;
99 ListView listView = getListView();
100 listView.setOnItemClickListener(this);
101 listView.setItemsCanFocus(false);
  /development/apps/Development/src/com/android/development/
PermissionDetails.java 49 import android.widget.ListView;
122 // by ListView is null.
148 ListView listView = (ListView)findViewById(android.R.id.list);
150 ListView lv= (ListView) findViewById(android.R.id.list);
154 listView.setAdapter(mAdapter);
  /frameworks/base/core/java/android/preference/
PreferenceScreen.java 33 import android.widget.ListView;
86 private ListView mListView;
129 * Binds a {@link ListView} to the preferences contained in this {@link PreferenceScreen} via
133 * @param listView The list view to attach to.
135 public void bind(ListView listView) {
136 listView.setOnItemClickListener(this);
137 listView.setAdapter(getRootAdapter());
156 mListView = new ListView(context);
195 if (parent instanceof ListView) {
    [all...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastListActivity.java 35 import android.widget.ListView;
63 ListView listView = getListView();
64 listView.setOnCreateContextMenuListener(mOnCreateContextMenuListener);
148 protected void onListItemClick(ListView l, View v, int position, long id) {
  /packages/apps/Mms/src/com/android/mms/ui/
SearchActivity.java 49 import android.widget.ListView;
274 final ListView listView = getListView();
275 listView.setItemsCanFocus(true);
276 listView.setFocusable(true);
277 listView.setClickable(true);
350 // ListView seems to want to reject the setFocusable until such time
353 listView.setFocusable(true);
354 listView.setFocusableInTouchMode(true);
355 listView.requestFocus()
    [all...]
  /packages/apps/Settings/tests/src/com/android/settings/tests/
BluetoothRequestPermissionTest.java 32 import android.widget.ListView;
86 ListView listView = (ListView) findViewById(R.id.msg_container);
87 listView.setAdapter(mMsgAdapter);
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
MiscFilesHandler.java 39 import android.widget.ListView;
68 ListView lv = getListView();
70 lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);
75 private class ModeCallback implements ListView.MultiChoiceModeListener {
95 ListView lv = getListView();
166 ListView lv = getListView();
255 final ListView listView = (ListView) parent;
261 listView.setItemChecked(listPosition, isChecked)
    [all...]
  /cts/tests/src/android/widget/cts/util/
ListScenario.java 35 import android.widget.ListView;
47 private ListView mListView;
79 public ListView getListView() {
408 * Returns the LinearLayout containing the ListView in this scenario.
410 * @return The LinearLayout in which the ListView is held.
430 * @return The newly created ListView widget.
432 protected ListView createListView() {
433 return new ListView(this);
444 * Sets an adapter on a ListView.
446 * @param listView The ListView to set the adapter on
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
ListScenario.java 29 import android.widget.ListView;
46 private ListView mListView;
78 public ListView getListView() {
409 * Returns the LinearLayout containing the ListView in this scenario.
411 * @return The LinearLayout in which the ListView is held.
431 * @return The newly created ListView widget.
433 protected ListView createListView() {
434 return new ListView(this);
445 * Sets an adapter on a ListView.
447 * @param listView The ListView to set the adapter on
    [all...]

Completed in 2154 milliseconds

1 2