set widget margin for api<14; extract preference keys into prefkeys.xml