Activity Declaration and Keyboard Support

Discover how you can declare activity and refine the user interface for better keyboard support in this lesson.

Activity declaration

In the previous lesson, we created the activity_login.xml layout. Now it’s time to create the LoginActivity class and bind our layout to this activity by using the setContentView method.

Get hands-on with 1400+ tech skills courses.