
For example, some apps allow users to set their home locations, default units for measurements, dining options, and other settings that apply to the entire app.

The new course is available atĪndroid Developer Fundamentals course (Version 2), or go directly to Lesson 11: Sharing Data with Content Providersġ1.1A: Implementing a Minimalist Content Providerġ1.1B: Adding a Content Provider to Your Databaseġ2.1: Loading and Displaying Fetched DataĪ new version of this course is now available, updated to reflectīest practices for more recent versions of the Android framework andĪndroid Studio. Lesson 8: Triggering, Scheduling, and Optimizing Background Tasks Lesson 3: Testing, Debugging, and Using Support LibrariesĤ.1: Using Keyboards, Input Controls, Alerts, and PickersĤ.2: Using an Options Menu and Radio ButtonsĤ.3: Using the App Bar and Tabs for Navigationĥ.2: Material Design: Lists, Cards, and Colorsĥ.3: Supporting Landscape, Multiple Screen Sizes, and Localizationħ.2: Connect to the Internet with AsyncTask and AsyncTaskLoader Step 6 – To change text color of the menu item, open res/values/styles.xml and add the following code 7 − Add the following code to src/MainActivity.java import 7.app.1.1: Install Android Studio and Run Hello World Step 5 – Right Click on res/menu and create a new Menu Resource file and add the following code in res/menu/sample_menu.xml Step 4 – Right-click on res, select New -> Android Resource Directory – menu. Step 3 – Right-click on res/drawable, create any Vector Asset (Example: ic_icon.xml)

Step 2 − Add the following code to res/layout/activity_main.xml. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. This example demonstrates how do I change the text color of the menu item in android.
