Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Associate-Android-Developer Topic 6 Question 51 Discussion

Actual exam question for Google's Associate Android Developer exam
Question #: 51
Topic #: 6
[All Associate Android Developer Questions]

Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Dahlia
8 days ago
Wait, are you guys sure about that? I thought the namespace was related to the Android manifest file, not the package name. Hmm, I'm gonna have to go back and review my notes on this one.
upvoted 0 times
...
Marylou
9 days ago
I agree with Leoma. The namespace should be specific to your package, so it makes sense that it would be 'http://schemas.android.com/apk/[your package name]'. That way, your custom attributes are clearly differentiated from the standard Android ones.
upvoted 0 times
...
Leoma
10 days ago
Okay, let's think this through. The question mentions that the custom attributes belong to a different namespace than the built-in ones, so it's not the android namespace. I'm leaning towards option B, since it seems the most logical choice.
upvoted 0 times
...
Brittni
11 days ago
Hmm, this is a tricky one. I remember learning about custom attributes during my Android development course, but I'm not entirely sure about the namespace specifics.
upvoted 0 times
...

Save Cancel