Google’s AppCompat library has quickly become an important way for developers to integrate new platform features in their apps and having them degrade gracefully to older version. A lot of apps started to use it once Material Design was published. Although the material theme was not built-in to older versions, the AppCompat theme was able to replicate the look and feel for older devices. Plus, having an official library from Google means that developers can rely on it for backwards compatibility.
A new version was just released, version 23.2. The new features are highlighted in the video below, which has some of Google’s whimsy.
Here are some of the key additions:
Vectors are a great way for images to scale to any device without losing quality. There’s been a push to use vectors instead of rasterizied images in order to reduce the app’s size and improve scalability. Developers can now use the
support-vector-drawable to use vectors in apps down to Gingerbread. It’s also easy to add vectors directly into an
ImageView in your XML layout.
While many apps have been getting whiter and brighter, it can often be a jarring experience at night. There’s now a way for developers to set a day and a night theme for their app. By checking the user’s time and location, the ideal theme is chosen. This means developers have to maintain two sets of themes, but it should also make it better for users.
Android TV in general has a dark theme, so this may not impact too many TV developers. However, there a number of improvements to the Leanback library.
On a TV, using a phone settings menu wouldn’t make a lot of sense. It’d be stretched out and not take advantage of the screen. For TVs there is the
GuidedStepFragment which lets users step through several menus to select an option. This is getting improved with the addition of a second column. Whereas currently the only visible options are in the single column menu, the update would let apps add options to the secondary menu while keeping the first menu visible.
There’s also a number of new ways to interact with these guided steps. Your guided steps can now make a description editable, include a dropdown menu, and a date selector. It’s all you need to build your own TV payment system.
Developers, update your dependencies
Developers can upgrade their gradle files to use version 23.2 and quickly make the necessary changes for high quality apps on every device.