Different layouts for single activity : <p>I want to create different view states for error and success of login page. For that I want to create the singe activity (login), Which will have email and password fields. After submitting the data if I'm getting success/error then I want to display different layout (not in different activity). How can I achieve that ? Simpy.. I need to display multiple layouts on single activity on changing its states. </p>
