Marks the specified view as active.
If there is an active view before calling this method, that view will be deactivated automatically.