/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/ |
D | SwipeRefreshListFragment.java | 136 final ListView listView = getListView(); in canChildScrollUp() local 137 if (listView.getVisibility() == View.VISIBLE) { in canChildScrollUp() 138 return canListViewScrollUp(listView); in canChildScrollUp() 152 private static boolean canListViewScrollUp(ListView listView) { in canListViewScrollUp() argument 155 return ViewCompat.canScrollVertically(listView, -1); in canListViewScrollUp() 159 return listView.getChildCount() > 0 && in canListViewScrollUp() 160 (listView.getFirstVisiblePosition() > 0 in canListViewScrollUp() 161 || listView.getChildAt(0).getTop() < listView.getPaddingTop()); in canListViewScrollUp()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.swiperefreshmultipleviews/ |
D | MultiSwipeRefreshLayout.java | 96 final AbsListView listView = (AbsListView) view; in canViewScrollUp() local 97 return listView.getChildCount() > 0 && in canViewScrollUp() 98 (listView.getFirstVisiblePosition() > 0 in canViewScrollUp() 99 || listView.getChildAt(0).getTop() < listView.getPaddingTop()); in canViewScrollUp()
|
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
D | ListViewDraggingAnimation.java | 46 DynamicListView listView = (DynamicListView) findViewById(R.id.listview); in onCreate() local 48 listView.setCheeseList(mCheeseList); in onCreate() 49 listView.setAdapter(adapter); in onCreate() 50 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in onCreate()
|
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ |
D | SpeedPickerActivity.java | 47 WearableListView listView = (WearableListView) findViewById(R.id.wearable_list); in onCreate() local 50 listView.setAdapter(new SpeedPickerListAdapter(this, speeds)); in onCreate() 53 listView.setClickListener(this); in onCreate() 55 listView.addOnScrollListener(new WearableListView.OnScrollListener() { in onCreate()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | List10.java | 38 final ListView listView = getListView(); in onCreate() local 40 listView.setItemsCanFocus(false); in onCreate() 41 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in onCreate()
|
D | List11.java | 38 final ListView listView = getListView(); in onCreate() local 40 listView.setItemsCanFocus(false); in onCreate() 41 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onCreate()
|
D | Focus1.java | 42 ListView listView = (ListView) findViewById(R.id.rssListView); in onCreate() local 43 listView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
|
D | LayoutAnimation2.java | 51 ListView listView = getListView(); in onCreate() local 52 listView.setLayoutAnimation(controller); in onCreate()
|
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
D | MainActivity.java | 41 WearableListView listView = (WearableListView) findViewById(R.id.list); in onCreate() local 42 listView.setAdapter(new Adapter(this)); in onCreate() 43 listView.setClickListener(this); in onCreate()
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiChatFragment.java | 27 private ListView listView; field in WiFiChatFragment 36 listView = (ListView) view.findViewById(android.R.id.list); in onCreateView() 39 listView.setAdapter(adapter); in onCreateView()
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | TitlesFragment.java | 217 ListView listView = getListView(); 218 FrameLayout.LayoutParams params = (LayoutParams) listView.getLayoutParams(); 222 listView.setLayoutParams(params); 227 listView.setLayoutParams(params);
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceWearableConfigActivity.java | 60 WearableListView listView = (WearableListView) findViewById(R.id.color_picker); in onCreate() local 77 listView.setHasFixedSize(true); in onCreate() 78 listView.setClickListener(this); in onCreate() 79 listView.addOnScrollListener(this); in onCreate() 82 listView.setAdapter(new ColorListAdapter(colors)); in onCreate()
|
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/ |
D | MainActivity.java | 72 ListView listView = (ListView) findViewById(android.R.id.list); in onCreate() local 73 listView.setEmptyView(findViewById(android.R.id.empty)); in onCreate() 88 listView.setAdapter(mAdapter); in onCreate()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | BrowseFragment.java | 131 ListView listView = (ListView) rootView.findViewById(R.id.list_view); in onCreateView() local 132 listView.setAdapter(mBrowserAdapter); in onCreateView() 133 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { in onCreateView()
|
/development/samples/browseable/ActionBarCompat-ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/ |
D | PopupListFragment.java | 52 public void onListItemClick(ListView listView, View v, int position, long id) { in onListItemClick() argument 53 String item = (String) listView.getItemAtPosition(position); in onListItemClick()
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
D | EntryListFragment.java | 271 public void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument 272 super.onListItemClick(listView, view, position, id); in onListItemClick()
|
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
D | MainActivity.java | 78 protected void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument
|
/development/apps/Development/src/com/android/development/ |
D | PermissionDetails.java | 148 ListView listView = (ListView)findViewById(android.R.id.list); in createAppList() local 154 listView.setAdapter(mAdapter); in createAppList()
|