BlackFriday 2024! 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 3 Question 61 Discussion

Actual exam question for Google's Associate-Android-Developer exam
Question #: 61
Topic #: 3
[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:

Kindra
3 months ago
A is the way to go! Custom attributes need to be in a namespace that reflects your package, not the whole Android platform.
upvoted 0 times
...
Tu
3 months ago
I bet the exam writer is just trying to namespace-drop us. Gotta stay on top of those namespaces, yo!
upvoted 0 times
Carin
2 months ago
Yeah, but once you get the hang of it, it becomes easier to work with custom views.
upvoted 0 times
...
Daniela
2 months ago
C) http://schemas.android.com/[your package name]
upvoted 0 times
...
Layla
3 months ago
I know right, namespaces can be tricky to keep track of.
upvoted 0 times
...
Elizabeth
3 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Taryn
3 months ago
As someone who loves a good namespace pun, I'm hoping the answer is 'http://schemas.android.com/apk/res/cus-tom'.
upvoted 0 times
...
Leigha
3 months ago
I think the answer is A. The custom attributes belong to a namespace specific to your package name, which makes sense.
upvoted 0 times
Lonna
2 months ago
Actually, I think it's C. The custom attributes belong to a namespace specific to the package name.
upvoted 0 times
...
Reena
3 months ago
C) http://schemas.android.com/[your package name]
upvoted 0 times
...
Lanie
3 months ago
I agree, it makes sense that the custom attributes would be in a namespace related to the package name.
upvoted 0 times
...
Jenelle
3 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Nelida
4 months ago
I'm not sure, but I think C) http://schemas.android.com/[your package name] could also be a possibility.
upvoted 0 times
...
Elza
4 months ago
I agree with Rhea, A) makes sense because it specifies the correct namespace.
upvoted 0 times
...
Rhea
4 months ago
I think the answer is A) http://schemas.android.com/apk/res/[your package name].
upvoted 0 times
...

Save Cancel