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:

Marguerita
6 hours 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
8 hours 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
1 days 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
...
Gail
2 days 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
2 days 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
...
Charlene
3 days 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
3 days 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
4 days 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 days 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 days 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