Xml namespace declaration: auto-substitute package name Xml namespace declaration: auto-substitute package name android android

Xml namespace declaration: auto-substitute package name


Turns out that there is a postfix for that: res-auto.

So all you need to do is write

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:custom="http://schemas.android.com/apk/res-auto" />

This will automatically use current package name.