It's written to this way

Day: January 27, 2018 (Page 1 of 2)

Lesson 6: Testing your UI (6.1: Use Espresso to test your UI)

Task 1: Set up Espresso in your project

1.1 Check for the Android Support Repository

1.2 Configure Espresso for the project

1.3 Turn off animations on your test device

Task 2: Test for switching activities and entering text

2.1 Define a class for a test and set up the activity

2.2 Test switching activities

2.3 Test text input and output

2.4 Introduce an error to show a test failing

Task 3: Test the display of spinner selections

3.1 Create the test method

3.2 Access the array used for the spinner items

3.3 Locate spinner items and click on them

Task 4: Record a test of a RecyclerView

4.1 Open and run the app

4.2 Record the test

 

Lesson 5: Delightful User Experience (5.2: Material Design: Lists, Cards and Colors)

Task 1: Download the starter code

1.1 Open and run the Material Me project

1.2 Explore the app

 

Task 2: Add a CardView and images

2.1 Add the CardView

2.2 Download the images

2.3 Modify the Sport object

2.4 Fix the initializeData() method

2.5 Add an ImageView to the list items

2.6 Load the images using Glide

Task 3: Make your CardView swipeable, movable, and clickable

3.1 Implement swipe to dismiss

3.2 Implement drag and drop

3.3 Implement the detail view

Task 4: Add the FAB and choose a Material Design color palette

4.1 Add the FAB

4.2 Choose a Material Design palette

 

Lesson 5: Delightful User Experience (5.1: Drawables, Styles, and Themes)

Task 1: Create The Scorekeeper App

1.1 Create the “Scorekeeper” Project

1.2 Create the layout for the main activity

1.3 Initialize your TextViews and score count variables

 

1.4 Implement the onClick functionality for your buttons

Task 2: Create a Drawable resource

2.1 Create a Shape Drawable

2.2 Apply the shape drawable as a background

Task 3: Style your views

3.1 Create button styles

3.2 Create TextView styles

 

3.3 Updating the styles

Task 4: Themes and Final Touches

4.1 Explore themes

4.2 Add theme button to the menu

4.3 Change the theme from the menu

4.4 SaveInstanceState

 

Lesson 4: User Interaction (4.4: Create a Recycler View)

Task 1. Create and configure a new project

1.1. Create the project

 

1.2. Add support libraries to the build file

Task 2. Create a dataset

2.1. Add code to create data

Task 3. Create a RecyclerView

3.1. Create the main layout in activity_main.xml

3.2. Create the layout for one list item

3.3 Create a style from the TextView attributes

3.4. Create an adapter with a view holder

3.5 Create the view holder

3.6 Storing your data in the adapter

3.7. Create the RecyclerView in the Main Activity

Task 4. Make the list interactive

4.1. Make items respond to clicks

Task 5. Add a FAB to insert items

5.1. Add a Floating Action Button (FAB)

5.2. Add behavior to the FAB

 

Lesson 4: User Interaction(4.2: Using an Options Menu)

Task 1. Add items to the options menu

1.1 Examine the app bar code

 

1.2 Add more menu items to the options menu

 

Task 2. Add icons for menu items

2.1 Add icons for menu items

2.2 Show the menu items as icons in the app bar

Task 3. Handle the selected menu item

3.1 Create a method to display the menu choice

3.2 Use the onOptionsItemSelected event handler

Lesson 4: User Interaction (4.1: Using Keyboards, Input Controls, Alerts, and Pickers)

Task 1. Experiment with text entry keyboard attributes

1.1 Create the main layout and the showText method

1.2 Set the keyboard to capitalize sentences

1.3 Set the keyboard to hide a password when entering it

Task 2. Change the keyboard type

2.1 Use an email keyboard

2.2 Use a phone keypad

Task 3. Add a spinner input control for selecting a phone label

3.1 Copy the KeyboardSamples project and modify the layout

3.2 Add code to activate the spinner and its listener

3.3 Add code to respond to the user’s selections

Task 4. Use a dialog for an alert requiring a decision

4.1 Create a new project with a layout to show an alert dialog

 

4.2 Add an alert dialog to the main activity

Task 5. Use a picker for user input

5.1 Create the main activity layout

5.2 Create a new fragment for the date picker

5.3 Create a new fragment for the time picker

5.4 Modify the main activity

5.5 Use the chosen date and time

 

Task 6: Use image views as buttons

6.1 Start the new project

6.2 Add the images

6.3 Add onClick methods for the image views

Task 7: Use radio buttons

7.1 Add another activity

7.2 Add the layout for radio buttons

7.3 Add the radio button click handler

« Older posts

© 2024 Dwimagita's blog

Theme by Anders NorenUp ↑