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?
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 https://developer.android.com/guide/topics/resources/providing-resources.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With