October 2018
Intermediate to advanced
464 pages
15h 17m
English
With the new project created as described in the preceding section, you are ready to create a menu. First, we will add a string resource to strings.xml. We will use the new string for the menu title when we create the XML for the menu. Here are the steps:
<string name="menu_settings">Settings</string>
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android ...