Add a new empty activity named ModuleListActivity.Open MainActivity.kt and add an empty stub for the addAssignment method as follows:Ĭreating the additional Activities Module List.If you are struggling with the layout, you can see an example here (click to expand> Set the value of the onClick attribute to addAssignment (this will initially show as an error).Set the id of the ListView to "listView".Open the activity_main_xml and delete the existing TextViewĪdd a ListView which fills most of the screen, with a button at the bottom, as shown here:.Start by creating a new Android App named 'Deadlines' with Kotlin support, targeting API 14 and later, with an Empty Activity (leaving it with the default name).One module can have multiple assignments. The first of these will represent modules (simply a module code and a name), and the second will represent assignments which will comprise of a title, weight, deadline, module and id.
0 Comments
Leave a Reply. |