Denis Volohsin Denis Volohsin - 7 months ago 42
Android Question

Different layouts for different Android versions

Although it seems like stupid question, I'm wondering if there is another elegant way to handle my design problem rather than just to create two separate layouts
My App is supposed to have different custom layouts for ongoing notifications for Marshmallow and Nougat versions. The straightforward way, as I said, is to create two different XML files and load them base on the runtime platform. Is there any another approaches?

Answer Source

You are supposed to create different xml-Files for different versions, Android's Resource Management is designed like this. Check this link for more information

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download