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

Android Exam AND-801 Topic 7 Question 50 Discussion

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

As an Android developer, to change the font size of a text in Android layout, you should use attribute "android:textSize". Which of the following choices is the recommended syntax to change the font size to 18?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Madelyn
25 days ago
Wow, this question is a real font of knowledge! I can't wait to see what the correct answer is. Hopefully, it's not too 'point'less!
upvoted 0 times
Hillary
5 days ago
A) android:textSize=18sd
upvoted 0 times
...
...
Monte
1 months ago
I'm leaning towards option B as well. After all, who would use 'sd' or 'point' as a unit for font size in Android? That's just asking for trouble.
upvoted 0 times
Josefa
2 days ago
Definitely, 'sd' and 'point' are not commonly used units for font size in Android.
upvoted 0 times
...
Dominga
8 days ago
I agree, using 'sp' for font size in Android is the standard practice.
upvoted 0 times
...
Kenneth
23 days ago
I think option B is the correct syntax for changing the font size to 18sp.
upvoted 0 times
...
...
Annette
2 months ago
Haha, 'android:TextSize=18dp'? Really? That's just silly. The correct syntax is definitely 'android:textSize=\'18sp\''.
upvoted 0 times
Vivan
20 days ago
User 2: Vivan is right, the correct syntax is definitely 'android:textSize=\'18sp\''.
upvoted 0 times
...
Honey
26 days ago
User 1: Haha, 'android:TextSize=18dp'? Really? That's just silly.
upvoted 0 times
...
...
Sunny
2 months ago
Hmm, I'm not sure about that. Isn't 'dp' (device-independent pixels) the standard unit for size in Android? I might go with option D.
upvoted 0 times
Jospeh
16 days ago
I think 'sp' is for text size, so maybe option B could work too.
upvoted 0 times
...
Fanny
18 days ago
But what about 'sp' for scalable pixels?
upvoted 0 times
...
Kristian
1 months ago
I agree, I would go with option D then.
upvoted 0 times
...
Loreta
1 months ago
I think 'dp' is the standard unit for size in Android.
upvoted 0 times
...
...
Dean
2 months ago
I think option B is the correct choice here. The 'sp' unit stands for 'scale-independent pixels', which is the recommended way to set font size in Android layouts.
upvoted 0 times
...
Peter
2 months ago
I'm not sure, but I think option B) makes sense because sp is for scalable pixels.
upvoted 0 times
...
Aleisha
2 months ago
I agree with Tori, using sp for font size is recommended for Android layouts.
upvoted 0 times
...
Tori
2 months ago
I think the correct syntax is B) androtd:textSize=\'18sp\'.
upvoted 0 times
...

Save Cancel
a