1
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
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
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
|
page.title=Support Library Revision History
page.metaDescription=This page provides details about the Support Library package releases.
@jd:body
<p>This page provides details about the Support Library package releases.</p>
<div class="toggle-content opened">
<p id="rev23-4-0">
<a href="#" onclick="return toggleContent(this)"><img src=
"{@docRoot}assets/images/styles/disclosure_up.png" class=
"toggle-content-img" alt="">Android Support Library, revision 23.4.0</a>
<em>(May 2016)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v4">v4 Support
Library</a>:
</dt>
<dd>
<ul>
<li>Fixed issue where fragments were added in the wrong order.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=206901">Issue
206901</a>)
</li>
<li>Fixed issue where app bar wasn't drawn after being scrolled
offscreen. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=178037">Issue
178037</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-appcompat">v7
appcompat library</a>:
</dt>
<dd>
<ul>
<li>Added <!-- TODO: Link to method -->
<code><a href=
"{@docRoot}reference/android/support/v7/app/AppCompatDelegate.html">
AppCompatDelegate</a>.setCompatVectorFromResourcesEnabled()</code>
method to re-enable usage of vector drawables in {@link
android.graphics.drawable.DrawableContainer} objects on devices
running Android 4.4 (API level 19) and lower. See <a href=
"https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.44uulkfal"
class="external-link">AppCompat v23.2 — Age of the vectors</a> for
more information.
</li>
<li>Fixed an issue in API 23 with <a href=
"{@docRoot}reference/android/support/v7/app/AppCompatDelegate.html#setDefaultNightMode(int)">
<code>AppCompatDelegate.setDefaultNightMode()</code></a> not
loading correct resources in API level 23. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=206573">Issue
206573</a>)
</li>
<li>Fixed issue that could cause {@link
java.lang.NullPointerException}. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=207638">Issue
207638</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#design">Design Support
Library</a>:
</dt>
<dd>
<ul>
<li>Fixed an issue where {@link
android.support.design.widget.TextInputLayout} doesn't clear error
tint after {@link
android.support.design.widget.TextInputLayout#setErrorEnabled
setErrorEnabled(false)} on API level 21 - 22 (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=202829">Issue
202829</a>)
</li>
<li>Fixed an issue where {@link
android.support.design.widget.FloatingActionButton} does not return
when animations are disabled. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=206416">Issue
206416</a>)
</li>
<li>Fixed issue in {@link android.support.design.widget.AppBarLayout}
snap functionality when used with <code>{@link
android.support.design.R.id#scroll}|{@link
android.support.design.R.id#enterAlways}|{@link
android.support.design.R.id#enterAlwaysCollapsed}|{@link
android.support.design.R.id#snap}</code> scroll flags.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=207398">Issue
207398</a>)
</li>
</ul>
</dd>
<dt>
Changes for <!-- TODO: Add link -->Vector Drawable library:
</dt>
<dd>
<ul>
<li>Fixed a bug where <!-- TODO: Javadoc link -->
<code>VectorDrawableCompat</code> does not render correctly in
{@link android.widget.TextView} on API level 23. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=206227">Issue
206227</a>)
</li>
</ul>
</dd>
</dl>
</div>
</div>
<!-- end of collapsible section: 23.4.0 -->
<div class="toggle-content closed">
<p id="rev23-3-0">
<a href="#" onclick="return toggleContent(this)"><img src=
"{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img"
alt="">Android Support Library, revision 23.3.0</a> <em>(April
2016)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v4">v4 Support
Library</a>:
</dt>
<dd>
<ul>
<li>Added <code>AppLaunchChecker</code> to help track how your app
has been launched by the user in the past.
<code>hasStartedFromLauncher()</code> lets you know if the user has
launched your app from the home screen before, or if it has only
been started by other means (for example, to view specific web
URLs).
</li>
<li>Fixed a memory leak in
<code>MediaBrowserServiceCompat.mConnections</code>. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=205220">Issue
205220</a>)
</li>
<li>Fixed issue where {@link android.support.v4.view.ViewPager}
does not account for page margins when flipping page. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=203816">Issue
203816</a>)
</li>
<li>{@link android.support.v4.app.Fragment#onRequestPermissionsResult
Fragment.onRequestPermissionsResult()} is now delivered to child
fragments.
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-appcompat">v7
appcompat library</a>:
</dt>
<dd>
<ul>
<li>Fixed an issue in {@link
android.support.v7.widget.AppCompatSpinner} that could cause
multiple popups to appear. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=205052">Issue
205052</a>)
</li>
<li>Fixed an issue with how borderless buttons were colored.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202967">Issue
202967</a>)
</li>
<li>Fixed a compatibility issue between {@link
android.support.v7.app.AppCompatDialogFragment } and {@link
android.support.v7.app.AlertDialog}. (<a class="external-link"
href="https://code.google.com/p/android/issues/detail?id=204805">Issue
204805</a>)
</li>
<li>Reverted changes to <code>TintResources</code> that were causing
memory and configuration issues. (<a class="external-link"
href="https://code.google.com/p/android/issues/detail?id=205236">Issue
205236</a>)</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-mediarouter">v7
mediarouter library</a>:
</dt>
<dd>
<ul>
<li>Fixed {@link android.support.v7.app.MediaRouteControllerDialog}
volume slider’s behavior. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202299">Issue
202299</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href="features.html#v7-preference">v7 Preference</a>
library:
</dt>
<dd>
<ul>
<li>Fixed issue where {@link
android.support.v7.preference.PreferenceFragmentCompat} would crash
if <code>dividerHeight</code> is specified. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=204778">Issue
204778</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-recyclerview">v7
recyclerview library</a>:
</dt>
<dd>
<ul>
<li>Fixed a bug where {@link
android.support.v7.widget.RecyclerView} would not invoke scroll
callbacks if the range of visible items shrank. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=200987">Issue
200987</a>)
</li>
<li>Fixed a bug where {@link
android.support.v7.widget.RecyclerView} would freeze if it was in
linear layout, was weighted, and contained images. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=203276">Issue
203276</a>)
</li>
<li>Fixed a crash in {@link
android.support.v7.widget.OrientationHelper#getStartAfterPadding
OrientationHelper.getStartAfterPadding()}. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=180521">Issue
180521</a>)
</li>
<li>Fixed a crash with usages of
<code>android:nestedScrollingEnabled</code>. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=197932">Issue
197932</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#design">Design Support
Library</a>:
</dt>
<dd>
<ul>
<li>Fixed a bug where a hidden bottom sheet would handle touch
events. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=203654">Issue
203654</a>)
</li>
<li>Fixed a layout issue with <code>BottomSheetBehavior</code> when
<code>fitsSystemWindows</code> is true. (<a class="external-link"
href=
"https://code.google.com/p/android/issues/detail?id=203057">Issue
203057</a>)
</li>
<li>Fixed an accessibility issue with {@link
android.support.design.widget.Snackbar}. (<a class="external-link"
href=
"https://code.google.com/p/android/issues/detail?id=182145">Issue
182145</a>)
</li>
<li>Fixed a crash on {@link android.support.design.widget.Snackbar}
swipe. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=203924">Issue
203924</a>)
</li>
<li>Fixed a bug in {@link
android.support.design.widget.AppBarLayout} with
<code>enterAlways</code>. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=203661">Issue
203661</a>)
</li>
<li>Fixed a bug where {@link
android.support.design.widget.TextInputLayout} unnecessarily clears
{@link android.widget.EditText} object's background color filter.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=203357">Issue
203357</a>)
</li>
</ul>
</dd>
</dl>
</div>
</div>
<!-- end of collapsible section: 23.3.0 -->
<div class="toggle-content closed">
<p id="rev23-2-1">
<a href="#" onclick="return toggleContent(this)"><img src=
"{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img"
alt="">Android Support Library, revision 23.2.1</a> <em>(March
2016)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v4">v4 Support
Library</a>:
</dt>
<dd>
<ul>
<li>Fixed an exception in {@link
android.support.v4.graphics.drawable.DrawableCompat#wrap
DrawableCompat.wrap()} and {@link android.graphics.drawable.LayerDrawable} on
API levels 17 to 19. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201817">Issue 201817</a>)
</li>
<li>Fixed an {@code ArrayIndexOutOfBoundsException} in {@link
android.support.v4.widget.ViewDragHelper#shouldInterceptTouchEvent
ViewDragHelper.shouldInterceptTouchEvent()}. (<a class="external-link"
href="https://code.google.com/p/android/issues/detail?id=182262">Issue
182262</a>)
</li>
<li>Fixed a bug in {@link android.support.v4.view.ViewPager} related to
scroll calculation for size changes.
</li>
<li>Fixed a {@code NullPointerException} when {@code
DrawerLayout.removeDrawerListener()} is called without a set {@link
android.support.v4.widget.DrawerLayout.DrawerListener
DrawerLayout.DrawerListener}. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202478">Issue 202478</a>)
</li>
<li>Fixed a bug where {@link android.support.v4.view.ViewPager} does not set
{@link android.view.accessibility.AccessibilityEvent} parameters properly
when scrolling.
</li>
<li>Fixed an issue that caused lag during device rotation when using
{@link android.support.v4.graphics.drawable.DrawableCompat#wrap
Drawable.wrap()}. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201924">Issue 201924</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-appcompat">v7
appcompat library</a>:
</dt>
<dd>
<ul>
<li>Reverted dependency on vector assets so that developers using the
<a href="{@docRoot}tools/support-library/features.html#v7-appcompat">appcompat
library</a> are not forced to use {@link
android.graphics.drawable.VectorDrawable} and its associated build flags.
</li>
<li>Fixed a compatibility issue with Night Mode and API level 23.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201910">Issue
201910</a>)
</li>
<li>Fixed a compatibility issue with {@link
android.support.v7.widget.SwitchCompat} and API level 7. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=201942">Issue 201942</a>)
</li>
<li>Fixed an issue with propagating configuration values in Resources objects
<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201928">Issue 201928</a>
</li>
<li>Fixed a compatibility issue where the {@link
android.support.v7.app.NotificationCompat.MediaStyle
NotificationCompat.MediaStyle} cancel button becomes invisible on API level
21 and below. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202156">Issue 202156</a>)
</li>
<li>Fixed a compatibility crash with {@link
android.support.v7.widget.AppCompatSpinner} on API level 21 and below.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202246">Issue 202246</a>)
</li>
<li>Fixed an issue where the {@code app:textAllCaps = "false"} style did not
work. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202117">Issue 202117</a>)
</li>
<li>Fixed a crash when restoring {@link android.widget.SearchView}.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201836">Issue
201836</a>)
</li>
<li>Fixed a memory leak that occurs when tinting drawable resources using
AppCompat. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202379">Issue 202379</a>)
</li>
<li>Fixed an issue with {@link android.view.KeyEvent} on API level 11 and
lower. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202939">Issue 202939</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-cardview">v7 cardview
library</a>:
</dt>
<dd>
<ul>
<li>Added Night Mode support for {@link
android.support.v7.widget.CardView}. (<a class="external-link"
href="https://code.google.com/p/android/issues/detail?id=194497">Issue
194497</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-recyclerview">v7
recyclerview library</a>:
</dt>
<dd>
<ul>
<li>Fixed bugs related to various measure-spec methods. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=201856">Issue
201856</a>)
</li>
<li>Reduced the lockdown period in which {@link
android.support.v7.widget.RecyclerView} does not allow adapter
changes while calculating a layout or scroll. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=202046">Issue
202046</a>)
</li>
<li>Fixed a crash when calling {@link
android.support.v7.widget.RecyclerView.Adapter#notifyItemChanged
notifyItemChanged()} on an item that is out of view. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=202136">Issue
202136</a>)
</li>
<li>Fixed a crash that occurs when {@link
android.support.v7.widget.RecyclerView.LayoutManager
RecyclerView.LayoutManager} adds and removes a view in the same
measurement pass. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=193958">Issue
193958</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v7-mediarouter">v7
mediarouter library</a>:
</dt>
<dd>
<ul>
<li>Fixed a crash that occurs when calling {@link
android.support.v7.media.MediaRouter#getInstance
MediaRouter.getInstance()} on API level 17. (<a class="external-link"
href=
"https://code.google.com/p/android/issues/detail?id=180654">Issue
180654</a>)
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#v17-leanback">v17
Leanback Library</a>:
</dt>
<dd>
<ul>
<li>Fixed an issue with {@code GridLayout.onAddFocusables()} that
caused the wrong item to be selected.
</li>
<li>Fixed issue with {@link
android.support.v17.leanback.app.GuidedStepFragment} actions
disappearing after an action was collapsed.
</li>
</ul>
</dd>
<dt>
Changes for <a href=
"{@docRoot}tools/support-library/features.html#design">Design Support
Library</a>:
</dt>
<dd>
<ul>
<li>Fixed a {@link android.support.design.widget.TabLayout} crash
caused by tab-pooling. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201827">Issue
201827</a>)
</li>
<li>Fixed a bug in {@link
android.support.design.widget.NavigationView} that caused the wrong
color to be selected. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201951">Issue
201951</a>)
</li>
<li>Fixed a bug where {@link
android.support.design.widget.FloatingActionButton#setBackgroundTintList
setBackgroundTintList()} was no longer able to change the background
color. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201873">Issue
201873</a>)
</li>
<li>Fixed an issue where {@link
android.support.design.widget.AppBarLayout} did not completely scroll
out of view when used with {@code android:fitsSystemWindows = “true”}.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201822">Issue
201822</a>)
</li>
<li>Fixed an issue where {@code BottomSheetDialog} did not display
short content views correctly. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201793">Issue
201793</a>)
</li>
<li>Fixed an issue where {@code BottomSheetDialogFragment} moved
sporadically when content inside was changed. (<a class=
"external-link" href=
"https://code.google.com/p/android/issues/detail?id=202125">Issue
202125</a>)
</li>
<li>Fixed a crash in TextInputLayout counter <a class="external-link"
href=
"https://code.google.com/p/android/issues/detail?id=202051">link</a>
</li>
<li>Fixed a crash that occured when {@link
android.support.design.widget.TextInputLayout#getCounterMaxLength
TextInputLayout.getCounterMaxLength()} restored a saved state.
(<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=202375">Issue
202375</a>)
</li>
<li>Fixed a {@code ClassCastException} that occurred when restoring a
{@link android.support.design.widget.CoordinatorLayout} using the
saved state of a view that was not a {@link
android.support.design.widget.CoordinatorLayout}.
</li>
</ul>
</dd>
<dt>
Changes for VectorDrawableCompat:
</dt>
<dd>
<ul>
<li>Fixed a bug where the wrong variable was read for {@code
android:tintMode}. (<a class="external-link" href=
"https://code.google.com/p/android/issues/detail?id=201907">Issue
201907</a>)
</li>
</ul>
</dd>
</dl>
</div>
</div>
<!-- end of collapsible section: 23.2.1 -->
<div class="toggle-content closed">
<p id="rev23-2-0">
<a href="#" onclick="return toggleContent(this)"><img src=
"{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img"
alt="">Android Support Library, revision 23.2.0</a> <em>(February
2016)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>
Changes for <a href="features.html#v4">v4 Support library</a>:
</dt>
<dd>
<ul>
<li>Added {@code MediaBrowserCompat} for {@link
android.media.browse.MediaBrowser} support, and {@code
MediaBrowserServiceCompat} for {@link
android.service.media.MediaBrowserService} support. This is useful
when connecting a media app’s background service with UI components,
and integrating with Android Auto and Android Wear without requiring
API level 21 or higher.
</li>
<li>The system now calls {@link
android.support.v4.app.FragmentActivity#onActivityResult onActivityResult()} for a
nested {@link android.support.v4.app.FragmentActivity}.
</li>
</ul>
</dd>
<dt>
Changes for <a href="features.html#v7-appcompat">v7 AppCompat
library</a>:
</dt>
<dd>
<ul>
<li>Added Night Mode functionality to API level 14 and higher. Switch
between <a href="{@docRoot}training/material/theme.html">Material
Light and Material Dark Themes</a> based on the time of day or
app-specific setting.
</li>
<li style="list-style: none; display: inline">
<ul>
<li>Day and night themes can be found here: {@code
<sdk>/extras/android/support/v7/appcompat/res/values/themes_daynight.xml}
</li>
<li>{@code AppCompatDelegate.setDefaultNightMode()}: sets the
app’s default mode by passing one of the following constants:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>{@code MODE_NIGHT_AUTO}
</li>
<li>{@code MODE_NIGHT_NO}
</li>
<li>{@code MODE_NIGHT_YES}
</li>
<li>{@code MODE_NIGHT_FOLLOW_SYSTEM}
</li>
</ul>
</li>
<li>{@code AppCompatDelegate.setLocalNightMode()}: overrides
the night mode setting for the local app component.
</li>
<li>{@code AppCompatDelegate.getDefaultNightMode()}: returns
the default night mode.
</li>
</ul>
</li>
</ul>
</dd>
<dt>
Changes for <a href="features.html#v7-mediarouter">v7 mediarouter
library</a>:
</dt>
<dd>
<ul>
<li>{@link android.support.v7.app.MediaRouteControllerDialog} now
correctly applies custom app theme colors.
</li>
</ul>
</dd>
<dt>
Changes for <a href="features.html#design">Design support library</a>:
</dt>
<dd>
<ul>
<li>Added support for <a href=
"https://www.google.com/design/spec/components/bottom-sheets.html">bottom
sheets</a>. An interaction plugin, {@code
BottomSheetBehavior}, allows a child view of a {@link
android.support.design.widget.CoordinatorLayout} to act as
a bottom sheet. The base class, {@code BottomSheetCallback}, provides
callbacks to monitor bottom sheet events.
</li>
</ul>
</dd>
<dt>
Changes for the <a href="features.html#custom-tabs">CustomTabs support
library</a>:
</dt>
<dd>
<ul>
<li>
<a href=
"https://developer.chrome.com/multidevice/android/customtabs">Chrome
Custom Tabs</a> now allows apps to include a bottom bar with action
buttons in addition to the existing top action button.
</li>
<li>{@code CustomTabsIntent.Builder.addToolBarItem()}: adds an action
button to a custom tab. You can use this to add multiple buttons.
</li>
<li>{@code CustomTabsSession.setToolBarItem()}: updates the visuals
for toolbar items. This method will only succeed if it is given a
valid id and the browser session is in the foreground.
</li>
</ul>
</dd>
<dt>
Added VectorDrawable support library:
</dt>
<dd>
<ul>
<li>Added Classes:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>{@code VectorDrawableCompat}
</li>
<li>{@code AnimatedVectorDrawableCompat}
</li>
</ul>
</li>
<li>Adds support for {@link
android.graphics.drawable.VectorDrawable} assets to apps
running on API level 7 or higher. {@link
android.graphics.drawable.AnimatedVectorDrawable} assets
are also supported on API level 11 or higher. Vector assets can be
considerably smaller than image assets and should help reduce app
size by reducing the amount of assets required to support multiple
device screens.
</li>
<li>This library is now a dependency of the <a href=
"features.html#v7-appcompat">v7 AppCompat library</a>, allowing
developers and <a href="features.html#v7-appcompat">AppCompat </a>
to easily use vector drawables. To use {@code
VectorDrawableCompat} within an {@link android.widget.ImageButton} or
{@link android.widget.ImageView}, use the {@code app:srcCompat} XML
attribute or {@code setImageResource()}
method.
</li>
<li>To keep referencing attribute IDs on API level 20 or
lower, add the following {@code appt} flag to your {@code
build,gradle} file:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>If you are building with Android Plugin for Gradle 1.5.0 or
lower, add the following to your {@code build.gradle} file:
</li>
<li style="list-style: none; display: inline">
<pre>
android {
defaultConfig {
// Stops the Gradle’s automatic rasterization of vectors
generatedDensities = []
}
// Flag that tells aapt to keep the attribute ids
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
</pre>
</li>
<li>If you are building with Android Plugin for Gradle 2.0.0 or
higher, add the following to your {@code build.gradle} file:
</li>
<li style="list-style: none; display: inline">
<pre>
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
</pre>
</li>
</ul>
</li>
</ul>
</dd>
<dt>
Changes for <a href="features.html#v17-leanback">v17 Leanback
Library</a>:
</dt>
<dd>
<ul>
<li>Added new capabilities to {@link android.support.v17.leanback.app.GuidedStepFragment},
which is a component that guides users through a decision or series of decisions:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>Added button actions to {@link
android.support.v17.leanback.widget.GuidedAction}:
</li>
<ul>
<li>{@code GuidedStepFragment.setButtonActions()}: sets a list of
{@link android.support.v17.leanback.widget.GuidedAction} buttons that
the user may select from the Actions view.
</li>
</ul>
</li>
<li>Description fields are now editable:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>{@code GuidedAction.Builder.descriptionEditable()}: when passing
{@code true}, sets the action’s description to be editable.
</li>
<li>{@code GuidedAction.getEditDescription()}: returns the editable
description as a {@code CharSequence}.
</li>
</ul>
</li>
<li>Added drop-down lists of sub-actions:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>{@code GuidedAction.setSubActions()}: sets a {@link
android.support.v17.leanback.widget.GuidedAction} list as a drop-down
menu of sub-actions.
</li>
</ul>
</li>
</ul>
<li>Added the {@code GuidedDatePickerAction} widget for {@link
android.widget.DatePicker} functionality:
</li>
<li style="list-style: none; display: inline">
<ul>
<li>The date is selected using year, month, and day columns and has a
customizable range.
</li>
<li>{@code GuidedDatePickerAction.Builder}: builder class for the {@code
GuidedDatePickerAction} object.
</li>
<li>{@code GuidedDatePickerAction.Builder.datePickerFormat(String
datePickerFormat)}: set the desired date format by passing the
appropriate three-character {@code String}, e.g. {@code “YMD”} or {@code
“MDY”}. Alternatively, use the {@code datePickerFormat} XML attribute.
</li>
</ul>
</li>
</ul>
</dd>
</dl>
<dl>
<dt>
Changes for <a href="features.html#v7-recyclerview">v7 RecyclerView
library</a>:
</dt>
<dd>
<ul>
<li>{@link android.support.v7.widget.RecyclerView} now has an opt-in
feature called <em>AutoMeasure</em> which allows {@link
android.support.v7.widget.RecyclerView.LayoutManager} to easily wrap
content or handle various measurement specifications provided by the
parent of the {@link android.support.v7.widget.RecyclerView}. It
supports all existing animation capabilities of the {@link
android.support.v7.widget.RecyclerView}.
</li>
<li style="list-style: none; display: inline">
<ul>
<li>If you have a custom {@link
android.support.v7.widget.RecyclerView.LayoutManager},
call {@code setAutoMeasureEnabled(true)} to start using the new
AutoMeasure API. All built-in {@link
android.support.v7.widget.RecyclerView.LayoutManager} objects
enable auto-measure by default.
</li>
<li>{@link android.support.v7.widget.RecyclerView.LayoutManager}
no longer ignores some {@link
android.support.v7.widget.RecyclerView.LayoutParams} settings,
such as {@code MATCH_PARENT} in the scroll direction.
<p class="note">
<strong>Note:</strong> These lifted restrictions may cause
unexpected behavior in your layouts. Make sure you specify
the correct layout parameters.
</p>
</li>
</ul>
</li>
<li>When updating a {@link
android.support.v7.widget.RecyclerView.ViewHolder} with payload
information, {@link android.support.v7.widget.DefaultItemAnimator}
now disables change animations.
</li>
<li>You can now modify the {@link
android.support.v7.widget.helper.ItemTouchHelper} escape velocity to
control swipe sensitivity. To make it easier or harder to swipe,
override {@code getSwipeEscapeVelocity(float defaultValue)} and modify {@code defaultValue}.
</li>
</ul>
</dd>
</dl>
</div>
</div>
<!-- end of collapsible section: 23.2.0 -->
<div class="toggle-content closed">
<p id="rev23-1-1"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 23.1.1</a> <em>(November 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v7-recyclerview">v7 recyclerview library:</a></dt>
<dd>
<ul>
<li>Fixed a crash that occurs when you perform a swipe-to-dismiss action that the
{@code ItemTouchHelper} utility class provides, and then add an item.
(<a href="http://b.android.com/190500">Issue 190500</a>)</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-preference">v7 preference library:</a></dt>
<dd>
<ul>
<li>Fixed an issue with ProGuard usage.
(<a href="http://b.android.com/183261">Issue 183261</a>)</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v17-leanback">v17 Leanback Support library:</a></dt>
<dd>
<ul>
<li>Fixed a number of internal issues in this library.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#design">Design Support library:</a></dt>
<dd>
<ul>
<li>Added the <code>getHeaderView</code> method to the <code>NavigationView</code> class.</li>
<li>Fixed a transparent background issue for a <code>FloatingActionButton</code> object on
devices running Android 4.0 (API level 15) and lower.
(<a href="http://b.android.com/183315">Issue 183315</a>)</li>
</ul>
</dd>
</dl>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev23-1-0"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 23.1.0</a> <em>(October 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v4">v4 Support library:</a></dt>
<dd>
<ul>
<li>Added <code>OnScrollChangedListener</code> interface support to the
<code>NestedScrollView</code> widget. It
allows you to receive callbacks when the scroll X or Y positions change.</li>
<li>Added a <code>MediaButtonReceiver</code> class to forward received playback controls
to a service that’s managing the <code>MediaSessionCompat</code> class. The
<code>MediaSessionCompat</code> class has a
constructor that can automatically find a media button receiver in the manifest. A
media button receiver is a key part to <a href=
"http://developer.android.com/training/managing-audio/volume-playback.html#PlaybackControls">handling
playback controls</a> from hardware or bluetooth controls.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat library:</a></dt>
<dd>
<ul>
<li>Added material design <code>Seekbar</code> and <code>ImageButton</code> widgets.</li>
<li>Updated the <code>ImageView</code> widget to support the tint feature.</li>
<li>Updated the look-and-feel of the <code>SwitchCompat</code> widget.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-mediarouter">v7 mediarouter library:</a></dt>
<dd>
<ul>
<li>Added the following features to the <code>MediaRouteChooserDialog</code> class:</li>
<ul>
<li>Displays a loading page while discovering media route providers.</li>
<li>Includes a device type icon for easier device identification.</li>
<li>Sorts the routes according to frequency of use in the current app.</li>
<li>Supports landscape mode.</li>
</ul>
</ul>
<ul>
<li>Added the following features to the <code>MediaRouteControllerDialog</code> class:</li>
<ul>
<li>Recognizes screen casting and provides a proper description.</li>
<li>Supports various album art sizes and aspect ratios, and loads the art asynchronously.</li>
<li>Automatically selects the content color based on the primary color of the app.</li>
<li>Adjusts the dialog layout based on available screen space on the device.</li>
<li>Supports landscape mode.</li>
</ul>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-palette">v7 palette library:</a></dt>
<dd>
<ul>
<li>Added the <code>setRegion()</code> method to support extracting color from a specific
region of a <code>Bitmap</code> object.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-recyclerview">v7 recyclerview library:</a></dt>
<dd>
<ul>
<li>Added an improved animation API to the <code>ItemAnimator</code> class for better
customizations:</li>
<ul>
<li>Change animations no longer enforce two copies of the <code>ViewHolder</code> object,
which enables item content animations. Also, the <code>ItemAnimator</code> object
decides whether it wants to reuse the same <code>ViewHolder</code> object or create a
new one.</li>
<li>The new information record API gives the <code>ItemAnimator</code> class the flexibility
to collect data at the correct point in the layout lifecycle. This information is later
passed into the animate callbacks.</li>
</ul>
</ul>
<ul>
<li>Provided an easy transition plan for this backward-incompatible API change:</li>
<ul>
<li>If you’ve previously extended the <code>ItemAnimator</code> class, you can change
your base class to <code>SimpleItemAnimator</code> and your code should work as before.
The <code>SimpleItemAnimator</code> class provides the old API by wrapping the new API.</li>
<li>Some methods were removed from the <code>ItemAnimator</code> class. The following
code will no longer compile:</li>
<pre>recyclerView.getItemAnimator().setSupportsChangeAnimations(false)</pre>
<p>You can replace it with:</p>
<pre>
ItemAnimator animator = recyclerView.getItemAnimator();
if (animator instanceof SimpleItemAnimator) {
((SimpleItemAnimator) animator).setSupportsChangeAnimations(false);
}
</pre>
</ul>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-preference">v7</a>,
<a href="features.html#v14-preference">v14</a>, and
<a href="features.html#v17-preference">v17</a> Preference Support library:</dt>
<dd>
<ul>
<li>Removed APIs for controlling <code>EditText</code> dialogs.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v17-leanback">v17 Leanback Support library:</a></dt>
<dd>
<ul>
<li>Added a version of the <code>GuidedStepFragment</code> class for the Support library
(extends <code>android.support.v4.app.Fragment</code>), and improved animations and
transitions.</li>
<li>Updated the <code>GuidedStepFragment</code> class so it can be placed on top of
existing content.</li>
<li>Added the ability to annotate different types of search completions to the
<code>SearchFragment</code> class.</li>
<li>Added staggered slide transition support to the <code>VerticalGridFragment</code>
class.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#design">Design Support library:</a></dt>
<dd>
<ul>
<li>Added <a href=
"https://www.google.com/design/spec/components/text-fields.html#text-fields-character-counter">
character counting</a> support to the <code>TextInputLayout</code> widget.</li>
<li>Added edge snapping support to the <code>AppBarLayout</code> class by adding the
<code>SCROLL_FLAG_SNAP</code> constant. When scrolling ends, if the view is only
partially visible, the view is snapped and scrolled to its closest edge.</li>
<li>Added support for custom views to the <code>NavigationView</code> class by using the
<code>app:actionLayout</code> attribute or <code>MenuItemCompat.setActionView()</code>
method.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#custom-tabs">Custom Tabs Support library:</a></dt>
<dd>
<ul>
<li>Added the <code>enableUrlBarHiding()</code> method to the <code>CustomTabsIntent</code>
class. It lets the client customize whether the URL bar should be hidden automatically
on scroll down.</li>
<li>Added the <code>setActionButton()</code> method to the <code>CustomTabsSession</code>
class. It lets the client
change the icon for a custom action button in an already launched custom tab.</li>
<li>Added the <code>TAB_SHOWN</code> and <code>TAB_HIDDEN</code> constants as new events
for the <code>onNavigationEvent</code> method of the <code>CustomTabsCallback</code>
class.</li>
</ul>
</dd>
</dl>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev23-0-1"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 23.0.1</a> <em>(September 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v7-preference">v7</a> and
<a href="features.html#v14-preference">v14</a> Preference Support library:</dt>
<dd>
<ul>
<li>Added the material design layout and style files.
(<a href="http://b.android.com/183376">Issue 183376</a>)</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat library:</a></dt>
<dd>
<ul>
<li>Fixed crash issues for the {@link android.app.Fragment} class by limiting the use of
hardware layers to Android 4.1 (API level 16) and higher.
(<a href="http://b.android.com/183896">Issue 183896</a>)</li>
<li>Fixed an issue where hardware buttons did not work when an activity had set the
{@link android.widget.Toolbar} class to act as the
{@link android.app.ActionBar} by using the <code>setSupportActionBar()</code> method.
(<a href="http://b.android.com/183334">Issue 183334</a>)</li>
<li>Updated the {@link android.support.v7.app.AppCompatDialogFragment} class so it
no longer throws the {@code Windows feature must be requested before adding content}
error.
(<a href="http://b.android.com/183186">Issue 183186</a>)</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#design">Design Support library:</a></dt>
<dd>
<ul>
<li>Fixed the
{@link android.support.design.widget.AppBarLayout} class so it now draws correctly after
rotation.
(<a href="http://b.android.com/183109">Issue 183109</a>)</li>
<li>Fixed the
{@link android.support.design.widget.TabLayout} class so it now behaves correctly when a
user clicks after a swipe.
(<a href="http://b.android.com/183123">Issue 183123</a>)</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#custom-tabs">Custom Tabs Support library:</a></dt>
<dd>
<ul>
<li>Lowered the
<a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html"><code>minSdkVersion</code></a>
value from 16 to 15 for version support.</li>
<li>Added a way to generate a
{@link android.support.customtabs.CustomTabsSessionToken} from an intent.</li>
</ul>
</dd>
</dl>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev23"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 23</a> <em>(August 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Added new support libraries:</a></dt>
<dd>
<ul>
<li><a href="features.html#custom-tabs">Custom Tabs Support library</a></li>
<li><a href="features.html#percent">Percent Support library</a></li>
<li><a href="features.html#recommendation">App Recommendation Support library for TV</a></li>
<li><a href="features.html#v7-preference">v7 Preference Support library</a></li>
<li><a href="features.html#v14-preference">v14 Preference Support library</a></li>
<li><a href="features.html#v17-preference">v17 Preference Support library for TV</a></li>
</ul>
</dd>
</dl>
<p>For a complete list of the Support Library changes, see the
<a href="{@docRoot}sdk/support_api_diff/23/changes.html">Support
Library API Differences Report</a>. </p>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev22-2-1"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 22.2.1</a> <em>(July 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#design">Design Support library:</a></dt>
<dd>
<ul>
<li>Added the {@code hide()} and {@code show()} methods to the
{@link android.support.design.widget.FloatingActionButton} class for programmatic
triggering of animations. </li>
<li>Added the {@code LENGTH_INDEFINITE} constant to the
{@link android.support.design.widget.Snackbar} class for showing a snackbar
until it is dismissed or another snackbar is shown. Also, added the
{@link android.support.design.widget.Snackbar#setActionTextColor(int)} and
{@link android.support.design.widget.Snackbar#setActionTextColor(ColorStateList)}
methods. </li>
<li>Added the {@code getSelectedTabPosition()} method to the
{@link android.support.design.widget.TabLayout} class for retrieving the currently
selected tab. </li>
<li>Provided a fully fluent API for the
{@link android.support.v7.app.NotificationCompat.MediaStyle} class for method
chaining. </li>
<li>Added convenience methods to the
{@link android.support.v7.widget.RecyclerView} for batch insertion of items. </li>
</ul>
</dd>
</dl>
<p>For a complete list of the Support Library changes, see the
<a href="{@docRoot}sdk/support_api_diff/22.2.0/changes.html">Support
Library API Differences Report</a>. </p>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 22.2.0</a> <em>(May 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Added <a href="features.html#design">Design Support library:</a></dt>
<dd>
<ul>
<li>Added {@link android.support.design.widget.TextInputLayout} for showing
{@link android.widget.EditText} hint and error text as floating labels.
</li>
<li>Added {@link android.support.design.widget.FloatingActionButton} for implementing a
primary action on your interface as a
floating action button, supporting either default or mini sizes.
</li>
<li>Added {@link android.support.design.widget.Snackbar} for providing lightweight
feedback with an optional action in an animated snackbar.
</li>
<li>Added {@link android.support.design.widget.TabLayout} for implementing fixed and
scrollable
<a href="{@docRoot}design/building-blocks/tabs.html">tabs</a> as well as easy
integration with
{@link android.support.v4.view.ViewPager}.
</li>
<li>Added {@link android.support.design.widget.NavigationView} for implementing
<a href="{@docRoot}design/patterns/navigation-drawer.html">navigation drawer</a>
contents, including the ability to inflate menu items via a
<a href="{@docRoot}guide/topics/resources/menu-resource.html">Menu Resource</a>.
</li>
<li>Added {@link android.support.design.widget.CoordinatorLayout}, a general purpose
layout, used for building dependencies between
sibling views and allowing easy scrolling reactions between components via
{@link android.support.design.widget.CoordinatorLayout.Behavior}. Many of the Design
Library components rely on being a child of a
{@link android.support.design.widget.CoordinatorLayout}.
</li>
<li>Added {@link android.support.design.widget.AppBarLayout}, a container for a
{@link android.widget.Toolbar}
and other views (such as {@link android.support.design.widget.TabLayout}) for
reacting to scrolling events by scrolling off the screen, becoming visible in reaction
to a downward scroll, or collapsing/uncollapsing before scrolling off/onto the screen.
</li>
<li>Added {@link android.support.design.widget.CollapsingToolbarLayout} for controlling
how a {@link android.widget.Toolbar} collapses. A toolbar may collapse by:
pinning components to the top of the screen while it collapses, introducing
parallax scrolling of components such as an {@link android.widget.ImageView},
or adding a content scrim color when the view is partially collapsed.
</li>
</ul>
</dt>
<dt>Changes for <a href="features.html#v4">v4 support library:</a></dt>
<dd>
<ul>
<li>Added the
{@link android.support.v4.view.accessibility.AccessibilityEventCompat#getContentChangeTypes getContentChangeTypes()}
and
{@link android.support.v4.view.accessibility.AccessibilityEventCompat#setContentChangeTypes setContentChangeTypes()}
methods and related change type
fields to the
{@link android.support.v4.view.accessibility.AccessibilityEventCompat}
class for accessibility event handling.
</li>
<li>Added the
{@link android.support.v4.media.session.PlaybackStateCompat#getActiveQueueItemId getActiveQueueItemId()},
{@link android.support.v4.media.session.PlaybackStateCompat#getCustomActions getCustomActions()},
and
{@link android.support.v4.media.session.PlaybackStateCompat#getExtras getExtras()}
methods with related state fields to the
{@link android.support.v4.media.session.PlaybackStateCompat} class for
getting custom actions from the queue.
</li>
<li>Added the
{@link android.support.v4.media.session.PlaybackStateCompat.Builder#addCustomAction addCustomAction()},
{@link android.support.v4.media.session.PlaybackStateCompat.Builder#setActiveQueueItemId setActiveQueueItemId()},
and
{@link android.support.v4.media.session.PlaybackStateCompat.Builder#setExtras setExtras()}
methods to the
{@link android.support.v4.media.session.PlaybackStateCompat.Builder} class for adding
custom actions to a playback state.
</li>
<li>Added the
{@link android.support.v4.media.session.PlaybackStateCompat.CustomAction#fromCustomAction fromCustomAction()} and
{@link android.support.v4.media.session.PlaybackStateCompat.CustomAction#getCustomAction getCustomAction()} methods
to the
{@link android.support.v4.media.session.PlaybackStateCompat.CustomAction} class
for getting custom actions from the queue.
</li>
<li>Added the {@link android.support.v4.view.ViewCompat#isAttachedToWindow isAttachedToWindow()},
{@link android.support.v4.view.ViewCompat#offsetLeftAndRight offsetLeftAndRight()}, and
{@link android.support.v4.view.ViewCompat#offsetTopAndBottom offsetTopAndBottom()}
methods to the {@link android.support.v4.view.ViewCompat} class for working with views.
</li>
<li>Added the {@link android.support.v4.view.ViewPager#addOnPageChangeListener addOnPageChangeListener()},
{@link android.support.v4.view.ViewPager#clearOnPageChangeListeners clearOnPageChangeListeners()}, and
{@link android.support.v4.view.ViewPager#removeOnPageChangeListener removeOnPageChangeListener()}
methods to the {@link android.support.v4.view.ViewPager} class for responding to page
changes.
<p>Deprecated the
{@link android.support.v4.view.ViewPager#setOnPageChangeListener setOnPageChangeListener()} method.</p>
</li>
<li>Added the
{@link android.support.v4.view.ViewParentCompat#notifySubtreeAccessibilityStateChanged notifySubtreeAccessibilityStateChanged()} method to
the {@link android.support.v4.view.ViewParentCompat} class for notifying a view parent
that the accessibility state of one of its descendants has changed.
</li>
<li>Added the {@link android.support.v4.view.ViewPropertyAnimatorCompat#translationZ translationZ()},
{@link android.support.v4.view.ViewPropertyAnimatorCompat#translationZBy translationZBy()},
{@link android.support.v4.view.ViewPropertyAnimatorCompat#z z()}, and
{@link android.support.v4.view.ViewPropertyAnimatorCompat#zBy zBy()}
methods to the {@link android.support.v4.view.ViewPropertyAnimatorCompat} class for
adding animation.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat library</a>:</dt>
<dd>
<ul>
<li>Added the
{@link android.support.v7.app.AppCompatActivity#onWindowStartingSupportActionMode onWindowStartingSupportActionMode()}
method to the
{@link android.support.v7.app.AppCompatActivity},
{@link android.support.v7.app.AppCompatCallback}, and
{@link android.support.v7.app.AppCompatDialog} classes for handling action modes
started from the current window.
</li>
<li>Added the
{@link android.support.v7.app.AppCompatDelegate#isHandleNativeActionModesEnabled isHandleNativeActionModesEnabled()} and
{@link android.support.v7.app.AppCompatDelegate#setHandleNativeActionModesEnabled setHandleNativeActionModesEnabled()}
methods to the
{@link android.support.v7.app.AppCompatDelegate} class for handling native action modes.
</li>
</ul>
</dd>
<p>For a complete list of the Support Library changes, see the
<a href="{@docRoot}sdk/support_api_diff/22.2.0/changes.html">Support
Library API Differences Report</a>. </p>
</dl>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 22.1.0</a> <em>(April 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#annotations">annotations library:</a></dt>
<dd>
<ul>
<li>Added the Annotations library to provide support for enhanced code inspections.
Annotations are added as metadata tags that you attach to variables, parameters,
and return values to inspect method return values, passed parameters, and local
variables and fields.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v4">v4 support library:</a></dt>
<dd>
<ul>
<li>Added the {@link android.support.v4.graphics.ColorUtils ColorUtils} class
to provide a set of color-related utility methods.
</li>
<li>Added the {@link android.support.v4.graphics.drawable.DrawableCompat#unwrap unwrap()} and
{@link android.support.v4.graphics.drawable.DrawableCompat#wrap wrap()} methods to the
{@link android.support.v4.graphics.drawable.DrawableCompat} class , allowing you to use
{@link android.support.v4.graphics.drawable.DrawableCompat#setTint setTint()},
{@link android.support.v4.graphics.drawable.DrawableCompat#setTintList setTintList()},
and {@link android.support.v4.graphics.drawable.DrawableCompat#setTintMode setTintMode()}
on all API level 4 or higher devices.
</li>
<li>Added the {@link android.support.v4.os.TraceCompat} class to
write trace events to the system trace buffer, which can then be collected and
visualized using the <a href="{@docRoot}tools/help/systrace.html">Systrace</a> tool.
</li>
<li>Added the {@link android.support.v4.util.CircularIntArray} class
to create circular integer array data structures.
</li>
<li>Added the {@link android.support.v4.util.CircularArray#clear clear()},
{@link android.support.v4.util.CircularArray#removeFromStart removeFromStart()},
and {@link android.support.v4.util.CircularArray#removeFromEnd removeFromEnd()}
methods to the {@link android.support.v4.util.CircularArray} class. Also, changed the
existing methods in this class to be non-final.
</li>
<li>Added the {@link android.support.v4.view.InputDeviceCompat}
as a helper class to access data in the
{@link android.support.v4.view.InputDeviceCompat} class.
</li>
<li>Added the {@link android.support.v4.view.LayoutInflaterCompat}
class as a helper class to access data in the
{@link android.support.v4.view.LayoutInflaterCompat} class
and added the {@link android.support.v4.view.LayoutInflaterFactory} interface.
</li>
<li>Added classes, methods, and interfaces to support nested scrolling.
<ul>
<li>Added the {@link android.support.v4.view.NestedScrollingChildHelper}
and {@link android.support.v4.view.NestedScrollingParentHelper}
helper classes for implementing nested scrolling parent and child views.</li>
<li>Added the {@link android.support.v4.view.NestedScrollingChild}
interface to be implemented by {@link android.view.View} subclasses.</li>
<li>Added the {@link android.support.v4.view.NestedScrollingParent}
and {@link android.support.v4.view.ScrollingView} interfaces to support
scrolling operations and provide scroll related APIs.</li>
<li>Added the
{@link android.support.v4.view.ViewGroupCompat#getNestedScrollAxes
getNestedScrollAxes()} method to the {@link android.support.v4.view.ViewGroupCompat}
class.</li>
<li>Added methods to the {@link android.support.v4.view.ViewParentCompat} class to
support nested scrolling.
</li>
<li>Added the {@link android.support.v4.widget.NestedScrollView}
class to support nested scrolling parent and child on both new and old versions of
Android.
</li>
</ul>
</li>
<li>Added methods and constants to the {@link android.support.v4.view.MotionEventCompat}
class for getting axis values and event source.
</li>
<li>Updated the {@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}
class to add methods for errors, content invalidation and labels.
</li>
<li>Added the following interpolation classes for animation:
{@link android.support.v4.view.animation.FastOutLinearInInterpolator},
{@link android.support.v4.view.animation.FastOutSlowInInterpolator},
{@link android.support.v4.view.animation.LinearOutSlowInInterpolator},
{@link android.support.v4.view.animation.LinearOutSlowInInterpolator}, and
{@link android.support.v4.view.animation.PathInterpolatorCompat}.
</li>
<li>Added the {@link android.support.v4.widget.Space} class to create gaps between
components in general purpose layouts. This class is deprecated in the gridlayout library.
</li>
<li>Added the {@link android.support.v4.widget.TextViewCompat} class for accessing
features in a {@link android.widget.TextView}.
</li>
<li>Added a displacement parameter to the
{@link android.support.v4.widget.EdgeEffectCompat#onPull onPull()} method in the
{@link android.support.v4.widget.EdgeEffectCompat} class.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat library</a>:</dt>
<dd>
<ul>
<li>Added tint support to appcompat widgets, including
{@link android.support.v7.widget.AppCompatAutoCompleteTextView},
{@link android.support.v7.widget.AppCompatButton},
{@link android.support.v7.widget.AppCompatCheckBox},
{@link android.support.v7.widget.AppCompatCheckedTextView},
{@link android.support.v7.widget.AppCompatEditText},
{@link android.support.v7.widget.AppCompatMultiAutoCompleteTextView},
{@link android.support.v7.widget.AppCompatRadioButton},
{@link android.support.v7.widget.AppCompatRatingBar},
{@link android.support.v7.widget.AppCompatSpinner}, and
{@link android.support.v7.widget.AppCompatTextView}.
</li>
<li>Updated the {@link android.support.v7.app.AppCompatActivity} as the base
class for activities that use the support library action bar features. This class
replaces the deprecated {@link android.support.v7.app.ActionBarActivity}.
</li>
<li>Added the
{@link android.support.v7.app.AppCompatCallback} interface
to be implemented for AppCompat to be able to perform callbacks.
</li>
<li>Added the
{@link android.support.v7.app.AppCompatDelegate} abstract class
as a delegate you can use to extend AppCompat's support to any activity.
</li>
<li>Added the
{@link android.support.v7.app.AppCompatDialog} class
as the base class for AppCompat themed dialogs.
</li>
<li>Added the spinner style
{@link android.support.v7.app.AlertDialog} and
{@link android.support.v7.app.AlertDialog.Builder} classes to provide an AppCompat
themed {@link android.app.AlertDialog}.
</li>
<li>Added the {@link android.support.v7.graphics.Palette.Builder} class
for generating {@link android.support.v7.graphics.Palette} instances.
<ul>
<li>Added the
{@link android.support.v7.graphics.Palette#from}
method to the {@link android.support.v7.graphics.Palette} class to
start generating a Palette with the returned
{@link android.support.v7.graphics.Palette.Builder} instance.
</li>
<li>Deprecated the {@link android.support.v7.graphics.Palette#generate generate()} and
{@link android.support.v7.graphics.Palette#generateAsync generateAsync()} methods.
</li>
</ul>
</li>
<li>Added the
{@link android.support.v7.widget.GridLayout.Spec#getAbsoluteAlignment
getAbsoluteAlignment()} method to the {@link android.support.v7.widget.GridLayout.Spec}
class.
</li>
<li>Deprecated use of <code>app:theme</code> for styling
{@link android.support.v7.widget.Toolbar}. You can now use
<code>android:theme</code> for toolbars on all API level 7 and higher devices and
<code>android:theme</code> support for all widgets on API level 11 and higher devices.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v17-leanback">v17 leanback library</a>:</dt>
<dd>
<ul>
<li> Added {@link android.support.v17.leanback.app.GuidedStepFragment},
{@link android.support.v17.leanback.widget.GuidanceStylist} and
{@link android.support.v17.leanback.widget.GuidedActionsStylist} to support
creating multi-step decision flows.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-recyclerview">v7 recyclerview library</a>:</dt>
<dd>
<ul>
<li>Added {@link android.support.v7.util.SortedList} classes to display items in
a list order and provide notification of changes to the list.
</li>
<li>Added the {@link android.support.v7.widget.util.SortedListAdapterCallback} class
that can bind a sorted list to a
{@link android.support.v7.widget.RecyclerView.Adapter} class.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v8-renderscript">v8 renderscript library</a>:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v8.renderscript.ScriptIntrinsicHistogram} class for
use as a histogram filter.</li>
<li>Added the {@link android.support.v8.renderscript.ScriptIntrinsicResize} class for
performing a resize of a 2D allocation.
</li>
</ul>
</dd>
</dl>
</div>
</div> <!-- end of collapsible section -->
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 22</a> <em>(March 2015)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v4">v4 support library:</a></dt>
<dd>
<ul>
<li>Updated the {@link android.support.v4.content.res.ResourcesCompat#getDrawable
getDrawable()} method to return a drawable object for a specified specific resource ID,
screen density, and theme.
</li>
<li>Added the {@link android.support.v4.view.ViewCompat#setImportantForAccessibility
setImportantForAccessibility()} method so you can indicate if a view should trigger
accessibility events.
</li>
<li>Added the {@link android.support.v4.widget.DrawerLayout#getStatusBarBackgroundDrawable
getStatusBarBackgroundDrawable()} method so you can get the status bar background
drawable.
</li>
<li>Added methods to the
{@link android.support.v4.app.NotificationCompat.CarExtender.UnreadConversation}
class so Android Auto messaging apps can retrieve additional notification data.
</li>
<li>Added the {@link android.support.v4.widget.SwipeRefreshLayout#getProgressCircleDiameter
getProgressCircleDiameter()} method to return the diameter of a circle layout.
</li>
<li>Changed the default {@link android.support.v4.widget.DrawerLayout DrawerLayout}
status bar color to {@link android.R.attr#colorPrimaryDark}.
</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat library</a>:</dt>
<dd>
<ul>
<li>Added the spinner style
{@link android.support.v7.appcompat.R.style#Base_Widget_AppCompat_Spinner_Underlined}.</li>
<li>Added tinted widgets styles with
{@link android.support.v7.appcompat.R.style#Widget_AppCompat_AutoCompleteTextView},
{@link android.widget.MultiAutoCompleteTextView},
{@link android.support.v7.appcompat.R.style#TextAppearance_AppCompat_Button}, and
{@link android.support.v7.appcompat.R.style#Base_Widget_AppCompat_RatingBar}.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v17-leanback">v17 leanback library</a>:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v17.leanback.widget.ListRowPresenter#getRecycledPoolSize
getRecycledPoolSize()} and
{@link android.support.v17.leanback.widget.ListRowPresenter#setRecycledPoolSize
setRecycledPoolSize()} methods to allow customized recycled pool sizes.</li>
<li>Added the {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT} attribute to the
layout width setting to support wrapped content for title icons.</li>
<li>Defined {@link android.support.v17.leanback.R.transition} in XML to
improve transition updates. </li>
<li>Enabled support for right to left layouts.</li>
<li>Added the play and pause media key events support to the
{@link android.support.v17.leanback.app.PlaybackOverlayFragment} class.</li>
<li>Added enter and return transitions to the
{@link android.support.v17.leanback.app.BrowseFragment} class and the
{@link android.support.v17.leanback.app.DetailsFragment} class.</li>
<li>Added the {@link android.support.v17.leanback.widget.ArrayObjectAdapter#replace
replace()} method to replace items in an object’s adapter array. </li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-mediarouter">v7 mediarouter library</a>:</dt>
<dd>
<ul>
<li>Updated Google Cast icons to use the
<a href="{@docRoot}training/material/index.html">material design</a> style.</li>
<li>Updated all the icons used in the {@link android.media.MediaRouter} dialogs to use the
<a href="{@docRoot}training/material/index.html">material design</a> style.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-recyclerview">v7 recyclerview library</a>:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v7.widget.RecyclerView.ViewHolder#getLayoutPosition
getlayoutPosition()}
and {@link android.support.v7.widget.RecyclerView.ViewHolder#getAdapterPosition
getadapterPosition()} methods to the {@link android.support.v7.widget.RecyclerView}
class.</li>
<li>Deprecated the <code>classgetChildPosition()</code> and
<code>findViewHolderForPosition()</code> methods in the
{@link android.support.v7.widget.RecyclerView} class. </li>
<li>Deprecated the <code>getPosition()</code> method in the
{@link android.support.v7.widget.RecyclerView.ViewHolder} class. </li>
<li>Deprecated the <code>getViewPosition()</code> method in the
{@link android.support.v7.widget.RecyclerView.LayoutParams} class. </li>
</ul>
</dd>
</div>
</div>
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 21.0.3</a> <em>(December 2014)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v4">v4 support library:</a></dt>
<dd>
<ul>
<li>Added several {@link android.support.v4.app.NotificationCompat.WearableExtender}
methods to improve the display of barcodes in notifications on wearable devices.
<ul>
<li>{@link android.support.v4.app.NotificationCompat.WearableExtender#getHintScreenTimeout getHintScreenTimeout()}</li>
<li>{@link android.support.v4.app.NotificationCompat.WearableExtender#setHintScreenTimeout setHintScreenTimeout()}</li>
<li>{@link android.support.v4.app.NotificationCompat.WearableExtender#getHintAvoidBackgroundClipping getHintAvoidBackgroundClipping()}</li>
<li>{@link android.support.v4.app.NotificationCompat.WearableExtender#setHintAvoidBackgroundClipping setHintAvoidBackgroundClipping()}</li>
</ul>
</li>
</ul>
</dd>
</div>
</div>
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 21.0.2</a> <em>(November 2014)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v4">v4 support library:</a></dt>
<dd>
<ul>
<li>Added {@link android.support.v4.app.NotificationCompat.CarExtender}
class to support Android Auto extensions to notifications.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat library</a>:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v7.widget.PopupMenu} constructor to support new popup
menus.</li>
<li>Added support for a Collapse icon description in the {@link android.support.v7.widget.Toolbar}
class.</li>
<li>Updated the {@link android.support.v7.widget.SearchView} widget to support displaying
the {@link android.support.v7.appcompat.R.attr#commitIcon}. </li>
<li>Removed the <code>buttonGravity</code> attribute from the
{@link android.support.v7.widget.Toolbar} class. </li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-cardview">v7 cardview library</a>:</dt>
<dd>
<ul>
<li>Added {@link android.support.v7.widget.CardView#setCardBackgroundColor} API to
support changing the background color of the {@link android.support.v7.widget.CardView}.</li>
<li>Changed the {@link android.support.v7.widget.CardView} to more accurately report its
opacity value as {@link android.graphics.PixelFormat#TRANSLUCENT}.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-recyclerview">v7 recyclerview
library</a>:</dt>
<dd>
<ul>
<li>Added {@link android.support.v7.widget.RecyclerView#TOUCH_SLOP_DEFAULT} and
{@link android.support.v7.widget.RecyclerView#TOUCH_SLOP_PAGING} constants
to the {@link android.support.v7.widget.RecyclerView} class
to support touch slop configurations for paging.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v17-leanback">v17 leanback library</a>:</dt>
<dd>
<ul>
<li>Added support to generate v4 code fragments. </li>
<li>Changed the secondary text color on {@link android.support.v7.widget.CardView}. </li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 21.0.1</a> <em>(November 2014)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Added <a href="{@docRoot}tools/support-library/features.html#multidex">
multidex support library</a> to support multiple
<a href="https://source.android.com/devices/tech/dalvik/">Dalvik</a> Executable (DEX) files
for multi-dex file support prior to Android 5.0.
</dt>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p id="rev21"><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 21</a> <em>(October 2014)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for <a href="features.html#v4">v4 support library:</a></dt>
<dd>
<ul>
<li>Added support for {@link android.support.v4.app.Fragment}
transitions for devices running Android 5.0 (API level 21).
Be aware that transitions have no effect on devices running
Android 4.4 and lower.
</li>
<li>Added {@link android.support.v4.provider.DocumentFile} to ease
the transition from {@link java.io.File}
while working with document trees. However, this class demands
more processing overhead compared to the platform's
{@link android.provider.DocumentsContract} API added in
Android 4.4 (API level 19). So you should switch to using {@link
android.provider.DocumentsContract} when running on Android 4.4
and higher.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v7-appcompat">v7 appcompat
library</a>:</dt>
<dd>
<ul>
<li>Added support for <a href="{@docRoot}design/material/">material
design</a> user interfaces.</li>
<li>Added {@link android.support.v7.widget.Toolbar}, which generalizes
the functionality of {@link android.support.v7.app.ActionBar} for
use within app layouts.</li>
<li>Updated {@link android.support.v7.app.ActionBarDrawerToggle},
which contains the menu-to-arrow animation</li>
<li>Updated common user interface widgets to allow tinting via theme
attributes when running on pre-Android 5.0 devices</li>
<li>Added {@link android.support.v7.widget.SwitchCompat}, a backport
of the {@link android.widget.Switch} widget that was added in
Android 4.0 (API level 14).</li>
</ul>
</dd>
<dt>New <a href="features.html#v7-cardview">v7 cardview library</a>:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v7.widget.CardView} widget, which
provides a material design-compatible implementation for displaying
data items.</li>
</ul>
</dd>
<dt>New <a href="features.html#v7-recyclerview">v7 recyclerview
library</a>:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v7.widget.RecyclerView} widget,
which provides a flexible list view for providing a limited window
into a large data set.</li>
</ul>
</dd>
<dt>New <a href="features.html#v7-palette">v7 palette library</a>:</dt>
<dd>
<ul>
<li>Added {@link android.support.v7.graphics.Palette} class,
which lets you extract prominent colors from an image.</li>
</ul>
</dd>
<dt>New <a href="features.html#v17-leanback">v17 leanback library</a>:</dt>
<dd>
<ul>
<li>Added support for building TV user interfaces, including
{@link android.support.v17.leanback.app.BrowseFragment},
{@link android.support.v17.leanback.app.DetailsFragment}, and
{@link android.support.v17.leanback.app.PlaybackOverlayFragment}.
For more information about using these user interface widgets,
see <a href="{@docRoot}training/tv/playback/index.html">Building TV
Playback Apps</a>.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 20</a> <em>(July 2014)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added extended notification support for Android Wear in
{@link android.support.v4.app.NotificationCompat.WearableExtender}, which allows you
to specify wearable-specific features in your notifications.</li>
<li>Added {@link android.support.v4.app.NotificationCompat.Action.WearableExtender},
which allows actions to be added on wearable notifications.</li>
<li>Added {@link android.support.v4.app.NotificationManagerCompat}, which allows you
to issue notifications that properly support wearable features.</li>
<li>Added {@link android.support.v4.app.RemoteInput}, which allows a handheld device
to receive voice input from a notification that appears on a wearable device.</li>
<li>Improved the handling of touch feedback in
{@link android.support.v4.widget.SwipeRefreshLayout}.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 19.1.0</a> <em>(March 2014)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added the {@link android.support.v4.widget.SwipeRefreshLayout} class,
which enables users to refresh the contents of a view with a vertical
swipe gesture.</li>
<li>Fixed accessibility issues with navigation drawers.</li>
</ul>
</dd>
<dt>Changes for v7 appcompat library:</dt>
<dd>
<ul>
<li>Fixed background issues with the action bar.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 19.0.1</a> <em>(December 2013)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Improved {@link android.support.v4.print.PrintHelper} by adding asynchronous
handling of printing.</li>
<li>Fixed the {@link android.support.v4.widget.DrawerLayout} class approximation of
the {@link android.view.View#addChildrenForAccessibility addChildrenForAccessibility()}
method.</li>
<li>Fixed slide drawable mirroring in {@link
android.support.v4.app.ActionBarDrawerToggle}.</li>
<li>Fixed off-by-one issue when removing an item from a collection iterator.</li>
</ul>
</dd>
<dt>Changes for v7 mediarouter library:</dt>
<dd>
<ul>
<li>Improved route identification by using full component name in the {@link
android.support.v7.media.MediaRouteProvider.ProviderMetadata}.</li>
<li>Updated {@link android.support.v7.app.MediaRouteChooserDialog} to hide disabled
routes.</li>
</ul>
</dd>
<dt>Changes for <a href="features.html#v8-renderscript">v8 renderscript library</a></dt>
<dd>
<ul>
<li>Added error propagation for the RenderScript thunking layer.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 19</a> <em>(October 2013)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added support for external Storage APIs with the
{@link android.support.v4.content.ContextCompat#getObbDirs getObbDirs()},
{@link android.support.v4.content.ContextCompat#getExternalFilesDirs getExternalFilesDirs()},
{@link android.support.v4.content.ContextCompat#getExternalCacheDirs getExternalCacheDirs()},
and {@link android.support.v4.os.EnvironmentCompat#getStorageState getStorageState()}.
These helper methods always return a single file object on devices running Android
4.3 (API level 18) and earlier. When running on Android 4.4 (API level 19) and higher,
these methods may return more than one file object.</li>
<li>Added {@link android.support.v4.print.PrintHelper} class that works with the
Print APIs to print images with a minimum of code.</li>
<li>Added drag-to-open user interface support for pop-up menus. For more information, see
{@link android.support.v4.widget.PopupMenuCompat} and
{@link android.support.v4.widget.ListPopupWindowCompat}.</li>
<li>Improved accessibility support with the addition of a
{@link android.support.v4.view.accessibility.AccessibilityNodeProviderCompat#findFocus
findFocus()} method in
{@link android.support.v4.view.accessibility.AccessibilityNodeProviderCompat} and the
{@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat#getLiveRegion
getLiveRegion()} method in
{@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}.</li>
<li>Added helper class {@link android.support.v4.view.ScaleGestureDetectorCompat} for
accessing new scaling gesture methods.</li>
<li>Fixed problem with {@link android.support.v4.app.ActionBarDrawerToggle} in
right-to-left language displays.</li>
<li>Modified {@link android.support.v4.widget.AutoScrollHelper} option to consume
touch events or allow them to be passed through to other views.</li>
</ul>
</dd>
<dt>Changes for v7 mediarouter library:</dt>
<dd>
<ul>
<li>Added support for media playback queuing, setting HTTP header values and media
playback duration.</li>
<li>Added explicit start, get, and end session actions for explicitly managing media
playback sessions with media router.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 18</a> <em>(July 2013)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>User interface
<ul>
<li>Added {@link android.support.v4.text.BidiFormatter} for handling
text strings that combine right to left and left to right-formatted text.</li>
<li>Modified {@link android.support.v4.view.ViewPager} to better handle cases where the
pager has a measured width of zero in the initial layout processing.</li>
<li>Modified {@link android.support.v4.widget.DrawerLayout} and
{@link android.support.v4.widget.SlidingPaneLayout} to not throw exceptions for
measurement while the project code is being edited.</li>
</ul>
</li>
<li>Accessibility
<ul>
<li>Added {@link android.support.v4.widget.ExploreByTouchHelper} to simplify the
implementation of accessibility for custom views.</li>
<li>Fixed a problem with {@link android.support.v4.view.ViewPager} incorrectly
populating {@link
android.support.v4.view.accessibility.AccessibilityEventCompat#TYPE_VIEW_SCROLLED
TYPE_VIEW_SCROLLED} accessibility events.</li>
<li>Fixed a null pointer exception in {@link android.support.v4.view.ViewPager} when
populating an accessibility event.</li>
<li>Simplified {@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}
by changing {@link java.lang.CharSequence} inputs to {@link java.lang.String} objects.
</li>
<li>Deprecated an {@link android.support.v4.view.accessibility.AccessibilityRecordCompat}
constructor that used an {@link java.lang.Object} as input.</li>
</ul>
</li>
<li>Media
<ul>
<li>Added {@link android.support.v4.media.TransportMediator} helper class to manage
media transport control, such as play, pause, skip and other media actions.</li>
<li>Added {@link android.support.v4.hardware.display.DisplayManagerCompat} for managing
display output to one or more device displays.</li>
</ul>
</li>
<li>Other changes
<ul>
<li>Added {@link android.support.v4.content.WakefulBroadcastReceiver} helper class for
implementing a common pattern of detecting a device wakeup event and passing work off
to a {@link android.app.Service} while ensuring that the device does not go back to
sleep before the handoff is complete.</li>
<li>Added two new APIs,
{@link android.support.v4.content.AsyncTaskLoader#commitContentChanged
commitContentChanged()} and
{@link android.support.v4.content.AsyncTaskLoader#rollbackContentChanged
rollbackContentChanged()}, to {@link android.support.v4.content.AsyncTaskLoader} to
help deal with background updates for data changes that are subsequently canceled.
</li>
</ul>
</li>
</ul>
</dd>
<dt>New v7 appcompat library:</dt>
<dd>
<ul>
<li>Added {@link android.support.v7.app.ActionBar} to allow implementation of the
action bar user interface <a href="{@docRoot}design/patterns/actionbar.html">design
pattern</a> back to Android 2.1 (API level 7) and higher. Use of this class requires
that you implement your activity by extending the new
{@link android.support.v7.app.ActionBarActivity} class.</li>
</ul>
</dd>
<dt>New v7 mediarouter library:</dt>
<dd>
<p>Added a new mediarouter library that provides support for the <a
href="https://developers.google.com/cast/">Google Cast developer preview</a>.
The v7 mediarouter library APIs provide a means of controlling the routing of
media channels and streams from the current device to external screens,
speakers, and other destination devices, with compatibility back to Android 2.1
(API level 7). See <a
href="{@docRoot}tools/support-library/features.html#v7-mediarouter">V7
mediarouter library</a> for more information. </p>
<p class="caution">The v7 mediarouter library APIs introduced in Support
Library r18 are subject to change in later revisions of the Support
Library. At this time, we recommend using the library only in connection
with the <a href="https://developers.google.com/cast/">Google Cast
developer preview</a>.</p>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 13</a> <em>(May 2013)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added {@link android.support.v4.widget.DrawerLayout} for creating a
<a href="{@docRoot}training/implementing-navigation/nav-drawer.html">Navigation
Drawer</a> that can be pulled in from the edge of a window.</li>
<li>Added {@link android.support.v4.widget.SlidingPaneLayout} widget for creating linked
summary and detail views that appropriately adapt to various screen sizes.</li>
<li>Added {@link android.support.v4.app.ActionBarDrawerToggle} as a way to tie
together the functions of {@link android.support.v4.widget.DrawerLayout} and {@link
android.app.ActionBar}.</li>
<li>Added {@link android.support.v4.widget.ViewDragHelper} as a new common component
for dragging views within a parent view.</li>
<li>Added {@link android.support.v4.widget.ScrollerCompat} to provide {@link
android.widget.Scroller} and {@link android.widget.OverScroller} compatibility support.
</li>
<li>Added {@link android.support.v4.content.FileProvider} to allow sharing of private
files between applications.</li>
<li>Updated {@link android.support.v4.view.ViewPager} to throw an exception if the
associated {@link android.support.v4.view.PagerAdapter} class is modified without a
call to {@link android.support.v4.view.PagerAdapter#notifyDataSetChanged
notifyDataSetChanged()}.
</li>
<li>Fixed an issue with {@link android.support.v4.view.ViewPager} children drawing sort
order.</li>
<li>Fixed {@link android.support.v4.view.GestureDetectorCompat} to dispatch missing
{@link android.view.GestureDetector.SimpleOnGestureListener#onSingleTapConfirmed} calls
between tap timeout and long press events.</li>
</ul>
</dd>
<dt>New v7 gridlayout library:</dt>
<dd>
<ul>
<li>Added {@link android.support.v7.widget.GridLayout} to provide support for the
{@link android.widget.GridLayout} layout object.</li>
<li>Added {@link android.support.v7.widget.Space} which can be used to create blank areas
within a {@link android.support.v7.widget.GridLayout} layout object.</li>
</ul>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 12</a> <em>(February 2013)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Improved interaction behavior for {@link android.support.v4.view.ViewPager}.</li>
<li>Fixed a bug that could cause {@link android.support.v4.view.ViewPager} to select the
wrong page.</li>
<li>Fixed use of {@link android.support.v4.view.ViewPager#removeView removeView()} method
during layout for {@link android.support.v4.view.ViewPager}.</li>
<li>Fixed issue with {@link android.support.v4.widget.SearchViewCompat} where using the
back button to dismiss does not clear the search text. This fix only applies to
host API levels 14 and higher.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 11</a> <em>(November 2012)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>User Interface
<ul>
<li>Added support for nested {@link android.support.v4.app.Fragment} classes.</li>
<li>Added improvements to {@link android.support.v4.app.FragmentManager} debugging.
</li>
<li>Fixed problem in {@link android.support.v4.app.FragmentTabHost} where fragment
and tab interaction could result in a {@link android.widget.ListView} state loss.
</li>
<li>Fixed issue with user-visible hint in
{@link android.support.v4.app.FragmentStatePagerAdapter}.</li>
<li>Added {@link android.support.v4.view.ViewPager.PageTransformer PageTransformer}
interface to {@link android.support.v4.view.ViewPager} to allow applications to
supply a custom transition behavior for scrolling.</li>
<li>Added new features and fixes to {@link android.support.v4.app.TaskStackBuilder}
from current release.</li>
<li>Fixed {@link android.support.v4.view.PagerTitleStrip} to correctly track the
{@link android.support.v4.view.PagerAdapter} currently in use.</li>
<li>Fixed display flickering, positioning, and text clipping problems with
{@link android.support.v4.view.PagerTitleStrip}.</li>
<li>Fixed {@link android.support.v4.view.PagerTabStrip} to properly respect padding
when drawing an underline.</li>
</ul>
</li>
<li>Accessibility
<ul>
<li>Added support for new accessibility gesture and touch event types in
{@link android.support.v4.view.accessibility.AccessibilityEventCompat}.</li>
<li>Added support for new accessibility APIs in
{@link android.support.v4.view.ViewCompat}.</li>
<li>Added support for {@link android.support.v4.view.ViewCompat#performAccessibilityAction
performAccessibilityAction()} method to {@link android.support.v4.view.ViewCompat}.
</li>
</ul>
</li>
<li>Added support for gestures with {@link android.support.v4.view.GestureDetectorCompat}.
</li>
<li>Added support for performing atomic operations on files using a new
{@link android.support.v4.util.AtomicFile} class.</li>
<li>Added support for the full set of {@code make} methods in
{@link android.support.v4.content.IntentCompat}.</li>
<li>Added {@link android.support.v4.util.LruCache#trimToSize trimToSize()} method in
{@link android.support.v4.util.LruCache} utility class.</li>
<li>Updated {@link android.support.v4.net.ConnectivityManagerCompat} to get NetworkInfo
from a {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION}
broadcast.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 10</a> <em>(August 2012)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added support for notification features introduced in Android 4.1 (API level 16) with
additions to {@link android.support.v4.app.NotificationCompat}.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 9</a> <em>(June 2012)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>User Interface Support
<ul>
<li>Added {@link android.support.v4.view.PagerTabStrip} support, providing enhanced
functionality beyond {@link android.support.v4.view.PagerTitleStrip}.</li>
<li>Fixed various bugs for {@link android.support.v4.view.PagerTitleStrip} and
{@link android.support.v4.view.PagerTabStrip}, including {@link
android.widget.TextView#setAllCaps setAllCaps} option, title alignment,
appearance improvements, minimum width constraints and touch navigation issues.</li>
<li>Added support for {@link android.support.v4.view.ViewPager} page gutters, which
helps the {@link android.support.v4.view.ViewPager} class provide paging support for content with
a large horizontal scroll range, such as a map.</li>
<li>Fixed numerous bugs for {@link android.support.v4.view.ViewPager}, including size
and data set change problems, page positioning, user interaction, scroll tracking and keyboard
navigation problems.</li>
<li>Fixed many bugs for {@link android.support.v4.app.Fragment}, including proper
handling of {@link android.support.v4.app.Fragment#onActivityResult onActivityResult()} when
the target fragment no longer exists, dispatching selection events to invisible fragments, improved
{@link android.support.v4.app.FragmentTransaction#replace FragmentTransaction.replace()} behavior
and added better state handling for fragments being moved out of view.</li>
<li>Added support for the {@link
android.support.v4.view.ViewCompat postOnAnimation()} method in {@link
android.support.v4.view.ViewCompat}.</li>
<li>Updated {@link android.support.v4.app.NavUtils} to use Android 4.1 (API level 16)
<em>Up</em> navigation functionality when available.</li>
</ul>
</li>
<li>Accessibility
<ul>
<li>Updated accessibility support classes, including {@link
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}, to follow fixes made in Android
4.1 (API level 16).</li>
<li>Added support for accessibility scroll actions in {@link
android.support.v4.view.ViewPager}.</li>
</ul>
</li>
<li>General improvements
<ul>
<li>Updated {@link android.support.v4.app.TaskStackBuilder} to reflect API changes in
Android 4.1 (API level 16).</li>
<li>Enhanced {@link android.support.v4.app.TaskStackBuilder} to allow it to be used
from a Service.</li>
<li>Added support for {@link android.support.v4.content.IntentCompat EXTRA_HTML_TEXT}
to {@link android.support.v4.app.ShareCompat}.</li>
<li>Updated {@link android.support.v4.app.NotificationCompat.Builder} to support the
{@link android.support.v4.app.NotificationCompat.Builder#setNumber setNumber()} method.</li>
<li>Added support in {@link android.support.v4.net.ConnectivityManagerCompat} for the
{@link android.support.v4.net.ConnectivityManagerCompat#isActiveNetworkMetered
isActiveNetworkMetered()} method.</li>
</ul>
</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 8</a> <em>(April 2012)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Fixed intent flags for {@link android.app.PendingIntent} objects generated
by {@link android.support.v4.app.TaskStackBuilder}.</li>
<li>Removed unused attributes from the gridlayout library projects to make sure
the library can be built with API level 7 and higher.</li>
<li>Added {@code .classpath} and {@code .project} files for the gridlayout
library project.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 7</a> <em>(March 2012)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added {@link android.support.v4.app.ShareCompat}, which provides helper classes
for sending and receiving content for social sharing applications, including new metadata for
attributing shared data to the source app. This class also provides compatible integration with the
new {@link android.widget.ShareActionProvider} in Android 4.0.</li>
<li>Added {@link android.support.v4.app.NavUtils} and {@link
android.support.v4.app.TaskStackBuilder} to provide support for implementing the
<a href="{@docRoot}design/index.html">Android Design</a> guidelines for navigation. These
additions include a way to implement the action bar's <em>Up</em> button across versions.
For an example implementation of this pattern, see the AppNavigation sample in
({@code <em><sdk></em>/samples/<em><platform></em>/AppNavigation}).</li>
<li>Added {@link android.support.v4.app.NotificationCompat.Builder} to provide a
compatibility implementation of Android 3.0's {@link android.app.Notification.Builder} helper class
for creating standardized system notifications.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 6</a> <em>(December 2011)</em>
</p>
<div class="toggle-content-toggleme">
<p class="note"><strong>Note:</strong> Reference for support library APIs are now available with
the framework references, for example: {@link android.support.v4.app}.</p>
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Changes to ViewPager:
<ul>
<li>Added extra decorative view support for {@link android.support.v4.view.ViewPager}.
Decorative views may be supplied as child views of a pager in XML layout.</li>
<li>Added {@link android.support.v4.view.PagerAdapter#getPageTitle
PagerAdapter.getPageTitle()} to supply title strings for pages, which defaults to no
title for each page.</li>
<li>Added {@link android.support.v4.view.PagerTitleStrip}, a non-interactive title
strip, that can be added as a child of ViewPager. Developers can supply text
appearance and color, as well as layout sizing and gravity information.</li>
<li>Updated {@link android.support.v4.view.PagerAdapter} methods to take ViewGroup
objects, rather than View to avoid class casting in adapter implementations.</li>
<li>Updated {@link android.support.v4.view.ViewPager} to use Launcher-style
fling behavior.</li>
<li>Bug fixes for user interface interaction and test automation.</li>
</ul>
</li>
<li>Support for Fragments:
<ul>
<li>Changed {@code setStartDeferred()} method to {@link
android.support.v4.app.Fragment#setUserVisibleHint}.</li>
<li>Added deferred start for off-screen pages to improve performance.</li>
</ul>
</li>
<li>Support for Accessiblity APIs:
<ul>
<li>Updated {@link android.support.v4.view.AccessibilityDelegateCompat} methods
to return empty lists instead of null.</li>
<li>Added new APIs needed by the v4 samples.</li>
</ul>
</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 5</a> <em>(December 2011)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Support for Accessiblity APIs:
<ul>
<li>Added {@link android.support.v4.view.AccessibilityDelegateCompat}
to support {@link android.view.View.AccessibilityDelegate}.</li>
<li>Added {@link android.support.v4.view.accessibility.AccessibilityEventCompat}
to support {@link android.view.accessibility.AccessibilityEvent}.</li>
<li>Added {@link android.support.v4.view.accessibility.AccessibilityManagerCompat}
to support {@link android.view.accessibility.AccessibilityManager}.</li>
<li>Added {@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}
to support {@link android.view.accessibility.AccessibilityNodeInfo}.</li>
<li>Added {@link android.support.v4.view.accessibility.AccessibilityRecordCompat}
to support {@link android.view.accessibility.AccessibilityRecord}.</li>
<li>Added {@link
android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat}
to support {@link android.accessibilityservice.AccessibilityServiceInfo}.</li>
<li>Added {@link android.support.v4.view.ViewGroupCompat}
to support accessibility features in {@link android.view.ViewGroup}.
</li>
<li>Modified {@link android.support.v4.view.ViewCompat}
to support accessibility features in {@link android.view.View}.</li>
</ul>
</li>
<li>Changes to ViewPager:
<ul>
<li>Added support for margins between pages.
An optional {@link android.graphics.drawable.Drawable} can be provided
to fill the margins.</li>
<li>Added support for {@link android.widget.EdgeEffect}.</li>
<li>Added support for keyboard navigation</li>
<li>Added support to control how many pages are kept to either side
of the current page.</li>
<li>Improved touch physics.</li>
<li>Bug fixes for user interface behavior.</li>
</ul>
</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 4</a> <em>(October 2011)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Added <code>EdgeEffectCompat</code> to
support {@link android.widget.EdgeEffect}.</li>
<li>Added <code>LocalBroadcastManager</code> to allow applications to easily
register for and receive intents within a single application without
broadcasting them globally.</li>
<li>Added support in <code>ViewCompat</code> to check for and set overscroll
modes for {@link android.view.View}s on Android 2.3 and later.</li>
<li>Changes to Fragment APIs:
<ul>
<li>Added new APIs to control the visibility of new menus.</li>
<li>Added custom animation APIs.</li>
<li>Added APIs in <code>FragmentActivity</code> to retain custom,
non-configuration instance data.</li>
<li>Various bug fixes.</li>
</ul>
</li>
<li>Fixed a {@link android.content.Loader} bug that caused issues in
canceling {@link android.os.AsyncTask}s when running on Froyo and older
versions of the platform. The support
code now uses its own version of {@link android.os.AsyncTask} to keep the same
behavior on all platform versions.</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 3</a> <em>(July 2011)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 support library:</dt>
<dd>
<ul>
<li>Adds support for {@link android.app.Fragment.SavedState}</li>
<li>Adds {@code MotionEventCompat} to support newer {@link
android.view.MotionEvent} APIs</li>
<li>Adds {@code VelocityTrackerCompat} to support a newer {@link
android.view.VelocityTracker} APIs</li>
<li>Adds {@code ViewConfigurationCompat} to support a newer {@link
android.view.ViewConfiguration} APIs</li>
<li>All new APIs (available only in the support library) that allow you to create UIs
with horizontal paging, allowing users to swipe left and right between content views. Classes to
support this include:
<ul>
<li>{@code ViewPager}: A {@link android.view.ViewGroup} that manages the
layout for the child views, which the user can swipe between.</li>
<li>{@code PagerAdapter}: An adapter that populates the {@code ViewPager} with the
views that represent each page.</li>
<li>{@code FragmentPagerAdapter}: An extension of {@code PagerAdapter} for flipping
between fragments.</li>
<li>{@code FragmentStatePagerAdapter}: An extension of {@code PagerAdapter} for
flipping between fragments that uses the library's support for {@link
android.app.Fragment.SavedState}.</li>
</ul>
</li>
</ul>
</dd>
<dt>New v13 support library:</dt>
<dd>
<ul>
<li>Includes the {@code FragmentPagerAdapter} and {@code FragmentStatePagerAdapter}
to support the horizontal paging.
<p>These are exactly the same as the APIs added to the v4 support library, but rely on
other platform components in Android 3.2. Use this library instead of v4 if you're developing for
Android 3.2 and higher (all other APIs in the v4 library are already available with API level
13).</p>
</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 2</a> <em>(May 2011)</em>
</p>
<div class="toggle-content-toggleme">
<dl>
<dt>Changes for v4 library:</dt>
<dd>
<ul>
<li>Support for fragment animations</li>
<li>Fix {@link android.support.v4.app.Fragment#onActivityResult Fragment.onActivityResult()}
bug</li>
</ul>
</dd>
</dl>
</div>
</div>
<div class="toggle-content closed">
<p><a href="#" onclick="return toggleContent(this)">
<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt=""
/>Android Support Library, revision 1</a> <em>(March 2011)</em>
</p>
<div class="toggle-content-toggleme">
<p>Initial release with the v4 library.</p>
</div>
</div>
|