Home
last modified time | relevance | path

Searched refs:listView (Results 1 – 18 of 18) sorted by relevance

/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/
DSwipeRefreshListFragment.java136 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/
DMultiSwipeRefreshLayout.java96 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/
DListViewDraggingAnimation.java46 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/
DSpeedPickerActivity.java47 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/
DList10.java38 final ListView listView = getListView(); in onCreate() local
40 listView.setItemsCanFocus(false); in onCreate()
41 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); in onCreate()
DList11.java38 final ListView listView = getListView(); in onCreate() local
40 listView.setItemsCanFocus(false); in onCreate()
41 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); in onCreate()
DFocus1.java42 ListView listView = (ListView) findViewById(R.id.rssListView); in onCreate() local
43 listView.setAdapter(new ArrayAdapter<String>(this, in onCreate()
DLayoutAnimation2.java51 ListView listView = getListView(); in onCreate() local
52 listView.setLayoutAnimation(controller); in onCreate()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DMainActivity.java41 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/
DWiFiChatFragment.java27 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/
DTitlesFragment.java217 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/
DDigitalWatchFaceWearableConfigActivity.java60 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/
DMainActivity.java72 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/
DBrowseFragment.java131 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/
DPopupListFragment.java52 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/
DEntryListFragment.java271 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/
DMainActivity.java78 protected void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument
/development/apps/Development/src/com/android/development/
DPermissionDetails.java148 ListView listView = (ListView)findViewById(android.R.id.list); in createAppList() local
154 listView.setAdapter(mAdapter); in createAppList()