added ability to specify value or "layout=R.layout...."