Question

As you know, nine-patch image contain the information that how the content aligned. So how does android get the padding of the content. I just can't find the corresponding code in framework. Thanks

Was it helpful?

Solution

http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch

The left and top guidelines tell the framework what can be stretched, the right and bottom guidelines tell it which rows and columns are padding (actually, the area where the inner content can go).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top