EDIT: For your end result, your solution should be to set both fitsSystemWindows="true"
and clipToPadding="false"
on your ScrollView
. This will ensure that enough padding is set to put the content within the system bars, but will allow the contents to scroll away underneath.
Check Table 2 here, and you can see in what order of precedence the qualifiers will be matched.
In your case, the screen size takes precedence over the Android version, so if you had:
res/
values-large/
dimens.xml
padding_value = 40dp
values-v19/
dimens.xml
padding_value = 48dp
And tried to use that dimension on a large screen KitKat device, 40dp
would be the resolved value.
EDIT: For what you need, just set the attribute android:fitsSystemWindows="true"
on the root of your layout -- that will handle insetting the content for the translucent status bar and/or navigation bar automatically. :)