What's new in the support library - Google I/O 2016

Android Developers · 30K views · 2016 · 39:47

Open on YouTube

Software (other)Web developmenttalkdated

Why Stack Overflow recommends it

Stack Overflow users link it as an authoritative source when answers depend on new Support Library features, such as vector drawable support from resources and NotificationManagerCompat checks.

Recommended by 1 people across 1 different months, 2012 to 2016.

What it is

A Google I/O 2016 session by members of the Android Support Library team covering recent backwards-compatibility advances, important changes, and the future of the support libraries. It is a conference talk published by the Android Developers channel.

What people said

Recommends marilion91 · 2016-06 · Stack Overflow · on “Android Selector Drawable with VectorDrawables srcCompat”

Some things have changed since I asked this question, so I will answer it myself. With Support Library 23.4.0 the support for VectorDrawables from Ressources was reenabled: Android Support Library 23.4.0 available now [LINK] You can find more information on that in this cast from the Google I/O 2016: What's new in the support library - Google I/O 2016 [this video] You need to add this to every Activity where you want to use VectorDrawables on devices below Android 5.0 (Codename Lollipop, API level 21): static { AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); } So you can now use VectorDrawables in DrawableContainers but it can still cause some issues as mentioned in the sources above

Cites Blundell · 2012-07 · Stack Overflow · on “Android 4.1: How to check notifications are disabled for the application?”

You can't 100% can't. It is asked in this Google I/O 2012 video [LINK] and the Project lead for the new notifications declares that you can't. Edit 2016 update: Now you can check it, as said in this Google I/O 2016 video [this video] . Use NotificationManagerCompat.areNotificationsEnabled() [LINK] , from support library, to check if notifications are blocked on API 19+. The versions below API 19 will return true (notifications are enabled). [LINK]

Cites Amilcar Andrade · 2016-05 · Stack Overflow · on “android design library toolbar shadow”

Update It seems that the support library team from Google introduced the behavior as part of 24.0.0 but it was kind of buggy so now there is a new workaround you need to do. 1 - Create appbar_always_elevated.xml in animator-v21 folder under res directory. <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android=" [LINK] "> <item> <objectAnimator android:propertyName="elevation" android:valueTo="8dp" android:valueType="floatType" android:duration="1"/> </item> </selector> 2 - In AppBarLayout use: <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="300dp" android:fitsSystemWindows="true" android:stateListAnimator="@animator/appbar_always