How Can I Set Up Custom Namespaces In Layout File In Android Studio?
I am using the dragsortlistview library for my project which requires the usage of a custom namespace in the XML file in order to customize it. mylayout.xml:
Solution 1:
res-auto
uses the current package name, not the library package name. In your case, it translates to net.mypackage
.
If you want to use the namespace for a library, you need to use its package name. Judging from the class name, you are using the DSLV library from here. So, you'll want to use:
xmlns:dslv="http://schemas.android.com/apk/res/com.mobeta.android.dslv"
Post a Comment for "How Can I Set Up Custom Namespaces In Layout File In Android Studio?"