Percent Support Library – what, when, how?
What, when?
With the release of Android M (API 23) the Support library got a major update as well. One of the unsung heroes is a feature badly requested since Android’s early days – the ability to set dimensions in percentages. With the release of the Percent Support Library is’t now possible to set a View
to take exactly 30% of the screen, or to set it’s marginTop
to 10% for example.