简体   繁体   中英

Where does android set padding for nine-patch image?

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

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM