Published on August 19th, 2016 | by admin


Android Support Library v23.2 Adds Auto-Switching Day/Night Theme, Support For Vector Drawables, Plus Much More

Android Support Library v23.2 Adds Auto-Switching Day/Night Theme, Support For Vector Drawables, Plus Much More
Total Shares333

  • Development
  • News
  • Videos

Article Contents

  • 1 Vector Drawables and Animated Vector Drawables
  • 2 DayNight Theme
  • 3 New Control: Bottom Sheets
  • 4 Updated Control: RecyclerView
  • 5 Custom Buttons for Custom Tabs
  • 6 Closing

A brand new form of the Android Support Library has become open to designers. This generally is one of the greatest updates in a long time, as a few of the changes have to have a couple of significant internal changes. Around the plus side, there’s not lots of changes which should break existing code, and the majority of the additional features can make it worthwhile. Here is a quick summary of a few of the new changes.

Vector Drawables and Animated Vector Drawables

Full vector support was initially introduced in Android 5. Lollipop, permitting designers to distribute apks with easily resizable vector sketches instead of multiple images at various dimensions. Not just could images be scaly to screens of just about any pixel density, the vector sketches were usually much smaller sized files than the tiniest of images, which meant apk dimensions could drop significantly. Within the situation of graphics-heavy programs, this could cause greater than a 50% reduction in size. Regrettably, this capacity was restricted to API 21 and above.

This is when the AppCompat libraries are wonderful, they are able to bring new options that come with Android to much earlier versions. Using the recently implemented VectorDrawable class, designers are now able to use vector images completely to API 7 (Android 2.1 Eclair). Animated vectors are a little more limited, going only dating back to API 11 (Android 3. Honeycomb), however that still includes greater than 97% of products in active use today.

You can setup or make use of the new vector classes, however it does need a couple of steps and understanding of a couple of workarounds. Make sure to look into the blog publish for particulars.

DayNight Theme

Waking your phone screen and looking straight into a lot of vibrant white-colored pixels could be a little overwhelming following the daylight has faded into night. Some designers took it upon themselves to create some alterations in their designs to take into account different ambient light levels or time, but AppCompat presenting to automate some that. According to your last known location, the most recent version can switch between regular and “night” styles for apps.


No, we totally didN’t Notice that hamburger buttoN iN the top left corNer. /s

The DayNight Theme support requires API 14 and above (Android 4. Frozen Treats Sandwich). The theme will still use older versions of Android, but it’ll default towards the Light theme instantly, instead of switching according to some time and location. Both colors and operation should work fairly instantly with just a few small changes for an app’s styles, but there’s a couple of caveats that needs to be considered. Again, browse the blog publish for particulars.

Although this is an frequently-asked for feature, bear in mind that lots of designers put considerable time and energy into customizing a method, along with a dark mode might not squeeze into their designs. Quite simply, be polite and considerate when asking designers to invest some time and development effort on night styles.

New Control: Bottom Sheets

Aspects of Google’s Material Design recommendations have created numerous varied connects, only one that is more and more popular since its introduction may be the “Bottom Sheet.” It is a page of content that glides up in the bottom and hovers within the relaxation from the interface, kind of pushing anything else in to the background. It is a well known aspect in apps like Google Maps and also the Dialer. It is also employed for such things as transient dialogs, such as the recent switch to YouTube’s overflow menus within the video player screen. (This transformation continues to be on the limited rollout.)

image06components_bottomsheets_usage22016-02-25 02.41.08

The Look Support Library now includes an implementation of Bottom Sheets to be used in third-party apps. If placed in a CoordinatorLayout and configured using the BottomSheetBehavior, it may provide occasions once the sheet is collapsed, dragging, settling, broadened, or hidden.

Updated Control: RecyclerView

Another control-related change has the RecyclerView, which now supports auto-measurement. To describe it really, the RecyclerView are now able to determine its very own size in line with the size its contents. For instance, a RecyclerView could be defined with WRAP_CONTENT, and when there’s not enough products within the list to eat the entire height (or width) from the available space, the RecyclerView is only going to take in the necessary space to carry individuals products. This could permit more flexible designs.

Like the majority of the previous changes and additions, there are several breaking changes connected with this particular new capacity, so be diligent about double examining the particulars in Google’s blog publish in case your apps make use of a RecyclerView to be certain everything continues being employed as intended.

Custom Buttons for Custom Tabs

This past year at I/O 2015, Google introduced Custom Tabs, a means for apps to utilize a Chrome browser window within their connects so customers could gain all the benefits of being signed along with their very own accounts. Fundamental color customizations were possible at the begining of versions, but designers were not permitted to complete greatly using the browser window otherwise. The most recent compatibility library opens some misconception a bit by providing designers a plugin over the bottom where they are able to add their very own custom actions.


The color of the toolbar is configurable and up to five buttons can be added.


A number of things were added with this particular release, plus a handful of other inclusions in the Leanback Library (for Android TV) and Media Browser libraries. If you wish to get hold of the most recent version, just open the SDK Manager (or Android Studio) and appearance for updates. Version 23.2 can look within the listing of Extras.

About the Author

3 Responses to Android Support Library v23.2 Adds Auto-Switching Day/Night Theme, Support For Vector Drawables, Plus Much More

  1. Matt says:

    I noticed that they didn’t mention compatibility with iOS devices. I wonder if that’s a form of tacit verification by omission or just something they want to leave unknown for now…

  2. lulzer says:

    It does work whatever they say (Always used it on my N7). After the trick is done, just delete and re-add your google acocunt (thats the only thing that gets broken temporally) and done.

  3. Grayson says:

    This is why I think Google got Android Auto wrong. You shouldn’t have to plug your phone in every time you get in your car to use it. What a pain. It should just use the built in processor and GPS of the car and have a SIM card slot somewhere.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to Top ↑
  • Get newest posts?

    Email *
  • Hot Posts

  • Recent Comments

  • Categories