0

why do I get xmlns: android="http://schemas.android.com/apk/res/android"

after the text view class when I'm trying to run the basic XML code?

On android studio, it runs fine with it, but on Udacity ( where I'm learning from ) it's not a part of code.

3

1 Answer 1

0

When you use android:id="@+id/yourViewId" You are actually calling: http://schemas.android.com/apk/res/android:id

You can also call other namespaces like app and tools.

You can find more information here: Android XML Namespaces

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.