/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
DialogListActivity.java | 22 import android.widget.ListView; 29 ListView listView = new ListView(this); 30 listView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, 35 builder.setView(listView);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
ListViewActivity.java | 25 import android.widget.ListView; 39 ListView listView = findViewById(R.id.list_view); 40 listView.setAdapter(new BaseAdapter() {
|
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/ |
TimeZonePickerActivity.java | 39 PagedListView listView = (PagedListView) findViewById(android.R.id.list); 40 listView.setDefaultItemDecoration(new NoDividerItemDecoration(this /* context */)); 41 listView.setDarkMode(); 44 listView.setAdapter(adapter);
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityEndToEndActivity.java | 26 import android.widget.ListView; 65 ListView listView = (ListView) findViewById(R.id.listview); 66 listView.setAdapter(listAdapter);
|
/developers/build/prebuilts/gradle/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ |
SpeedPickerActivity.java | 47 WearableListView listView = (WearableListView) findViewById(R.id.wearable_list); 50 listView.setAdapter(new SpeedPickerListAdapter(this, speeds)); 53 listView.setClickListener(this); 55 listView.addOnScrollListener(new WearableListView.OnScrollListener() {
|
/developers/samples/android/wearable/wear/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ |
SpeedPickerActivity.java | 47 WearableListView listView = (WearableListView) findViewById(R.id.wearable_list); 50 listView.setAdapter(new SpeedPickerListAdapter(this, speeds)); 53 listView.setClickListener(this); 55 listView.addOnScrollListener(new WearableListView.OnScrollListener() {
|
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ |
SpeedPickerActivity.java | 47 WearableListView listView = (WearableListView) findViewById(R.id.wearable_list); 50 listView.setAdapter(new SpeedPickerListAdapter(this, speeds)); 53 listView.setClickListener(this); 55 listView.addOnScrollListener(new WearableListView.OnScrollListener() {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/ |
ListPresentation.java | 24 import android.widget.ListView; 56 ListView listView = (ListView) view.findViewById(R.id.pla_list); 58 listView.setAdapter(new ArrayAdapter<String>(getContext(),
|
/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);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListRecyclerProfiling.java | 17 package android.widget.listview; 22 import android.widget.ListView; 41 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);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
ViewUtil.java | 24 import android.widget.ListView; 114 * Adds padding to the bottom of the given {@link ListView} so that the floating action button 117 * @param listView to add the padding to 120 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { 123 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), 124 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding) [all...] |
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
ViewUtil.java | 26 import android.widget.ListView; 81 * Adds padding to the bottom of the given {@link ListView} so that the floating action button 84 * @param listView to add the padding to 87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { 90 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), 91 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
LimitedMultiSelectDialogFragment.java | 38 import android.widget.ListView; 90 final ListView listView = new ListView(getActivity()); 91 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 92 listView.setAdapter(adapter); 93 listView.setOnItemClickListener(new OnItemClickListener() { 121 listView.setItemChecked(j, true); 127 .setView(listView) [all...] |
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
UiAutomationTestFirstActivity.java | 25 import android.widget.ListView; 44 ListView listView = (ListView) findViewById(R.id.list_view); 45 listView.setAdapter(cheeseAdapter);
|
UiAutomationTestSecondActivity.java | 24 import android.widget.ListView; 43 ListView listView = (ListView) findViewById(R.id.list_view); 44 listView.setAdapter(cheeseAdapter);
|
/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...] |
/external/robolectric/v1/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...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/listview/ |
FadingEdgeListFragment.java | 16 package com.android.test.uibench.listview; 20 import android.widget.ListView; 26 ListView listView = getListView(); 27 listView.setVerticalFadingEdgeEnabled(true); 28 listView.setFadingEdgeLength(500);
|
/developers/build/prebuilts/gradle/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
MainActivity.java | 41 WearableListView listView = (WearableListView) findViewById(R.id.list); 42 listView.setAdapter(new Adapter(this)); 43 listView.setClickListener(this);
|
/developers/samples/android/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
MainActivity.java | 41 WearableListView listView = (WearableListView) findViewById(R.id.list); 42 listView.setAdapter(new Adapter(this)); 43 listView.setClickListener(this);
|
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
MainActivity.java | 41 WearableListView listView = (WearableListView) findViewById(R.id.list); 42 listView.setAdapter(new Adapter(this)); 43 listView.setClickListener(this);
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
ListViewTest.java | 32 import android.widget.ListView; 40 * If a view in a ListView requests a layout it should be remeasured. 45 ListView listView = new ListView(context); 48 listView.setAdapter(adapter); 53 listView.measure(measureSpec, measureSpec); 54 listView.layout(0, 0, 100, 100); 56 MockView childView = (MockView) listView.getChildAt(0); 60 listView.measure(measureSpec, measureSpec) [all...] |