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:

Annette
4 hours ago
Haha, 'android:TextSize=18dp'? Really? That's just silly. The correct syntax is definitely 'android:textSize=\'18sp\''.
upvoted 0 times
...
Sunny
6 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
...
Dean
8 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
9 days ago
I'm not sure, but I think option B) makes sense because sp is for scalable pixels.
upvoted 0 times
...
Aleisha
11 days ago
I agree with Tori, using sp for font size is recommended for Android layouts.
upvoted 0 times
...
Tori
16 days ago
I think the correct syntax is B) androtd:textSize=\'18sp\'.
upvoted 0 times
...

Save Cancel