[[Image:android_studio_database_example_layout.png|An Android Studio TableLayout example UI]]
+
[[Image:android_studio_database_example_layout2.png|An Android Studio TableLayout example UI]]
Figure 41-1
Figure 41-1
Start Android Studio and create a new project, entering Database into the Application name field and ebookfrenzy.com as the Company Domain setting before clicking on the Next button.
Start Android Studio and create a new project, entering Database into the Application name field and ebookfrenzy.com as the Company Domain setting before clicking on the Next button.
−
On the form factors screen, enable the Phone and Tablet option and set the minimum SDK setting to API 8: Android 2.2 (Froyo). Continue to proceed through the screens, requesting the creation of a blank activity named DatabaseActivity with a corresponding layout named activity_database.
+
On the form factors screen, enable the Phone and Tablet option and set the minimum SDK setting to API 8: Android 2.2 (Froyo). Continue to proceed through the screens, requesting the creation of a blank activity named DatabaseActivity with corresponding layout and menu resource files named activity_database and menu_database respectively.
== Adding the TableLayout to the User Interface ==
== Adding the TableLayout to the User Interface ==