Apply proper text align for different views.