Related questions
Question 450 - H14-231_V1.0 discussion
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);
B.
int size3=AttrHelper.convertDimensionToPix(getContext(),'8',0);
C.
int size2 =AttrHe1per.vp2px(8,getContext());
D.
int sizel =(int)(Dislaylanager.getInstance ().getDefaultDisplay( getContext().get().getRealAttributes().scalDensity*8 +.5f);
Your answer:
0 comments
Sorted by
Leave a comment first