Cyber Monday 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 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
5 months ago
Hmm, now I'm confused. Can someone provide rationale behind their choice?
upvoted 0 times
...
Ashton
5 months ago
I think it's C) http://schemas.android.com/[your package name]. That makes more sense to me
upvoted 0 times
...
An
5 months ago
Oh, I see. So there seems to be a disagreement among us on this question
upvoted 0 times
...
Laurel
5 months ago
Actually, I believe the correct namespace is http://schemas.android.com/apk/[your package name]
upvoted 0 times
...
Otis
5 months ago
I agree with that's how we can use our custom attributes in layout XML files
upvoted 0 times
...
An
6 months ago
I think the custom attributes belong to http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Eleonore
6 months ago
I agree with Asuncion, the correct namespace is http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Asuncion
7 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
7 months ago
I believe it's http://schemas.android.com/apk/[your package name]
upvoted 0 times
...
Paris
7 months ago
I think the custom attributes belong to http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Marguerita
7 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
7 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
7 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
6 months ago
But http://schemas.android.com/apk/res/[your package name] is correct.
upvoted 0 times
...
Arlen
6 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Gail
8 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
8 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
7 months ago
Great job! A) http://schemas.android.com/apk/res/[your package name] is the answer
upvoted 0 times
...
Theodora
7 months ago
Exactly. A) http://schemas.android.com/apk/res/[your package name] is where custom attributes belong
upvoted 0 times
...
Malissa
7 months ago
Got it. A) http://schemas.android.com/apk/res/[your package name] it is.
upvoted 0 times
...
Vanda
7 months ago
That's correct. A) http://schemas.android.com/apk/res/[your package name] is the namespace
upvoted 0 times
...
Huey
7 months ago
Of course, it's A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Jenelle
7 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Charlene
8 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
8 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
8 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
8 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
8 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