Self-Review Exercises

2.1 Fill in the blanks in each of the following statements:

a) Layout files are considered app resources and are stored in the project’s ________ folder. GUI layouts are placed within that folder’s layout subfolder.

b) When designing an Android GUI, you typically want it to ________ be so that it displays properly on various devices.

c) You can easily ________ your app by creating additional XML resource files for string resources in other languages.

d) The two measurement units for density independent pixels are ________ and ________.

e) To run an app in an Android Virtual Device (AVD), right click the app’s root node in Eclipse in the ________ window and select Run As > Android Application.

f) ________ enables the user to hear TalkBack speak what’s on the screen where the user touches.

g) Android uses a special folder-naming scheme to automatically choose the correct localized resources—for example, the folder ________ would contain a strings.xml file for French and the folder ________ would contain a strings.xml file for Spanish.

2.2 State whether each of the following is true or false. If false, explain why.

a) The Android Development Tools IDE is the most widely used IDE for creating and testing Android apps.

b) The layout RelativeLayout arranges components relative to one another or relative to their parent container.

c) To center the text in the TextView, set its Alignment property to center.

d) Android contains accessibility features to help people with various disabilities use their devices.

e) For people with visual disabilities, Android’s SpeakBack can speak screen text or text that you provide to help the user understand the purpose of a GUI component.

f) It’s considered a best practice in Android to ensure that every GUI component can be used with TalkBack by providing text for the Content Description property of any component that does not display text.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.67.84