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 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:

Sherita
7 months ago
It's important to know this for the exam. We should review this concept before the test.
upvoted 0 times
...
Milly
7 months ago
I'm not sure, but I think it might be C) http://schemas.android.com/[your package name].
upvoted 0 times
...
Kanisha
7 months ago
I agree with Sherita. It makes sense because custom attributes should belong to the package name namespace.
upvoted 0 times
...
Sherita
7 months ago
I think the answer is A) http://schemas.android.com/apk/res/[your package name].
upvoted 0 times
...
Dahlia
8 months 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
8 months 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
Carry
7 months ago
I'm pretty sure it's A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Andra
8 months ago
C) http://schemas.android.com/[your package name]
upvoted 0 times
...
Allene
8 months ago
No, I believe it's A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Xenia
8 months ago
B) http://schemas.android.com/apk/[your package name]
upvoted 0 times
...
Alpha
8 months ago
I think it's A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
Juliana
8 months ago
A) http://schemas.android.com/apk/res/[your package name]
upvoted 0 times
...
...
Leoma
8 months 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
8 months 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