Convert API17 resources to lower API versions, and handle LTR / RTL layout directions.