I have an android project with multiple build targets (using ant). For testing purposes, those build targets all have different package names (so my package name is com.mycompan
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.