Change constructors of all Views and Drawables to support defStyleRes parameter.
Add measure and layout code for Dialog class.