New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Android AND-801 Exam - Topic 8 Question 72 Discussion

Actual exam question for Android's AND-801 exam
Question #: 72
Topic #: 8
[All AND-801 Questions]

Which of the below choices is the best answer to fill the empty space in the following sentence? If you want to give all text widgets in an app the same format such as font color, font size, and font family, you should add the style attribute to the TextView XML tags in layout file and set the attribute value to the same style name. You should define that style by adding a new style tag "style name-style_name" inside...............................

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Tanesha
3 months ago
I thought it could be in MainActivity.java too, but styles.xml makes more sense.
upvoted 0 times
...
Quentin
3 months ago
No way, it has to be styles.xml!
upvoted 0 times
...
Tarra
3 months ago
Wait, are we sure it’s not activity_main.xml?
upvoted 0 times
...
Allene
4 months ago
I agree, styles.xml is the right place for that.
upvoted 0 times
...
Laurel
4 months ago
It’s definitely styles.xml!
upvoted 0 times
...
Billi
4 months ago
I definitely recall something about styles being in a separate file, so I’m leaning towards C as well.
upvoted 0 times
...
Desirae
4 months ago
I’m a bit confused; I thought we could define styles in the activity_main.xml too, but that might not be the best practice.
upvoted 0 times
...
Latonia
4 months ago
I remember practicing a question about XML layouts, and I feel like the answer might be C, styles.xml.
upvoted 0 times
...
Mira
5 months ago
I think the styles should be defined in the styles.xml file, but I'm not completely sure.
upvoted 0 times
...
Shawnda
5 months ago
Okay, let me think this through. The question is asking where we should define a style that we want to apply to all TextViews in the app. I'm pretty sure the answer is the `styles.xml` file, but I'll double-check the options just to be sure.
upvoted 0 times
...
Shaun
5 months ago
Ah, I've seen this type of question before. The key is to remember that styles are defined in the `styles.xml` file, not in the manifest or activity files. I'm confident I can get this one right.
upvoted 0 times
...
Joni
5 months ago
Hmm, I'm a bit unsure about this one. I know styles are defined in a separate XML file, but I can't quite remember the exact name of that file. I'll have to think this through step-by-step.
upvoted 0 times
...
Tyra
5 months ago
This seems like a straightforward question about Android app development. I'll carefully read through the options and think about where styles are typically defined in an Android app.
upvoted 0 times
...
Alpha
5 months ago
Okay, let me think this through step-by-step. The question is asking about the 'traditional' view, so I need to consider what the conventional wisdom has been historically. I'm leaning towards B, but I'll double-check the other options just to be sure.
upvoted 0 times
...
Linette
1 year ago
Haha, definitely not D) MainActivity.java or MainActivity.kt file. That would be like trying to style your clothes in your pocket instead of your wardrobe.
upvoted 0 times
Lourdes
1 year ago
Haha, definitely not D) MainActivity.java or MainActivity.kt file. That would be like trying to style your clothes in your pocket instead of your wardrobe.
upvoted 0 times
...
Margery
1 year ago
C) stytes.xml file
upvoted 0 times
...
Magda
1 year ago
B) activity_main.xml file
upvoted 0 times
...
Ty
1 year ago
A) AadroiddManifest-xml file
upvoted 0 times
...
...
Sharika
1 year ago
I agree, C) styles.xml file is the way to go. Defining the style in the layout file would be too much of a hassle.
upvoted 0 times
Tula
1 year ago
D) MainActivity.java or MainActivity.kt file
upvoted 0 times
...
Arlyne
1 year ago
C) stytes.xml file
upvoted 0 times
...
Ressie
1 year ago
B) activity_main.xml file
upvoted 0 times
...
Dan
1 year ago
A) AadroiddManifest-xml file
upvoted 0 times
...
...
Theron
1 year ago
I agree with Charlesetta. Adding the style in styles.xml file makes sense.
upvoted 0 times
...
Karl
1 year ago
I'm not sure, but I think it might be B) activity_main.xml file.
upvoted 0 times
...
Harrison
1 year ago
The correct answer is C) styles.xml file. You need to define the style in the styles.xml file to apply it to all the TextView widgets in the app.
upvoted 0 times
Dorian
1 year ago
D) MainActivity.java or MainActivity.kt file
upvoted 0 times
...
Marica
1 year ago
C) stytes.xml file
upvoted 0 times
...
Casie
1 year ago
B) activity_main.xml file
upvoted 0 times
...
Lacey
1 year ago
A) AadroiddManifest-xml file
upvoted 0 times
...
...
Charlesetta
1 year ago
I think the answer is C) styles.xml file.
upvoted 0 times
...

Save Cancel