Interview Questions

How is the nine-patch Image different from a regular bitmap?

Android Interview Questions and Answers


(Continued from previous question...)

How is the nine-patch Image different from a regular bitmap?

Alternatively, what is the difference between nine-patch Image vs regular Bitmap Image?
It is one of a resizable bitmap resource which is being used as backgrounds or other images on the device. The NinePatch class allows drawing a bitmap in nine sections. The four corners are unscaled; the middle of the image is scaled in both axes, the four edges are scaled into one axis.

(Continued on next question...)

Other Interview Questions