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 AND-801 Exam - Topic 7 Question 50 Discussion

Posted by Jacqueline on Oct 17, 2023 at 02:59 PM

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?

Suggested Answer: A

Get Premium AND-801 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
38 comments · newest first
LI
Ling 11 months ago
Wait, is it really 'sp'? I always used 'dp' before!
CH
Chandra 11 months ago
D is totally off, it should be lowercase 'textSize'.
MA
Martina 11 months ago
I thought it was dp, but I guess it's sp for text sizes?
PA
Pansy 11 months ago
Definitely not A or C, those are wrong.
KA
Karl 11 months ago
The correct syntax is android:textSize='18sp'.
LE
Leoma 12 months ago
I might be mixing it up, but wasn't there something about using quotes around the value? I hope I remember that correctly!
AD
Adolph 12 months ago
I feel like 'dp' is used for dimensions, not font sizes. So that rules out some options, right?
TO
Torie 12 months ago
I remember practicing a question like this, and I think it was important to use lowercase for the attribute name.
GA
Gary 1 year ago
I think the correct unit for font size is 'sp', but I'm not sure about the exact syntax.
JE
Jennie 1 year ago
I'm a little confused by the options here. 'sd' and 'point' don't seem like valid units for Android font size. I'll have to eliminate those and then decide between 'sp' and 'dp'.
VE
Velda 1 year ago
Okay, I remember now - the recommended unit for font size in Android is 'sp', which stands for 'scale-independent pixels'. So option B is the correct answer.
JO
Josue 1 year ago
Hmm, I'm a bit unsure about this. I know we use 'android:textSize' to change the font size, but I can't remember if it's 'sp', 'dp', or something else. I'll have to think this through carefully.
BR
Brigette 1 year ago
I'm pretty confident about this one. The recommended syntax is 'android:textSize="18sp"', so I'll go with option B.
CO
Cordell 1 year ago
This question seems pretty straightforward. I'm pretty sure the HTTP methods are GET, POST, PUT, and DELETE, which allow you to perform the basic CRUD operations on web resources. I'll double-check the options, but I think I've got a good handle on this one.
BL
Blondell 1 year ago
I'm feeling pretty confident about this one. The question is pretty straightforward, and option B with the Apex trigger and @future method seems like the most logical solution. I'll go with that and move on to the next question.
BU
Bulah 1 year ago
I'm not entirely sure about the best approach here, but I recall something about the Official Endpoint pattern related to Service A. Is that what we should focus on?
CA
Carlene 1 year ago
Okay, let me walk through this step-by-step. The income statement covers revenue and expenses, the balance sheet shows assets, liabilities, and equity, and the owner's equity statement focuses on changes in that specific account. That leaves the statement of cash flows as the one that summarizes the cash receipts and payments. I'm confident that's the right choice.
MA
Madelyn 1 year 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!
ME
Mendy 1 year ago
↳ replying to Madelyn
C) android:textSize=-\'18point\'
RI
Rikki 1 year ago
↳ replying to Madelyn
B) androtd:textSize=\'18sp\'
HI
Hillary 1 year ago
↳ replying to Madelyn
A) android:textSize=18sd
MO
Monte 1 year 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.
JO
Joana 1 year ago
↳ replying to Monte
Let's go with option B then, it seems like the most logical choice.
JO
Josefa 1 year ago
↳ replying to Monte
Definitely, 'sd' and 'point' are not commonly used units for font size in Android.
DO
Dominga 1 year ago
↳ replying to Monte
I agree, using 'sp' for font size in Android is the standard practice.
KE
Kenneth 1 year ago
↳ replying to Monte
I think option B is the correct syntax for changing the font size to 18sp.
AN
Annette 1 year ago
Haha, 'android:TextSize=18dp'? Really? That's just silly. The correct syntax is definitely 'android:textSize=\'18sp\''.
VI
Vivan 1 year ago
↳ replying to Annette
User 2: Vivan is right, the correct syntax is definitely 'android:textSize=\'18sp\''.
HO
Honey 1 year ago
↳ replying to Annette
User 1: Haha, 'android:TextSize=18dp'? Really? That's just silly.
SU
Sunny 2 years 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.
JO
Jospeh 1 year ago
↳ replying to Sunny
I think 'sp' is for text size, so maybe option B could work too.
FA
Fanny 1 year ago
↳ replying to Sunny
But what about 'sp' for scalable pixels?
KR
Kristian 1 year ago
↳ replying to Sunny
I agree, I would go with option D then.
LO
Loreta 1 year ago
↳ replying to Sunny
I think 'dp' is the standard unit for size in Android.
DE
Dean 2 years 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.
PE
Peter 2 years ago
I'm not sure, but I think option B) makes sense because sp is for scalable pixels.
AL
Aleisha 2 years ago
I agree with Tori, using sp for font size is recommended for Android layouts.
TO
Tori 2 years ago
I think the correct syntax is B) androtd:textSize=\'18sp\'.
0/2000 characters

Save Cancel