determine handset or tablet layout from bool value in resources