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 5 Question 54 Discussion

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

Otis
3 months ago
Hmm, now I'm confused. Can someone provide rationale behind their choice?
upvoted 0 times
...
Ashton
4 months ago
I think it's C) http://schemas.android.com/[your package name]. That makes more sense to me
upvoted 0 times
...
An
4 months ago
Oh, I see. So there seems to be a disagreement among us on this question
upvoted 0 times
...
Laurel
4 months ago
Actually, I believe the correct namespace is http://schemas.android.com/apk/[your package name]
upvoted 0 times
...
Otis
4 months ago
I agree with that's how we can use our custom attributes in layout XML files
upvoted 0 times
...
An
5 months ago
I think the custom attributes belong to http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Eleonore
5 months ago
I agree with Asuncion, the correct namespace is http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Asuncion
5 months ago
I'm pretty sure it's http://schemas.android.com/apk/res/[your package name], based on the documentation
upvoted 0 times
...
Marg
5 months ago
I believe it's http://schemas.android.com/apk/[your package name]
upvoted 0 times
...
Paris
5 months ago
I think the custom attributes belong to http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Marguerita
6 months ago
Okay, let's think this through step-by-step. Custom attributes, different namespace, package name. Yeah, A is definitely the way to go here.
upvoted 0 times
...
Amie
6 months ago
Nah, Nobuko, that's not right. The 'res' part is only for the built-in Android attributes. For custom attributes, it's just the package name after the base URL.
upvoted 0 times
...
Nobuko
6 months ago
Wait, are you sure it's not B or C? I thought the namespace had to include the 'res' part, like http://schemas.android.com/apk/res/[your package name].
upvoted 0 times
Arlen
4 months ago
But http://schemas.android.com/apk/res/[your package name] is correct.
upvoted 0 times
...
Arlen
4 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Gail
6 months ago
Yeah, I agree with Charlene. That's the correct namespace for custom attributes in Android. I remember learning that in my prep materials.
upvoted 0 times
...
Jacqueline
6 months ago
Seriously? This is a gimme. If you can't get this right, you probably shouldn't be taking the exam in the first place. It's like asking a mechanic what a wrench is used for.
upvoted 0 times
Marshall
5 months ago
Great job! A) http://schemas.android.com/apk/res/[your package name] is the answer
upvoted 0 times
...
Theodora
5 months ago
Exactly. A) http://schemas.android.com/apk/res/[your package name] is where custom attributes belong
upvoted 0 times
...
Malissa
6 months ago
Got it. A) http://schemas.android.com/apk/res/[your package name] it is.
upvoted 0 times
...
Vanda
6 months ago
That's correct. A) http://schemas.android.com/apk/res/[your package name] is the namespace
upvoted 0 times
...
Huey
6 months ago
Of course, it's A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Jenelle
6 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Charlene
6 months ago
Hmm, this question seems pretty straightforward. I'd say the answer is A - our custom attributes belong to the http://schemas.android.com/apk/res/[your package name] namespace.
upvoted 0 times
...
Kaitlyn
6 months ago
Hmm, I'm not sure about this one. I think I'm going to go with B, just to be different. You know, keep the exam committee on their toes.
upvoted 0 times
...
Freida
6 months ago
What's the big deal? It's just a namespace, right? As long as you know where your custom attributes live, it should be easy to answer this question.
upvoted 0 times
...
Elden
6 months ago
Ah yes, the custom attribute namespace question. I remember struggling with this one during my prep. It's important to remember that the namespace needs to be specific to your package name, not just the generic Android namespace.
upvoted 0 times
...
Maile
6 months ago
I've seen this question before, and it's a tricky one. The correct answer is definitely A, but I can see why some people might get confused with the different namespace options.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77