ExamGecko
Question list
Search
Search

Related questions











Question 450 - H14-231_V1.0 discussion

Report
Export

Which of the following methods can a developer use to obtain the actual pixel size corresponding to 8VP on the current device?

A.
int size4 =AttrHelper.convertDimensionToPix(getContext(),'8vp'',0);
Answers
A.
int size4 =AttrHelper.convertDimensionToPix(getContext(),'8vp'',0);
B.
int size3=AttrHelper.convertDimensionToPix(getContext(),'8',0);
Answers
B.
int size3=AttrHelper.convertDimensionToPix(getContext(),'8',0);
C.
int size2 =AttrHe1per.vp2px(8,getContext());
Answers
C.
int size2 =AttrHe1per.vp2px(8,getContext());
D.
int sizel =(int)(Dislaylanager.getInstance ().getDefaultDisplay( getContext().get().getRealAttributes().scalDensity*8 +.5f);
Answers
D.
int sizel =(int)(Dislaylanager.getInstance ().getDefaultDisplay( getContext().get().getRealAttributes().scalDensity*8 +.5f);
Suggested answer: A, C, D
asked 18/09/2024
javier mungaray
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first