/development/samples/ApiDemos/src/com/example/android/apis/view/ |
SearchViewFilterMode.java | 26 import android.widget.ListView; 38 private ListView mListView; 51 mListView = (ListView) findViewById(R.id.list_view);
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
MyRssReader.java | 23 import android.widget.ListView; 37 // Load some simple values into the ListView 38 mRssList = (ListView) findViewById(R.id.rssListView); 48 // We'd like to store the current ListView selection. 106 ListView mRssList;
|
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/ |
HeadlinesFragment.java | 23 import android.widget.ListView; 50 // When in two-pane layout, set the listview to highlight the selected list item 51 // (We do this during onStart because at the point the listview is available.) 53 getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); 72 public void onListItemClick(ListView l, View v, int position, long id) {
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
HeadlinesFragment.java | 25 import android.widget.ListView; 119 getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); 122 getListView().setChoiceMode(ListView.CHOICE_MODE_NONE);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
ListUtil.java | 21 import android.widget.ListView; 25 * Various useful stuff for instrumentation testing listview. 30 private final ListView mListView; 34 * @param listView The listview to act on 37 public ListUtil(ListView listView, Instrumentation instrumentation) { 38 mListView = listView;
|
/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,
|
ListViewHeightTest.java | 17 package android.widget.listview; 23 import android.widget.ListView; 26 import android.widget.listview.ListViewHeight; 56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
ViewLayersActivity3.java | 27 import android.widget.ListView; 42 final ListView list = (ListView) findViewById(listId);
|
ListActivity.java | 29 import android.widget.ListView; 85 final ListView list = (ListView) findViewById(R.id.list);
|
TransparentListActivity.java | 29 import android.widget.ListView; 87 ListView list = (ListView) findViewById(R.id.list);
|
ViewLayersActivity2.java | 27 import android.widget.ListView; 46 final ListView list = (ListView) findViewById(listId);
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
BitmapView.java | 22 import android.widget.ListView; 30 private ListView mListView; 52 public void setListView(final ListView listView) { 53 mListView = listView;
|
/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...] |
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/ |
MainActivity.java | 14 import android.widget.ListView; 47 ListView lv = (ListView) findViewById(android.R.id.list); 59 ListView lv = (ListView) findViewById(android.R.id.list);
|
/frameworks/support/v4/java/android/support/v4/app/ |
ListFragment.java | 31 import android.widget.ListView; 58 onListItemClick((ListView)parent, v, position, id); 63 ListView mList; 77 * returned view hierarchy <em>must</em> have a ListView whose id 122 ListView lv = new ListView(getActivity()); 167 * @param l The ListView where the click happened 168 * @param v The view that was clicked within the ListView 172 public void onListItemClick(ListView l, View v, int position, long id) { 221 public ListView getListView() [all...] |
/frameworks/base/core/java/android/widget/ |
HeaderViewListAdapter.java | 26 * ListAdapter used when a ListView has header views. This ListAdapter 37 // They are indeed created when declared in ListView and then shared. 38 ArrayList<ListView.FixedViewInfo> mHeaderViewInfos; 39 ArrayList<ListView.FixedViewInfo> mFooterViewInfos; 43 static final ArrayList<ListView.FixedViewInfo> EMPTY_INFO_LIST = 44 new ArrayList<ListView.FixedViewInfo>(); 50 public HeaderViewListAdapter(ArrayList<ListView.FixedViewInfo> headerViewInfos, 51 ArrayList<ListView.FixedViewInfo> footerViewInfos, 85 private boolean areAllListInfosSelectable(ArrayList<ListView.FixedViewInfo> infos) { 87 for (ListView.FixedViewInfo info : infos) [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
SelectPopupDialog.java | 15 import android.widget.ListView; 42 final ListView listView = new ListView(mContext); 43 listView.setCacheColorHint(0); 45 .setView(listView) 53 mContentViewCore.selectPopupMenuItems(getSelectedIndices(listView)); 67 listView.setAdapter(adapter); 68 listView.setFocusableInTouchMode(true); 71 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE) [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceScreen.java | 33 import android.widget.ListView; 93 private ListView mListView; 136 * Binds a {@link ListView} to the preferences contained in this {@link PreferenceScreen} via 140 * @param listView The list view to attach to. 142 public void bind(ListView listView) { 143 listView.setOnItemClickListener(this); 144 listView.setAdapter(getRootAdapter()); 168 mListView = (ListView) childPrefScreen.findViewById(android.R.id.list); 207 if (parent instanceof ListView) { [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
AutoCompleteTextViewPopup.java | 56 waitAssertListSelection(textView, ListView.INVALID_POSITION); 88 waitAssertListSelection(textView, ListView.INVALID_POSITION); 115 waitAssertListSelection(textView, ListView.INVALID_POSITION); 128 waitAssertListSelection("setListSelection(ListView.INVALID_POSITION)", textView, 129 ListView.INVALID_POSITION); 148 waitAssertListSelection(textView, ListView.INVALID_POSITION); 242 int currentSelection = ListView.INVALID_POSITION;
|
/cts/suite/cts/deviceTests/ui/src/com/android/cts/ui/ |
ScrollingActivity.java | 24 import android.widget.ListView; 52 ListView view = getListView(); 66 final ListView view = getListView();
|
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 27 import android.widget.ListView; 118 * <p>To enable 'swipe-to-refresh' support via the {@link android.widget.ListView} we need to 132 * @return true if the {@link android.widget.ListView} is visible and can scroll up. 136 final ListView listView = getListView(); 137 if (listView.getVisibility() == View.VISIBLE) { 138 return canListViewScrollUp(listView); 148 * Utility method to check whether a {@link ListView} can scroll up from it's current position. 152 private static boolean canListViewScrollUp(ListView listView) { [all...] |
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 27 import android.widget.ListView; 118 * <p>To enable 'swipe-to-refresh' support via the {@link android.widget.ListView} we need to 132 * @return true if the {@link android.widget.ListView} is visible and can scroll up. 136 final ListView listView = getListView(); 137 if (listView.getVisibility() == View.VISIBLE) { 138 return canListViewScrollUp(listView); 148 * Utility method to check whether a {@link ListView} can scroll up from it's current position. 152 private static boolean canListViewScrollUp(ListView listView) { [all...] |
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 27 import android.widget.ListView; 118 * <p>To enable 'swipe-to-refresh' support via the {@link android.widget.ListView} we need to 132 * @return true if the {@link android.widget.ListView} is visible and can scroll up. 136 final ListView listView = getListView(); 137 if (listView.getVisibility() == View.VISIBLE) { 138 return canListViewScrollUp(listView); 148 * Utility method to check whether a {@link ListView} can scroll up from it's current position. 152 private static boolean canListViewScrollUp(ListView listView) { [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
AdjacentListsWithAdjacentISVsInsideTest.java | 17 package android.widget.listview.focus; 19 import android.widget.listview.AdjacentListsWithAdjacentISVsInside; 25 import android.widget.ListView; 29 private ListView mLeftListView; 32 private ListView mRightListView;
|
ListButtonsDiagonalAcrossItemsTest.java | 17 package android.widget.listview.focus; 19 import android.widget.listview.ListButtonsDiagonalAcrossItems; 27 import android.widget.ListView; 30 * Test that ListView will override default behavior of focus searching to 38 private ListView mListView; 57 final ListView lv = mListView;
|