setWidthResource

sets the width size using a dimension resource.