Thursday, June 19, 2014

Week 4: Lesson 8: Integrating The Image Switcher Into The Application

Lesson 8: Integrating The Image Switcher Into The Application
INTRODUCTION
In this lesson you will learn more about working with images, editing XML layouts for images and parameters and creating a new class to support swiping images within the application. This is a great lesson to review some of the core content you have learned up to this point and refine your understanding of key concepts such as creating classes, working with the XML, overrides and the parameters of the layout of the application. Within this lesson you will also be introduced to the image switcher and will learn how to integrate it into your application.

LESSON OBJECTIVES
By the end of this lesson, you will be able to:
Section #1: Working With Images In Java for Android
1.     Summarize the use of images in mobile applications.
Section #2: Layout Parameters
1.     Summarize how to edit the layout parameters in XML.
Section #3: Video Demonstration:

LEARNING SEQUENCE

Required Reading
Read the following:
·      Section #1:


·      Section #2:
Resources
View the following: 
·      Sample Code
·      Video Transcripts
Assignments
Complete the following:
·       What are the image file types which Android supports? What are some of the locations which these files are stored to be used in a project?
·       Describe some of the properties of an Android Layout. What is the meaning of the Layout Parameters?
·       List the central components to getting the image swiper to work. What new skills have you learned in this lesson in managing this project?

INSTRUCTION

Section #1: Working With Images In Java for Android

In this section you will learn how to manage the use of images and graphics within an Android development project. You will learn how to save image resources in the appropriate locations in resource folders and display, change and work with bitmap graphics in Android projects.

Step 1.
This resource shows a list of the basic types of graphics which can be brought into a Java for Android project. The list provides an overview of the image types and how they will be attributed in the XML.

Step 2.
This reading will provide you with an overview of graphics and images in Android.
The folders in which images can be stored as well as the supported files which are used with Java for Android are included. This resource also describes the process of defining images in the XML of the application. Addition effects are also covered on pages 2 and 3 of this tutorial. You will review how to change the code to edit an image and also a basic background on image processing.

Step 3.
This reading shows you how to view an image in Android and also how to change the image. You will understand how to edit bitmap images. This reading explains image attributes, scaling an image and rotating images in Android.
Step 4.
Complete Assignment #1:

Section #2: Layout Parameters
In this section you will be provided an overview of the properties of the Layout Parameters which will support your knowledge of how objects are viewed in the application. You will learn how setting the layout parameters adds new views for components of the application.

Step 1.
This reading provides the direct description of what layout parameters are and why they are important to the view class in Java for Android. Understanding this basic overview will be highly beneficial as you move through this lesson and need to define the components of layout.

Step 2.
Review this presentation that will put the layout parameters into perspective with your current knowledge of relative layouts and nesting of components of the layouts and common attributes.

Step 3.
Complete Assignment #2:

Section #3: Video Demonstration

In the video tutorial for this lesson you will learn how to integrate the image swiper into the application. You will create the XML for the layout of the swiper page and create the ImageSwiper class for the images to swipe. You will also learn where to place the images into the correct resource folder for them to be linked. At the conclusion of this video you will better understand the sequence of connecting the activities to the XML layouts in the application. You will also become more confident editing the code to begin new activities.

Step 1.
View & Practice: Lesson 8 [12:52]

SUMMARY
In this lesson you have been introduced to how to work with images in Java for Android. You have reviewed information about how to place and save images in order for your code to work. As you worked with organizing the creation of files within the project, you also learned how to adjust the layout parameters of the elements you are adding. The video which corresponds to this lesson walked you through the process of identifying and applying skills using images, setting parameters and organizing images within the resource folders. In the next lesson you will learn how to export the .apk file which will be added to the Android device for testing.

ASSIGNMENTS
·       What are the image file types which Android supports? What are some of the locations which these files are stored to be used in a project?
·       Describe some of the properties of an Android Layout. What is the meaning of the Layout Parameters?
·       List the central components to getting the image swiper to work. What new skills have you learned in this lesson in managing this project?


No comments:

Post a Comment