/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/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));
|
/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,
|
ListDividers.java | 17 package android.widget.listview; 22 import android.widget.ListView; 30 private ListView mListView; 43 mListView = (ListView) findViewById(android.R.id.list); 49 public ListView getListView() {
|
ListInHorizontal.java | 17 package android.widget.listview; 25 import android.widget.ListView; 33 private ListView mListView; 46 mListView = (ListView) findViewById(R.id.list); 52 public ListView getListView() {
|
ListInVertical.java | 17 package android.widget.listview; 25 import android.widget.ListView; 33 private ListView mListView; 46 mListView = (ListView) findViewById(R.id.list); 52 public ListView getListView() {
|
/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/ |
HeaderViewListAdapterTest.java | 29 import android.widget.ListView; 44 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(); 45 ArrayList<ListView.FixedViewInfo> footer = new ArrayList<ListView.FixedViewInfo>(5); 55 ListView lv = new ListView(getContext()); 56 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(4); 66 ListView lv = new ListView(getContext()) [all...] |
ViewSwitcherTest.java | 27 import android.widget.ListView; 67 ListView lv1 = new ListView(getContext()); 68 ListView lv2 = new ListView(getContext()); 82 ListView lv1 = new ListView(getContext()); 83 ListView lv2 = new ListView(getContext()); 96 ListView lv3 = new ListView(getContext()) [all...] |
ExpandableListView_ExpandableListContextMenuInfoTest.java | 23 import android.widget.ListView; 31 ListView listview = new ListView(getContext()); local 33 new ExpandableListView.ExpandableListContextMenuInfo(listview, 100L, 80L); 35 assertSame(listview, expandableListContextMenuInfo.targetView);
|
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...] |
/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...] |
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
ListViewAddRemove.java | 28 import android.widget.ListView; 51 final ListView listview = (ListView) findViewById(R.id.listview); local 57 listview.setAdapter(adapter); 63 System.out.println("onLayoutListener: listview view tops: "); 64 for (int i = 0; i < listview.getChildCount(); ++i) { 65 TextView view = (TextView) listview.getChildAt(i); 71 final Scene mySceneChanger = new Scene(listview); [all...] |
ListViewAddRemoveNoTransition.java | 25 import android.widget.ListView; 44 final ListView listview = (ListView) findViewById(R.id.listview); local 50 listview.setAdapter(adapter); 52 listview.setOnItemClickListener(new AdapterView.OnItemClickListener() { 57 for (int i = 0; i < listview.getChildCount(); ++i) { 58 TextView v = (TextView) listview.getChildAt(i); 68 for (int i = 0; i < listview.getChildCount(); ++i) [all...] |
/frameworks/base/tests/TransitionTests/res/layout/ |
list_view_add_remove.xml | 9 <ListView 12 android:id="@+id/listview"/>
|
/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,
|
/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...] |
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
TestListFragment.java | 23 import android.widget.ListView; 30 private int mActivatedPosition = ListView.INVALID_POSITION; 78 public void onListItemClick(ListView listView, View view, int position, long id) { 79 super.onListItemClick(listView, view, position, id); 86 if (mActivatedPosition != ListView.INVALID_POSITION) { 93 activateOnItemClick ? ListView.CHOICE_MODE_SINGLE : ListView.CHOICE_MODE_NONE); 97 if (position == ListView.INVALID_POSITION) {
|
/external/chromium-trace/trace-viewer/src/ui/ |
list_view_test.js | 10 var ListView = ui.ListView; 13 var view = new ListView(); 21 var view = new ListView(); 34 var view = new 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);
|
/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() {
|