Is the XML attribute android:paddingHorizontal
that was introduced in API 26 (Android O
) only available in 26
and above? Is there a support version of it? I require my minSdkVersion
to be much lower than 26.
I’m under the impression that the Android Asset Packaging Tool 2.0 (AAPT2) , that’s been included in Android Studio 3, could possibly help out with this.
From the release AAPT2 release notes:
Version 2.16
aapt2 link ...
Versioning of XML files is more intelligent, using a small set of rules to degrade specific newer attributes to backwards compatible versions of them. Ex: android:paddingHorizontal degrades to android:paddingLeft and android:paddingRight.
But have not idea how to use AAPT2, and I’m not finding much information out there on how to you it, I just see mentioning of it. Is my request even possible?
Any help/answers are greatly appreciated.
Update: Yeah, it doesn’t work on lower SDK versions.