Multiple choice

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.

  1. B, C, D, E

  2. A, B, C, E

  3. A, B, C, D

  4. A, C, D, E

Reveal answer Fill a bubble to check yourself
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.