How to obtain a View object