Activity Declaration and Keyboard Support
This lesson will cover how to declare activity and refine user interface for better keyboard support.
We'll cover the following...
Activity declaration #
In the previous lesson, we created activity_login.xml layout. Now it’s time to create LoginActivity class and bind our layout to this activity by using setContentView
method.
Press + to interact
public class LoginActivity extends AppCompatActivity {@Overrideprotected void onCreate(@Nullable Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_login);}}