New "-round" resource qualifier in Android M Preview 2
 
Round screen layouts are now part of the `Configuration`[0] in Android M preview 2. In other words, this new addition introduces a shiny new "-round" resource qualifier that allow developers to have different layouts between round and rectangle screens (as you can currently do with WatchViewStub[1] for instance).

What does all of that mean? Well, if this addition makes it to the Android M release, "hacks" around WindowInsets.isRound()[2] and use of WatchViewStub will finally be over.

[0]: http://developer.android.com/reference/android/content/res/Configuration.html
[1]: http://developer.android.com/reference/android/support/wearable/view/WatchViewStub.html
[2]: http://developer.android.com/reference/android/view/WindowInsets.html#isRound()

#androiddev   #android   #gde   #article  
Photo
Shared publiclyView activity