This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/usr/bin/env python | |
""" | |
Compute INSET positions. | |
For map, tere are two fixpoints for inset calculation, mdpi (33x40) and hdpi (45x51) | |
The other ratios are fixed, and defined at | |
http://developer.android.com/guide/practices/screens_support.html#DesigningResources | |
""" |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer