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

1 2 3 4 5

  /frameworks/base/core/tests/coretests/src/android/widget/listview/
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);
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,
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ListViewTest.java 31 import android.widget.ListView;
40 private ListView listView;
48 listView = new ListView(null);
53 listView.setAdapter(new CountingAdapter(1));
56 listView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
67 listView.setSelection(0);
74 listView.setAdapter(new CountingAdapter(1));
76 listView.addHeaderView(new View(null))
    [all...]
ListActivityTest.java 6 import android.widget.ListView;
35 protected void onListItemClick(ListView l, View v, int position, long id) {
39 listActivity.setContentView(new ListView(null));
49 final ListView listView = new ListView(null);
50 listActivity.setContentView(listView);
52 assertThat(listView.getAdapter(), sameInstance(adapter));
  /development/samples/ApiDemos/src/com/example/android/apis/view/
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);
Focus1.java 24 import android.widget.ListView;
42 ListView listView = (ListView) findViewById(R.id.rssListView);
43 listView.setAdapter(new ArrayAdapter<String>(this,
LayoutAnimation2.java 27 import android.widget.ListView;
51 ListView listView = getListView();
52 listView.setLayoutAnimation(controller);
  /development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
ListViewDraggingAnimation.java 21 import android.widget.ListView;
26 * This application creates a listview where the ordering of the data set
29 * An item in the listview is selected via a long press event and is then
31 * When the item is released, it animates to its new position within the listview.
46 DynamicListView listView = (DynamicListView) findViewById(R.id.listview);
48 listView.setCheeseList(mCheeseList);
49 listView.setAdapter(adapter);
50 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
PinnedHeaderListAdapter.java 94 public void configurePinnedHeaders(PinnedHeaderListView listView) {
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.setHeaderPinnedAtBottom(i, listHeight - bottomHeaderHeight, false)
    [all...]
IndexerListAdapter.java 21 import android.widget.ListView;
42 private int position = ListView.INVALID_POSITION;
48 position = ListView.INVALID_POSITION;
161 public void configurePinnedHeaders(PinnedHeaderListView listView) {
162 super.configurePinnedHeaders(listView);
170 listView.setHeaderInvisible(index, false);
172 int listPosition = listView.getPositionAt(listView.getTotalTopPinnedHeaderHeight());
173 int position = listPosition - listView.getHeaderViewsCount();
185 listView.setHeaderInvisible(index, false)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowListActivity.java 8 import android.widget.ListView;
22 private ListView listView;
26 public ListView getListView() {
27 if (listView == null) {
28 if ((listView = findListView(getContentView())) == null) {
29 throw new RuntimeException("No ListView found under content view");
32 return listView;
35 public void setListView(ListView view) {
36 listView = view
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
SelectPopupDialog.java 15 import android.widget.ListView;
45 final ListView listView = new ListView(mContext);
46 listView.setCacheColorHint(0);
48 .setView(listView)
56 mContentViewCore.selectPopupMenuItems(getSelectedIndices(listView));
70 listView.setAdapter(adapter);
71 listView.setFocusableInTouchMode(true);
74 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE)
    [all...]
  /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...]
  /cts/tests/tests/widget/src/android/widget/cts/
AbsListViewTest.java 48 import android.widget.ListView;
65 private ListView mListView;
101 mListView = (ListView)mActivity.findViewById(R.id.listview_default);
379 MyListView listView = new MyListView(mActivity);
380 listView.dispatchDraw(canvas);
427 MyListView listView = new MyListView(mActivity);
430 assertTrue(listView.checkLayoutParams(param1));
433 assertFalse(listView.checkLayoutParams(param2));
437 MyListView listView = new MyListView(mActivity);
438 assertEquals(0, listView.computeVerticalScrollRange())
    [all...]
ListViewTest.java 44 import android.widget.ListView;
63 private ListView mListView;
90 mListView = (ListView) mActivity.findViewById(R.id.listview_default);
94 new ListView(mActivity);
95 new ListView(mActivity, mAttributeSet);
96 new ListView(mActivity, mAttributeSet, 0);
99 new ListView(null);
106 new ListView(null, null);
113 new ListView(null, null, -1);
210 mListView.setChoiceMode(ListView.CHOICE_MODE_NONE)
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/
BackScrollManager.java 21 import android.widget.ListView;
39 private final ListView mListView;
73 public static void bind(ScrollableHeader header, ListView listView) {
74 BackScrollManager backScrollManager = new BackScrollManager(header, listView);
78 private BackScrollManager(ScrollableHeader header, ListView listView) {
80 mListView = listView;
  /packages/providers/MediaProvider/src/com/android/providers/media/
RingtonePickerActivity.java 32 import android.widget.ListView;
191 public void onPrepareListView(ListView listView) {
194 mDefaultRingtonePos = addDefaultRingtoneItem(listView);
202 mSilentPos = addSilentItem(listView);
222 * @param listView The ListView to add to.
226 private int addStaticItem(ListView listView, int textResId) {
228 com.android.internal.R.layout.select_dialog_singlechoice_holo, listView, false)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/list/
ContactNameHighlightingAnimation.java 19 import android.widget.ListView;
29 private final ListView mListView;
32 public ContactNameHighlightingAnimation(ListView listView, int duration) {
34 this.mListView = listView;
  /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/Email/src/com/android/email/activity/setup/
AccountSettingsEditQuickResponsesFragment.java 40 import android.widget.ListView;
83 final ListView listView = UiUtilities.getView(getView(),
85 listView.setAdapter(adapter);
127 final ListView listView = UiUtilities.getView(view,
130 UiUtilities.getView((ViewGroup) listView.getParent(), R.id.empty_view);
131 listView.setEmptyView(emptyView);
132 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
135 final Cursor c = (Cursor) listView.getItemAtPosition(position)
    [all...]
  /external/droiddriver/samples/testapp/src/com/google/android/apps/common/testing/ui/testapp/
LongListActivity.java 10 import android.widget.ListView;
33 ListView listView = (ListView) findViewById(R.id.list);
37 listView.setAdapter(new SimpleAdapter(this, data, R.layout.list_item, from, to));
38 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
AbstractTestListActivity.java 24 import android.widget.ListView;
63 /** Launch the activity when its {@link ListView} item is clicked. */
65 protected void onListItemClick(ListView listView, View view, int position, long id) {
66 super.onListItemClick(listView, view, position, id);
  /cts/tests/src/android/widget/cts/util/
ListUtil.java 21 import android.widget.ListView;
24 * Various useful stuff for instrumentation testing listview.
28 private final ListView mListView;
32 * @param listView The listview to act on
35 public ListUtil(ListView listView, Instrumentation instrumentation) {
36 mListView = listView;
  /cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityEndToEndActivity.java 27 import android.widget.ListView;
66 ListView listView = (ListView) findViewById(R.id.listview);
67 listView.setAdapter(listAdapter);

Completed in 1397 milliseconds

1 2 3 4 5