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:

Monte
12 days 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
...
Annette
18 days ago
Haha, 'android:TextSize=18dp'? Really? That's just silly. The correct syntax is definitely 'android:textSize=\'18sp\''.
upvoted 0 times
...
Sunny
24 days 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
Kristian
9 hours ago
I agree, I would go with option D then.
upvoted 0 times
...
Loreta
8 days ago
I think 'dp' is the standard unit for size in Android.
upvoted 0 times
...
...
Dean
27 days 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
28 days ago
I'm not sure, but I think option B) makes sense because sp is for scalable pixels.
upvoted 0 times
...
Aleisha
29 days ago
I agree with Tori, using sp for font size is recommended for Android layouts.
upvoted 0 times
...
Tori
1 months ago
I think the correct syntax is B) androtd:textSize=\'18sp\'.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77