List the point which makes your app compatible with majority of the devices:
A. Always use dip unit in your layout.
B. Use wrap_content and match_parent whenever possible.
C. Provide alternative image resources for each density .
D. Use 9-patch graphics for any resources.
E. Always use sp unit in your layout.
-
B, C, D, E
-
A, B, C, E
-
A, B, C, D
-
A, C, D, E
C
Correct answer
Explanation
Remember these points, which makes your app compatible with majority of the devices:
Always use dip unit in your layout.
Use wrap_content and match_parent whenever possible.This will make your layout much more flexible than layouts using hard-coded dimension values.
Provide alternative image resources for each densit to ensure that your images look appropriate on all screen densities. .
Use 9-patch graphics for any resources that can’t stretch without distortion.
Always use sp unit in your layout.