blob: 78430aec24b81e84d2fbfe019464ee9c1ff979fc [file] [log] [blame]
Quddus Chong489218c2015-02-26 16:38:46 -08001<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Quddus Chong489218c2015-02-26 16:38:46 -080096<html>
97<head>
98
99
100<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Quddus Chong7af35662015-05-27 16:07:54 -0700101<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
102<meta content="IE=edge" http-equiv="X-UA-Compatible">
Quddus Chong489218c2015-02-26 16:38:46 -0800103
104<link rel="shortcut icon" type="image/x-icon" href="../../../../../../favicon.ico" />
105<title>PickerActions | Android Developers</title>
106
107<!-- STYLESHEETS -->
108<link rel="stylesheet"
109href="http://fonts.googleapis.com/css?family=Roboto+Condensed">
110<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
111 title="roboto">
Quddus Chong7af35662015-05-27 16:07:54 -0700112
113<link href="../../../../../../assets/css/default.css?v=7" rel="stylesheet" type="text/css">
Quddus Chong489218c2015-02-26 16:38:46 -0800114
115
116<!-- FULLSCREEN STYLESHEET -->
117<link href="../../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen"
118type="text/css">
119
120
121<!-- JAVASCRIPT -->
122<script src="http://www.google.com/jsapi" type="text/javascript"></script>
123<script src="../../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script>
124<script type="text/javascript">
125 var toRoot = "../../../../../../";
126 var metaTags = [];
127 var devsite = false;
128</script>
Quddus Chong7af35662015-05-27 16:07:54 -0700129<script src="../../../../../../assets/js/docs.js?v=5" type="text/javascript"></script>
Quddus Chong8408cbe2015-04-17 15:01:16 -0700130
131
Quddus Chong489218c2015-02-26 16:38:46 -0800132
133<script>
134 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
135 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
136 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
137 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
138
139 ga('create', 'UA-5831155-1', 'android.com');
140 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker);
141 ga('send', 'pageview');
142 ga('universal.send', 'pageview'); // Send page view for new tracker.
143</script>
144
145</head>
146
147<body class="gc-documentation
148 develop reference" itemscope itemtype="http://schema.org/Article">
149 <div id="doc-api-level" class="" style="display:none"></div>
150 <a name="top"></a>
151
Quddus Chong489218c2015-02-26 16:38:46 -0800152<a name="top"></a>
153
Quddus Chong8408cbe2015-04-17 15:01:16 -0700154<!-- dialog to prompt lang pref change when loaded from hardcoded URL
155<div id="langMessage" style="display:none">
156 <div>
157 <div class="lang en">
158 <p>You requested a page in English, would you like to proceed with this language setting?</p>
159 </div>
160 <div class="lang es">
161 <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
162 </div>
163 <div class="lang ja">
164 <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
165 </div>
166 <div class="lang ko">
167 <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
168 </div>
169 <div class="lang ru">
170 <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
171 </div>
172 <div class="lang zh-cn">
173 <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
174 </div>
175 <div class="lang zh-tw">
176 <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
177 </div>
178 <a href="#" class="button yes" onclick="return false;">
179 <span class="lang en">Yes</span>
180 <span class="lang es">Sí</span>
181 <span class="lang ja">Yes</span>
182 <span class="lang ko">Yes</span>
183 <span class="lang ru">Yes</span>
184 <span class="lang zh-cn">是的</span>
185 <span class="lang zh-tw">没有</span>
186 </a>
187 <a href="#" class="button" onclick="$('#langMessage').hide();return false;">
188 <span class="lang en">No</span>
189 <span class="lang es">No</span>
190 <span class="lang ja">No</span>
191 <span class="lang ko">No</span>
192 <span class="lang ru">No</span>
193 <span class="lang zh-cn">没有</span>
194 <span class="lang zh-tw">没有</span>
195 </a>
196 </div>
197</div> -->
198
199
Quddus Chong489218c2015-02-26 16:38:46 -0800200 <!-- Header -->
201 <div id="header-wrapper">
Quddus Chong7af35662015-05-27 16:07:54 -0700202 <div class="dac-header" id="header">
Quddus Chong489218c2015-02-26 16:38:46 -0800203
204
205
206
Quddus Chong7af35662015-05-27 16:07:54 -0700207 <div class="dac-header-inner">
208 <a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title="Open navigation">
209 <span class="dac-nav-hamburger">
210 <span class="dac-nav-hamburger-top"></span>
211 <span class="dac-nav-hamburger-mid"></span>
212 <span class="dac-nav-hamburger-bot"></span>
213 </span>
214 </a>
215 <a class="dac-header-logo" href="../../../../../../index.html">
216 <img class="dac-header-logo-image" src="../../../../../../assets/images/android_logo.png"
217 srcset="../../../../../../assets/images/android_logo@2x.png 2x"
218 width="32" height="36" alt="Android" /> Developers
Quddus Chong489218c2015-02-26 16:38:46 -0800219 </a>
Quddus Chong7af35662015-05-27 16:07:54 -0700220
221 <ul class="dac-header-crumbs">
222
223 <li class="dac-header-crumbs-item"><span class="dac-header-crumbs-link current ">PickerActions</a></li>
Quddus Chong489218c2015-02-26 16:38:46 -0800224 </ul>
225
226
227
228
Quddus Chong7af35662015-05-27 16:07:54 -0700229 <div class="dac-header-search" id="search-container">
230 <div class="dac-header-search-inner">
231 <div class="dac-sprite dac-search dac-header-search-btn" id="search-btn"></div>
232 <form class="dac-header-search-form" onsubmit="return submit_search()">
Quddus Chong489218c2015-02-26 16:38:46 -0800233 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
234 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
235 onkeydown="return search_changed(event, true, '../../../../../../')"
Quddus Chong7af35662015-05-27 16:07:54 -0700236 onkeyup="return search_changed(event, false, '../../../../../../')"
237 class="dac-header-search-input" placeholder="Search" />
238 <a class="dac-header-search-close hide" id="search-close">close</a>
Quddus Chong489218c2015-02-26 16:38:46 -0800239 </form>
Quddus Chong7af35662015-05-27 16:07:54 -0700240 </div><!-- end dac-header-search-inner -->
241 </div><!-- end dac-header-search -->
Quddus Chong489218c2015-02-26 16:38:46 -0800242
Quddus Chong7af35662015-05-27 16:07:54 -0700243 <div class="search_filtered_wrapper">
Quddus Chong489218c2015-02-26 16:38:46 -0800244 <div class="suggest-card reference no-display">
245 <ul class="search_filtered">
246 </ul>
247 </div>
Quddus Chong489218c2015-02-26 16:38:46 -0800248 <div class="suggest-card develop no-display">
249 <ul class="search_filtered">
250 </ul>
251 <div class="child-card guides no-display">
252 </div>
253 <div class="child-card training no-display">
254 </div>
255 <div class="child-card samples no-display">
256 </div>
257 </div>
258 <div class="suggest-card design no-display">
259 <ul class="search_filtered">
260 </ul>
261 </div>
262 <div class="suggest-card distribute no-display">
263 <ul class="search_filtered">
264 </ul>
265 </div>
266 </div>
Quddus Chong489218c2015-02-26 16:38:46 -0800267
268
269
Quddus Chong7af35662015-05-27 16:07:54 -0700270 <a class="dac-header-console-btn" href="https://play.google.com/apps/publish/">
271 <span class="dac-sprite dac-google-play"></span>
272 <span class="dac-visible-desktop-inline">Developer</span>
273 Console
274 </a>
Quddus Chong489218c2015-02-26 16:38:46 -0800275
Quddus Chong489218c2015-02-26 16:38:46 -0800276 </div><!-- end header-wrap.wrap -->
277 </div><!-- end header -->
278
Quddus Chong489218c2015-02-26 16:38:46 -0800279 <div id="searchResults" class="wrap" style="display:none;">
280 <h2 id="searchTitle">Results</h2>
281 <div id="leftSearchControl" class="search-control">Loading...</div>
282 </div>
283 </div> <!--end header-wrapper -->
284
Quddus Chong489218c2015-02-26 16:38:46 -0800285
Quddus Chong7af35662015-05-27 16:07:54 -0700286 <!-- Navigation-->
287 <nav class="dac-nav">
288 <div class="dac-nav-dimmer" data-dac-toggle-nav></div>
289
290 <ul class="dac-nav-list" data-dac-nav>
291 <li class="dac-nav-item dac-nav-head">
292 <a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation">
293 <img class="dac-logo-image" src="../../../../../../assets/images/android_logo.png"
294 srcset="../../../../../../assets/images/android_logo@2x.png 2x"
295 width="32" height="36" alt="Android" /> Developers
296 </a>
297 </li>
298 <li class="dac-nav-item home">
299 <a class="dac-nav-link dac-visible-mobile-block" href="../../../../../../index.html">Home</a>
300 <ul class="dac-nav-secondary about">
301 <li class="dac-nav-item about">
302 <a class="dac-nav-link" href="../../../../../../about/index.html">Android</a>
303 </li>
304 <li class="dac-nav-item wear">
305 <a class="dac-nav-link" href="../../../../../../wear/index.html">Wear</a>
306 </li>
307 <li class="dac-nav-item tv">
308 <a class="dac-nav-link" href="../../../../../../tv/index.html">TV</a>
309 </li>
310 <li class="dac-nav-item auto">
311 <a class="dac-nav-link" href="../../../../../../auto/index.html">Auto</a>
312 </li>
313 </ul>
314 </li>
315 <li class="dac-nav-item design">
316 <a class="dac-nav-link" href="../../../../../../design/index.html"
317 zh-tw-lang="設計"
318 zh-cn-lang="设计"
319 ru-lang="Проектирование"
320 ko-lang="디자인"
321 ja-lang="設計"
322 es-lang="Diseñar">Design</a>
323 </li>
324 <li class="dac-nav-item develop">
325 <a class="dac-nav-link" href="../../../../../../develop/index.html"
326 zh-tw-lang="開發"
327 zh-cn-lang="开发"
328 ru-lang="Разработка"
329 ko-lang="개발"
330 ja-lang="開発"
331 es-lang="Desarrollar">Develop</a>
332 <ul class="dac-nav-secondary develop">
333 <li class="dac-nav-item training">
334 <a class="dac-nav-link" href="../../../../../../training/index.html"
335 zh-tw-lang="訓練課程"
336 zh-cn-lang="培训"
337 ru-lang="Курсы"
338 ko-lang="교육"
339 ja-lang="トレーニング"
340 es-lang="Capacitación">Training</a>
341 </li>
342 <li class="dac-nav-item guide">
343 <a class="dac-nav-link" href="../../../../../../guide/index.html"
344 zh-tw-lang="API 指南"
345 zh-cn-lang="API 指南"
346 ru-lang="Руководства по API"
347 ko-lang="API 가이드"
348 ja-lang="API ガイド"
349 es-lang="Guías de la API">API Guides</a>
350 </li>
351 <li class="dac-nav-item reference">
352 <a class="dac-nav-link" href="../../../../../../reference/packages.html"
353 zh-tw-lang="參考資源"
354 zh-cn-lang="参考"
355 ru-lang="Справочник"
356 ko-lang="참조문서"
357 ja-lang="リファレンス"
358 es-lang="Referencia">Reference</a>
359 </li>
360 <li class="dac-nav-item tools">
361 <a class="dac-nav-link" href="../../../../../../sdk/index.html"
362 zh-tw-lang="相關工具"
363 zh-cn-lang="工具"
364 ru-lang="Инструменты"
365 ko-lang="도구"
366 ja-lang="ツール"
367 es-lang="Herramientas">Tools</a></li>
368 <li class="dac-nav-item google">
369 <a class="dac-nav-link" href="../../../../../../google/index.html">Google Services</a>
370 </li>
371
372 <li class="dac-nav-item preview">
373 <a class="dac-nav-link" href="../../../../../../preview/index.html">Preview</a>
374 </li>
375 </ul>
376 </li>
377 <li class="dac-nav-item distribute">
378 <a class="dac-nav-link" href="../../../../../../distribute/index.html"
379 zh-tw-lang="發佈"
380 zh-cn-lang="分发"
381 ru-lang="Распространение"
382 ko-lang="배포"
383 ja-lang="配布"
384 es-lang="Distribuir">Distribute</a>
385 <ul class="dac-nav-secondary distribute">
386 <li class="dac-nav-item googleplay">
387 <a class="dac-nav-link" href="../../../../../../distribute/googleplay/index.html">Google Play</a></li>
388 <li class="dac-nav-item essentials">
389 <a class="dac-nav-link" href="../../../../../../distribute/essentials/index.html">Essentials</a></li>
390 <li class="dac-nav-item users">
391 <a class="dac-nav-link" href="../../../../../../distribute/users/index.html">Get Users</a></li>
392 <li class="dac-nav-item engage">
393 <a class="dac-nav-link" href="../../../../../../distribute/engage/index.html">Engage &amp; Retain</a></li>
394 <li class="dac-nav-item monetize">
395 <a class="dac-nav-link" href="../../../../../../distribute/monetize/index.html">Earn</a>
396 </li>
397 <li class="dac-nav-item analyze">
398 <a class="dac-nav-link" href="../../../../../../distribute/analyze/index.html">Analyze</a>
399 </li>
400 <li class="dac-nav-item stories">
401 <a class="dac-nav-link" href="../../../../../../distribute/stories/index.html">Stories</a>
402 </li>
403 </ul>
404 </li>
405 </ul>
406 </nav>
407 <!-- end navigation-->
Quddus Chong489218c2015-02-26 16:38:46 -0800408
409
410
411
412
Quddus Chong7af35662015-05-27 16:07:54 -0700413
414 <div class="wrap clearfix" id="body-content"><div class="cols">
415 <div class="col-4 dac-hidden-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
Quddus Chong489218c2015-02-26 16:38:46 -0800416 <div id="devdoc-nav">
417 <div id="api-nav-header">
418 <div id="api-level-toggle">
419 <label for="apiLevelCheckbox" class="disabled"
420 title="Select your target API level to dim unavailable APIs">API level: </label>
421 <div class="select-wrapper">
422 <select id="apiLevelSelector">
423 <!-- option elements added by buildApiLevelSelector() -->
424 </select>
425 </div>
426 </div><!-- end toggle -->
427 <div id="api-nav-title">Android APIs</div>
428 </div><!-- end nav header -->
429 <script>
430 var SINCE_DATA = [ ];
431 buildApiLevelSelector();
432 </script>
433
434 <div id="swapper">
435 <div id="nav-panels">
436 <div id="resize-packages-nav">
437 <div id="packages-nav" class="scroll-pane">
438
439 <ul>
440
441 <li class="api apilevel-">
442 <a href="../../../../../../reference/android/support/test/package-summary.html">android.support.test</a></li>
443 <li class="api apilevel-">
Quddus Chong8408cbe2015-04-17 15:01:16 -0700444 <a href="../../../../../../reference/android/support/test/annotation/package-summary.html">android.support.test.annotation</a></li>
445 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800446 <a href="../../../../../../reference/android/support/test/espresso/package-summary.html">android.support.test.espresso</a></li>
447 <li class="api apilevel-">
448 <a href="../../../../../../reference/android/support/test/espresso/action/package-summary.html">android.support.test.espresso.action</a></li>
449 <li class="api apilevel-">
450 <a href="../../../../../../reference/android/support/test/espresso/assertion/package-summary.html">android.support.test.espresso.assertion</a></li>
451 <li class="api apilevel-">
452 <a href="../../../../../../reference/android/support/test/espresso/base/package-summary.html">android.support.test.espresso.base</a></li>
453 <li class="selected api apilevel-">
454 <a href="../../../../../../reference/android/support/test/espresso/contrib/package-summary.html">android.support.test.espresso.contrib</a></li>
455 <li class="api apilevel-">
Quddus Chong8408cbe2015-04-17 15:01:16 -0700456 <a href="../../../../../../reference/android/support/test/espresso/intent/package-summary.html">android.support.test.espresso.intent</a></li>
457 <li class="api apilevel-">
458 <a href="../../../../../../reference/android/support/test/espresso/intent/matcher/package-summary.html">android.support.test.espresso.intent.matcher</a></li>
459 <li class="api apilevel-">
460 <a href="../../../../../../reference/android/support/test/espresso/intent/rule/package-summary.html">android.support.test.espresso.intent.rule</a></li>
461 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800462 <a href="../../../../../../reference/android/support/test/espresso/matcher/package-summary.html">android.support.test.espresso.matcher</a></li>
463 <li class="api apilevel-">
464 <a href="../../../../../../reference/android/support/test/espresso/util/package-summary.html">android.support.test.espresso.util</a></li>
465 <li class="api apilevel-">
Quddus Chong7af35662015-05-27 16:07:54 -0700466 <a href="../../../../../../reference/android/support/test/espresso/web/action/package-summary.html">android.support.test.espresso.web.action</a></li>
467 <li class="api apilevel-">
468 <a href="../../../../../../reference/android/support/test/espresso/web/assertion/package-summary.html">android.support.test.espresso.web.assertion</a></li>
469 <li class="api apilevel-">
470 <a href="../../../../../../reference/android/support/test/espresso/web/bridge/package-summary.html">android.support.test.espresso.web.bridge</a></li>
471 <li class="api apilevel-">
472 <a href="../../../../../../reference/android/support/test/espresso/web/matcher/package-summary.html">android.support.test.espresso.web.matcher</a></li>
473 <li class="api apilevel-">
474 <a href="../../../../../../reference/android/support/test/espresso/web/model/package-summary.html">android.support.test.espresso.web.model</a></li>
475 <li class="api apilevel-">
476 <a href="../../../../../../reference/android/support/test/espresso/web/sugar/package-summary.html">android.support.test.espresso.web.sugar</a></li>
477 <li class="api apilevel-">
478 <a href="../../../../../../reference/android/support/test/espresso/web/webdriver/package-summary.html">android.support.test.espresso.web.webdriver</a></li>
479 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800480 <a href="../../../../../../reference/android/support/test/filters/package-summary.html">android.support.test.filters</a></li>
481 <li class="api apilevel-">
Quddus Chong8408cbe2015-04-17 15:01:16 -0700482 <a href="../../../../../../reference/android/support/test/rule/package-summary.html">android.support.test.rule</a></li>
483 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800484 <a href="../../../../../../reference/android/support/test/runner/package-summary.html">android.support.test.runner</a></li>
485 <li class="api apilevel-">
Quddus Chong8408cbe2015-04-17 15:01:16 -0700486 <a href="../../../../../../reference/android/support/test/runner/intent/package-summary.html">android.support.test.runner.intent</a></li>
487 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800488 <a href="../../../../../../reference/android/support/test/runner/lifecycle/package-summary.html">android.support.test.runner.lifecycle</a></li>
489 <li class="api apilevel-">
490 <a href="../../../../../../reference/android/support/test/uiautomator/package-summary.html">android.support.test.uiautomator</a></li>
491 </ul><br/>
492
493 </div> <!-- end packages-nav -->
494 </div> <!-- end resize-packages -->
495 <div id="classes-nav" class="scroll-pane">
496
497
498
499 <ul>
500
501
502 <li><h2>Interfaces</h2>
503 <ul>
504 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/RecyclerViewActions.PositionableRecyclerViewAction.html">RecyclerViewActions.PositionableRecyclerViewAction</a></li>
505 </ul>
506 </li>
507
508 <li><h2>Classes</h2>
509 <ul>
Quddus Chong7af35662015-05-27 16:07:54 -0700510 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/AccessibilityChecks.html">AccessibilityChecks</a></li>
Quddus Chong489218c2015-02-26 16:38:46 -0800511 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html">CountingIdlingResource</a></li>
512 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/DrawerActions.html">DrawerActions</a></li>
513 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/DrawerMatchers.html">DrawerMatchers</a></li>
514 <li class="selected api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/PickerActions.html">PickerActions</a></li>
515 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/RecyclerViewActions.html">RecyclerViewActions</a></li>
516 </ul>
517 </li>
518
519
520
521 </ul><br/>
522
523
524 </div><!-- end classes -->
525 </div><!-- end nav-panels -->
526 <div id="nav-tree" style="display:none" class="scroll-pane">
527 <div id="tree-list"></div>
528 </div><!-- end nav-tree -->
529 </div><!-- end swapper -->
530 <div id="nav-swap">
531 <a class="fullscreen">fullscreen</a>
532 <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>
533 </div>
534 </div> <!-- end devdoc-nav -->
535 </div> <!-- end side-nav -->
536 <script type="text/javascript">
537 // init fullscreen based on user pref
538 var fullscreen = readCookie("fullscreen");
539 if (fullscreen != 0) {
540 if (fullscreen == "false") {
541 toggleFullscreen(false);
542 } else {
543 toggleFullscreen(true);
544 }
545 }
546 // init nav version for mobile
547 if (isMobile) {
548 swapNav(); // tree view should be used on mobile
549 $('#nav-swap').hide();
550 } else {
551 chooseDefaultNav();
552 if ($("#nav-tree").is(':visible')) {
553 init_default_navtree("../../../../../../");
554 }
555 }
556 // scroll the selected page into view
557 $(document).ready(function() {
558 scrollIntoView("packages-nav");
559 scrollIntoView("classes-nav");
560 });
561 </script>
562
563
564
565
566
567<div class="col-12" id="doc-col">
568
569<div id="api-info-block">
570
571
572
573
574
575
576
577
578
579
580
581<div class="sum-details-links">
582
583Summary:
584
585
586
587
588
589
590
591
592
593
594
595 <a href="#pubmethods">Methods</a>
596
597
598
599
600 &#124; <a href="#inhmethods">Inherited Methods</a>
601
602&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
603
604</div><!-- end sum-details-links -->
605<div class="api-level">
606
607
608
609
610</div>
611</div><!-- end api-info-block -->
612
613
614<!-- ======== START OF CLASS DATA ======== -->
615
616<div id="jd-header">
617 public
618
619 final
620
621 class
622<h1 itemprop="name">PickerActions</h1>
623
624
625
626
627 extends Object<br/>
628
629
630
631
632
633
634
635
636
637
638
639
640</div><!-- end header -->
641
642<div id="naMessage"></div>
643
644<div id="jd-content" class="api apilevel-">
645<table class="jd-inheritance-table">
646
647
648 <tr>
649
650 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
651 </tr>
652
653
654 <tr>
655
656 <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
657
658 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.contrib.PickerActions</td>
659 </tr>
660
661
662</table>
663
664
665
666
667
668
669
670<div class="jd-descr">
671
672
673<h2>Class Overview</h2>
674<p itemprop="articleBody">Espresso action for interacting with <code><a href="../../../../../../reference/android/widget/DatePicker.html">DatePicker</a></code> and
675 <code><a href="../../../../../../reference/android/widget/TimePicker.html">TimePicker</a></code>.</p>
676
677
678
679 <div class="jd-tagdata">
680 <h5 class="jd-tagtitle">See Also</h5>
681 <ul class="nolist"><li><a href="http://developer.android.com/guide/topics/ui/controls/pickers.html">Pickers
682 API guide</a></li>
683 </ul>
684 </div>
685
686
687</div><!-- jd-descr -->
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704<div class="jd-descr">
705
706
707<h2>Summary</h2>
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735<!-- ========== METHOD SUMMARY =========== -->
736<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
737
738
739
740
741 <tr class="alt-color api apilevel-" >
742 <td class="jd-typecol"><nobr>
743
744
745
746 static
747
748 <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr>
749 </td>
750 <td class="jd-linkcol" width="100%"><nobr>
751 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/PickerActions.html#setDate(int, int, int)">setDate</a></span>(int year, int monthOfYear, int dayOfMonth)</nobr>
752
753 <div class="jd-descrdiv">
754 Returns a <code><a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></code> that sets a date on a <code><a href="../../../../../../reference/android/widget/DatePicker.html">DatePicker</a></code>.
755
756
757
758 </div>
759
760 </td></tr>
761
762
763
764 <tr class=" api apilevel-" >
765 <td class="jd-typecol"><nobr>
766
767
768
769 static
770
771 <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr>
772 </td>
773 <td class="jd-linkcol" width="100%"><nobr>
774 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/PickerActions.html#setTime(int, int)">setTime</a></span>(int hours, int minutes)</nobr>
775
776 <div class="jd-descrdiv">
777 Returns a <code><a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></code> that sets a time on a <code><a href="../../../../../../reference/android/widget/TimePicker.html">TimePicker</a></code>.
778
779
780
781 </div>
782
783 </td></tr>
784
785
786
787</table>
788
789
790
791
792
793
794
795<!-- ========== METHOD SUMMARY =========== -->
796<table id="inhmethods" class="jd-sumtable"><tr><th>
797 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
798 <div style="clear:left;">Inherited Methods</div></th></tr>
799
800
801<tr class="api apilevel-" >
802<td colspan="12">
803 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
804 ><img id="inherited-methods-java.lang.Object-trigger"
805 src="../../../../../../assets/images/triangle-closed.png"
806 class="jd-expando-trigger-img" /></a>
807From class
808
809 java.lang.Object
810
811<div id="inherited-methods-java.lang.Object">
812 <div id="inherited-methods-java.lang.Object-list"
813 class="jd-inheritedlinks">
814 </div>
815 <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
816 <table class="jd-sumtable-expando">
817
818
819
820
821 <tr class="alt-color api apilevel-" >
822 <td class="jd-typecol"><nobr>
823
824
825
826
827
828 Object</nobr>
829 </td>
830 <td class="jd-linkcol" width="100%"><nobr>
831 <span class="sympad">clone</span>()</nobr>
832
833 </td></tr>
834
835
836
837 <tr class=" api apilevel-" >
838 <td class="jd-typecol"><nobr>
839
840
841
842
843
844 boolean</nobr>
845 </td>
846 <td class="jd-linkcol" width="100%"><nobr>
847 <span class="sympad">equals</span>(Object arg0)</nobr>
848
849 </td></tr>
850
851
852
853 <tr class="alt-color api apilevel-" >
854 <td class="jd-typecol"><nobr>
855
856
857
858
859
860 void</nobr>
861 </td>
862 <td class="jd-linkcol" width="100%"><nobr>
863 <span class="sympad">finalize</span>()</nobr>
864
865 </td></tr>
866
867
868
869 <tr class=" api apilevel-" >
870 <td class="jd-typecol"><nobr>
871
872
873 final
874
875
876 Class&lt;?&gt;</nobr>
877 </td>
878 <td class="jd-linkcol" width="100%"><nobr>
879 <span class="sympad">getClass</span>()</nobr>
880
881 </td></tr>
882
883
884
885 <tr class="alt-color api apilevel-" >
886 <td class="jd-typecol"><nobr>
887
888
889
890
891
892 int</nobr>
893 </td>
894 <td class="jd-linkcol" width="100%"><nobr>
895 <span class="sympad">hashCode</span>()</nobr>
896
897 </td></tr>
898
899
900
901 <tr class=" api apilevel-" >
902 <td class="jd-typecol"><nobr>
903
904
905 final
906
907
908 void</nobr>
909 </td>
910 <td class="jd-linkcol" width="100%"><nobr>
911 <span class="sympad">notify</span>()</nobr>
912
913 </td></tr>
914
915
916
917 <tr class="alt-color api apilevel-" >
918 <td class="jd-typecol"><nobr>
919
920
921 final
922
923
924 void</nobr>
925 </td>
926 <td class="jd-linkcol" width="100%"><nobr>
927 <span class="sympad">notifyAll</span>()</nobr>
928
929 </td></tr>
930
931
932
933 <tr class=" api apilevel-" >
934 <td class="jd-typecol"><nobr>
935
936
937
938
939
940 String</nobr>
941 </td>
942 <td class="jd-linkcol" width="100%"><nobr>
943 <span class="sympad">toString</span>()</nobr>
944
945 </td></tr>
946
947
948
949 <tr class="alt-color api apilevel-" >
950 <td class="jd-typecol"><nobr>
951
952
953 final
954
955
956 void</nobr>
957 </td>
958 <td class="jd-linkcol" width="100%"><nobr>
959 <span class="sympad">wait</span>()</nobr>
960
961 </td></tr>
962
963
964
965 <tr class=" api apilevel-" >
966 <td class="jd-typecol"><nobr>
967
968
969 final
970
971
972 void</nobr>
973 </td>
974 <td class="jd-linkcol" width="100%"><nobr>
975 <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
976
977 </td></tr>
978
979
980
981 <tr class="alt-color api apilevel-" >
982 <td class="jd-typecol"><nobr>
983
984
985 final
986
987
988 void</nobr>
989 </td>
990 <td class="jd-linkcol" width="100%"><nobr>
991 <span class="sympad">wait</span>(long arg0)</nobr>
992
993 </td></tr>
994
995
996</table>
997 </div>
998</div>
999</td></tr>
1000
1001
1002</table>
1003
1004
1005</div><!-- jd-descr (summary) -->
1006
1007<!-- Details -->
1008
1009
1010
1011
1012
1013
1014
1015
1016<!-- XML Attributes -->
1017
1018
1019<!-- Enum Values -->
1020
1021
1022<!-- Constants -->
1023
1024
1025<!-- Fields -->
1026
1027
1028<!-- Public ctors -->
1029
1030
1031
1032<!-- ========= CONSTRUCTOR DETAIL ======== -->
1033<!-- Protected ctors -->
1034
1035
1036
1037<!-- ========= METHOD DETAIL ======== -->
1038<!-- Public methdos -->
1039
1040<h2>Public Methods</h2>
1041
1042
1043
1044<A NAME="setDate(int, int, int)"></A>
1045
1046<div class="jd-details api apilevel-">
1047 <h4 class="jd-details-title">
1048 <span class="normal">
1049 public
1050 static
1051
1052
1053
1054 <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a>
1055 </span>
1056 <span class="sympad">setDate</span>
1057 <span class="normal">(int year, int monthOfYear, int dayOfMonth)</span>
1058 </h4>
1059 <div class="api-level">
1060 <div></div>
1061
1062
1063
1064 </div>
1065 <div class="jd-details-descr">
1066
1067
1068
1069
1070 <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></code> that sets a date on a <code><a href="../../../../../../reference/android/widget/DatePicker.html">DatePicker</a></code>.
1071</p></div>
1072
1073 </div>
1074</div>
1075
1076
1077<A NAME="setTime(int, int)"></A>
1078
1079<div class="jd-details api apilevel-">
1080 <h4 class="jd-details-title">
1081 <span class="normal">
1082 public
1083 static
1084
1085
1086
1087 <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a>
1088 </span>
1089 <span class="sympad">setTime</span>
1090 <span class="normal">(int hours, int minutes)</span>
1091 </h4>
1092 <div class="api-level">
1093 <div></div>
1094
1095
1096
1097 </div>
1098 <div class="jd-details-descr">
1099
1100
1101
1102
1103 <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></code> that sets a time on a <code><a href="../../../../../../reference/android/widget/TimePicker.html">TimePicker</a></code>.
1104</p></div>
1105
1106 </div>
1107</div>
1108
1109
1110
1111
1112
1113<!-- ========= METHOD DETAIL ======== -->
1114
1115
1116
1117<!-- ========= END OF CLASS DATA ========= -->
1118<A NAME="navbar_top"></A>
Quddus Chong7af35662015-05-27 16:07:54 -07001119</div> <!-- jd-content -->
Quddus Chong489218c2015-02-26 16:38:46 -08001120
Quddus Chong7af35662015-05-27 16:07:54 -07001121<div class="wrap">
1122 <div class="dac-footer">
1123 <div class="cols dac-footer-main">
1124 <div class="col-1of2">
1125 <a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news &amp; tips <span
1126 class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a>
1127 </div>
1128 <div class="col-1of2 dac-footer-reachout">
1129 <div class="dac-footer-contact">
1130 <a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a>
1131 <a class="dac-footer-contact-link" href="/support.html">Support</a>
1132 </div>
1133 <div class="dac-footer-social">
1134 <a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
1135 <a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
1136 <a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a>
1137 </div>
1138 </div>
1139 </div>
1140
1141 <hr class="dac-footer-separator"/>
Quddus Chong489218c2015-02-26 16:38:46 -08001142
1143
Quddus Chong7af35662015-05-27 16:07:54 -07001144 <p class="dac-footer-copyright">
Quddus Chong489218c2015-02-26 16:38:46 -08001145
1146 Except as noted, this content is licensed under <a
1147 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
1148 For details and restrictions, see the <a href="../../../../../../license.html">
1149 Content License</a>.
Quddus Chong7af35662015-05-27 16:07:54 -07001150 </p>
1151 <p class="dac-footer-build">
Quddus Chong489218c2015-02-26 16:38:46 -08001152
1153 Android &nbsp;r &mdash;
1154<script src="../../../../../../timestamp.js" type="text/javascript"></script>
1155<script>document.write(BUILD_TIMESTAMP)</script>
1156
Quddus Chong7af35662015-05-27 16:07:54 -07001157 </p>
1158
1159
1160 <p class="dac-footer-links">
1161 <a href="/about/index.html">About Android</a>
1162 <a href="/auto/index.html">Auto</a>
1163 <a href="/tv/index.html">TV</a>
1164 <a href="/wear/index.html">Wear</a>
1165 <a href="/legal.html">Legal</a>
1166
1167 <span id="language" class="locales">
1168 <select name="language" onchange="changeLangPref(this.value, true)">
1169 <option value="en" selected="selected">English</option>
1170 <option value="es">Español</option>
1171 <option value="ja">日本語</option>
1172 <option value="ko">한국어</option>
1173 <option value="ru">Русский</option>
1174 <option value="zh-cn">中文(简体)</option>
1175 <option value="zh-tw">中文(繁體)</option>
1176 </select>
1177 </span>
1178 </p>
Quddus Chong489218c2015-02-26 16:38:46 -08001179 </div>
Quddus Chong489218c2015-02-26 16:38:46 -08001180</div> <!-- end footer -->
Quddus Chong7af35662015-05-27 16:07:54 -07001181
1182<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter">
1183 <div class="dac-modal-container">
1184 <div class="dac-modal-window">
1185 <header class="dac-modal-header">
1186 <button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button>
1187 <div class="dac-swap" data-swap-container>
1188 <section class="dac-swap-section dac-active dac-down">
1189 <h2 class="norule dac-modal-header-title">Get the latest Android developer news and tips that will help you find success on Google Play.</h2>
1190 <p class="dac-modal-header-subtitle">&#42; Required Fields</p>
1191 </section>
1192 <section class="dac-swap-section dac-up">
1193 <h2 class="norule dac-modal-header-title">Hooray!</h2>
1194 </section>
1195 </div>
1196 </header>
1197 <div class="dac-swap" data-swap-container>
1198 <section class="dac-swap-section dac-active dac-left">
1199 <form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe">
1200 <section class="dac-modal-content">
1201 <fieldset class="dac-form-fieldset">
1202 <div class="cols">
1203 <div class="col-1of2 newsletter-leftCol">
1204 <div class="dac-form-input-group">
1205 <label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label>
1206 <input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required>
1207 <span class="dac-form-required">*</span>
1208 </div>
1209 <div class="dac-form-input-group">
1210 <label for="newsletter-email" class="dac-form-floatlabel">Email address</label>
1211 <input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required>
1212 <span class="dac-form-required">*</span>
1213 </div>
1214 </div>
1215 <div class="col-1of2 newsletter-rightCol">
1216 <div class="dac-form-input-group">
1217 <label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label>
1218 <input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company">
1219 </div>
1220 <div class="dac-form-input-group">
1221 <label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label>
1222 <input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required>
1223 <span class="dac-form-required">*</span>
1224 </div>
1225 </div>
1226 </div>
1227 </fieldset>
1228 <fieldset class="dac-form-fieldset">
1229 <div class="cols">
1230 <div class="col-1of2 newsletter-leftCol">
1231 <legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span>
1232 </legend>
1233 <div class="dac-form-radio-group">
1234 <input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required>
1235 <label for="newsletter-business-type-app" class="dac-form-radio-button"></label>
1236 <label for="newsletter-business-type-app" class="dac-form-label">Apps</label>
1237 </div>
1238 <div class="dac-form-radio-group">
1239 <input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required>
1240 <label for="newsletter-business-type-games" class="dac-form-radio-button"></label>
1241 <label for="newsletter-business-type-games" class="dac-form-label">Games</label>
1242 </div>
1243 <div class="dac-form-radio-group">
1244 <input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required>
1245 <label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label>
1246 <label for="newsletter-business-type-appsgames" class="dac-form-label">Apps &amp; Games</label>
1247 </div>
1248 </div>
1249 <div class="col-1of2 newsletter-rightCol newsletter-checkboxes">
1250 <div class="dac-form-radio-group">
1251 <div class="dac-media">
1252 <div class="dac-media-figure">
1253 <input type="checkbox" class="dac-form-checkbox" name="entry.732309842" id="newsletter-add" required value="Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities.">
1254 <label for="newsletter-add" class="dac-form-checkbox-button"></label>
1255 </div>
1256 <div class="dac-media-body">
1257 <label for="newsletter-add" class="dac-form-label dac-form-aside">Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities.<span class="dac-form-required">*</span></label>
1258 </div>
1259 </div>
1260 </div>
1261 <div class="dac-form-radio-group">
1262 <div class="dac-media">
1263 <div class="dac-media-figure">
1264 <input type="checkbox" class="dac-form-checkbox" name="entry.2045036090" id="newsletter-terms" required value="I acknowledge that the information provided in this form will be subject to Google's privacy policy (https://www.google.com/policies/privacy/).">
1265 <label for="newsletter-terms" class="dac-form-checkbox-button"></label>
1266 </div>
1267 <div class="dac-media-body">
1268 <label for="newsletter-terms" class="dac-form-label dac-form-aside">I acknowledge that the information provided in this form will be subject to <a href="https://www.google.com/policies/privacy/">Google's privacy policy</a>.<span class="dac-form-required">*</span></label>
1269 </div>
1270 </div>
1271 </div>
1272 </div>
1273 </div>
1274 </fieldset>
1275 </section>
1276 <footer class="dac-modal-footer">
1277 <div class="cols">
1278 <div class="col-2of5">
1279 </div>
1280 </div>
1281 <button type="submit" value="Submit" class="dac-fab dac-primary dac-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button>
1282 </footer>
1283 </form>
1284 </section>
1285 <section class="dac-swap-section dac-right">
1286 <div class="dac-modal-content">
1287 <p class="newsletter-success-message">
1288 You have successfully signed up for the latest Android developer news and tips.
1289 </p>
1290 </div>
1291 </section>
1292 </div>
1293 </div>
1294 </div>
1295</div> <!-- end footer -->
Quddus Chong489218c2015-02-26 16:38:46 -08001296
1297</div><!-- end doc-content -->
1298
Quddus Chong7af35662015-05-27 16:07:54 -07001299</div> <!-- end .cols -->
Quddus Chong489218c2015-02-26 16:38:46 -08001300</div> <!-- end body-content -->
1301
1302
1303
1304
1305
1306
1307</body>
1308</html>