/external/robolectric/v1/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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
ContactListViewUtils.java | 8 import android.widget.ListView; 18 private static void addPaddingToView(ListView listView, int parentWidth, 24 listView.setPadding( 26 listView.getPaddingTop(), 28 listView.getPaddingBottom()); 29 // The EdgeEffect and ScrollBar need to span to the edge of the ListView's padding. 30 listView.setClipToPadding(false); 31 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); 36 * Add padding to {@param listView} if this configuration has set both space weight an [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...] |
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,
|
/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...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
HeaderViewListAdapterTest.java | 30 import android.widget.ListView; 48 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(); 49 ArrayList<ListView.FixedViewInfo> footer = new ArrayList<ListView.FixedViewInfo>(5); 59 ListView lv = new ListView(mContext); 60 ArrayList<ListView.FixedViewInfo> header = new ArrayList<ListView.FixedViewInfo>(4); 70 ListView lv = new ListView(mContext) [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);
|
/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/support/compat/gingerbread/android/support/v4/widget/ |
ListViewCompatGingerbread.java | 21 import android.widget.ListView; 24 static void scrollListBy(final ListView listView, int y) { 25 final int firstPosition = listView.getFirstVisiblePosition(); 26 if (firstPosition == ListView.INVALID_POSITION) { 30 final View firstView = listView.getChildAt(0); 36 listView.setSelectionFromTop(firstPosition, newTop);
|
/frameworks/support/compat/java/android/support/v4/widget/ |
ListViewCompat.java | 21 import android.widget.ListView; 24 * Helper for accessing features in {@link ListView} introduced after API level 32 * @param listView the list to scroll 35 public static void scrollListBy(@NonNull ListView listView, int y) { 37 ListViewCompatKitKat.scrollListBy(listView, y); 39 ListViewCompatGingerbread.scrollListBy(listView, y);
|
/development/samples/browseable/CustomChoiceList/ |
_index.jd | 8 This sample demonstrates how to create custom checkable layouts, for use with ListView\'s choiceMode
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
ShowableListMenu.java | 19 import android.widget.ListView; 22 * A list menu which can be shown and hidden and which is internally represented by a ListView. 32 * @return The internal ListView for the visible menu. 34 public ListView getListView();
|
/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/support/compat/kitkat/android/support/v4/widget/ |
ListViewCompatKitKat.java | 20 import android.widget.ListView; 23 static void scrollListBy(final ListView listView, int y) { 24 listView.scrollListBy(y);
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
ShowableListMenu.java | 19 import android.widget.ListView; 22 * A list menu which can be shown and hidden and which is internally represented by a ListView. 34 * @return The internal ListView for the visible menu. 36 public ListView getListView();
|
/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);
|
/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);
|
/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);
|