Bitmap Files

Android supports bitmap resource files in a few different formats: png (preferred), jpg (acceptable), gif (discouraged). The bitmap file itself is compiled and referenced by the file name without the extension (so res/drawable/my_picture.png would be referenced as R.drawable.my_picture).

Source file formats: png (preferred), jpg (acceptable), gif (discouraged). One resource per file.

Resource file location: res/drawable/some_file.png or some_file.jpg or some_file.gif.

Compiled resource datatype: Resource pointer to a BitmapDrawable.

0 0

Post a comment