Deck 9: Customize Navigating With Tabs on a Tablet App

Full screen (f)
exit full mode
Question
Tab content can be coded in ____ different ways.

A) two
C) four
B) three
D) six
Use Space or
up arrow
down arrow
to flip the card.
Question
The ____ setting automatically defines how many columns to show based on the size of the Android screen and image width.

A) auto_fit
C) resize_auto
B) fit_to_screen
D) screen_fit
Question
The TabSpec.setContent method accepts an Intent as its only parameter.
Question
Tabs usually require a large amount of additional instruction to use correctly.
Question
Tab icons are typically ____ pixels.

A) 24 x 24
C) 72 x 72
B) 48 x 48
D) 96 x 96
Question
The ____ control is used for display tab content.

A) ContentDisplay
C) FrameLayout
B) ContentLayout
D) TabContentView
Question
The ____ class can be used instead of the default Activity class if the class's primary purpose is to display a TabHost control.

A) ContentActivity
C) SubActivity
B) InnerActivity
D) TabActivity
Question
The minimum SDK version for a tablet is ____.

A) 3
C) 8
B) 6
D) 11
Question
Tabs provide a way to show different topics within a single window in an intuitive interface.
Question
Tab icons should be simple, flat images.
Question
When the user selects a tab to launch a new Activity, it is appended to the bottom of the stack.
Question
GridView is an effective way to display the contents of cloud storage devices.
Question
A ____ control is part of the View group and displays objects in a two-dimensional, scrollable grid.

A) BagView
C) MatrixView
B) GridView
D) ScrollableView
Question
The TabHost control must always be placed at the "top" of the Android window.
Question
It is typically easier to manage one XML layout file for all the tabs in an application, which suggests that running one Activity with multiple tabs is the preferred approach.
Question
The ____ control allows you to wrap multiple views in a single window.

A) FlipScreen
C) TabbedPane
B) MultiWindow
D) TabHost
Question
In the Graphical Layout tab of Eclipse, a(n) ____ placeholder marks the location of future tabs.

A) blue
C) green
B) brown
D) orange
Question
A View instance occupies a rectangular area on the screen and is responsible for drawing component in an outer container, such as a GridView control.
Question
The TabHost class will automatically add any TabSpec objects that have been created.
Question
The ____ is the root control of the ____ and ____.

A) TabHost; TabWidget; FrameLayout
C) FrameLayout; TabHost; TabWidget
B) FrameLayout; Grid View; TabHost
D) GridView; TabHost; TabWidget
Question
When using multiple images in a GridView, it is often easiest to hold them in a(n) ____.

A) array
C) set
B) queue
D) table
Question
The recommended name of the first Tab Activity is ____.

A) .Tab1
C) Tab1
B) .TabOne
D) TabOne
Question
The XML code for the Android ID of the FrameLayout for a tabbed application is ____________________.
Question
The ____________________ control is the root of the layout and can be placed at the top or bottom of the Android window.
Question
To display the auto-complete listing for a piece of code in Eclipse, press ____.

A) alt+spacebar
C) shift+spacebar
B) ctrl+spacebar
D) spacebar
Question
The method to locate a View class by its identifier is____.

A) accessView
C) locateView
B) findViewById
D) viewFromId
Question
The ____ method defines the padding for all sides of each image.

A) createPadding
C) padding
B) definePadding
D) setPadding
Question
The getView()method uses ____ to create a new ImageView instance.

A) Activity
C) GridView
B) Context
D) TabWidget
Question
The ____ property can be set to an integer or to auto_fit.

A) columnWidth
C) numColumns
B) layout_width
D) stretchMode
Question
By dividing different components of the user interface and displaying them in ____, it is easier for developers to reuse these components across various Activities.

A) Fragments
C) Intents
B) GridViews
D) Tabs
Question
The ____ property sets the content for a TextView control.

A) content
C) text
B) display
D) view
Question
Each tab must have a(n) ____, which specifies how the tabs should actually appear.

A) AbstractTab
C) TabLayout
B) Design
D) TabSpec
Question
Android uses the ____ method to open a URI.

A) accessURI
C) startActivity
B) getURI
D) uriOpen
Question
The ____ method is used to set the type of scaling in the ImageView control.

A) imageBehavior
C) setScaleType
B) scalingFunction
D) setType
Question
The XML namespace can be found at ____________________.
Question
The code to assign the ID of the TabWidget control in the XML layout file is ____________________.
Question
The ImageAdapter class usually extends ____.

A) BaseAdapter
C) MainAdapter
B) ControlAdapter
D) ViewableAdapter
Question
The ____________________ control lies inside the TabHost and displays the tabs.
Question
The setLayoutParams method in the ImageView class requires ____ parameter(s).

A) one
C) three
B) two
D) four
Question
The ____ sets the width and height of a GridView in pixels.

A) columnWidth property
C) TabView method
B) LayoutParams method
D) padding property
Question
The code to place in the manifest file in order to have a titleless theme is ____________________.
Question
The code to set an ImageAdapter around your Activity class, and then set it to a GridView g as the bound adapter is ____________________.
Question
A(n) ____________________ is essentially a sub-Activity hosted inside another Activity.
Question
The GridView class is in the ____________________ package.
Question
The code to set an Intent called myIntent to a TabSpec named mySpec is ____________________.
Question
The TabSpec method ____________________ sets the tab button caption and supplies the icon image to the tab.
Question
The ____________________ class is used to load and access resources for the application.
Question
The code to have a TabSpec instance called mySpec use "Photos" as the text and photostack. png as the image is ____________________.
Question
The ____________________ property specifies a fixed width for each column.
Question
The code to move a bottom-placed tab five pixels from the bottom edge is ____________________.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 9: Customize Navigating With Tabs on a Tablet App
1
Tab content can be coded in ____ different ways.

A) two
C) four
B) three
D) six
A
2
The ____ setting automatically defines how many columns to show based on the size of the Android screen and image width.

A) auto_fit
C) resize_auto
B) fit_to_screen
D) screen_fit
A
3
The TabSpec.setContent method accepts an Intent as its only parameter.
True
4
Tabs usually require a large amount of additional instruction to use correctly.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Tab icons are typically ____ pixels.

A) 24 x 24
C) 72 x 72
B) 48 x 48
D) 96 x 96
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The ____ control is used for display tab content.

A) ContentDisplay
C) FrameLayout
B) ContentLayout
D) TabContentView
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The ____ class can be used instead of the default Activity class if the class's primary purpose is to display a TabHost control.

A) ContentActivity
C) SubActivity
B) InnerActivity
D) TabActivity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
The minimum SDK version for a tablet is ____.

A) 3
C) 8
B) 6
D) 11
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Tabs provide a way to show different topics within a single window in an intuitive interface.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Tab icons should be simple, flat images.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
When the user selects a tab to launch a new Activity, it is appended to the bottom of the stack.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
GridView is an effective way to display the contents of cloud storage devices.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
A ____ control is part of the View group and displays objects in a two-dimensional, scrollable grid.

A) BagView
C) MatrixView
B) GridView
D) ScrollableView
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The TabHost control must always be placed at the "top" of the Android window.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
It is typically easier to manage one XML layout file for all the tabs in an application, which suggests that running one Activity with multiple tabs is the preferred approach.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
The ____ control allows you to wrap multiple views in a single window.

A) FlipScreen
C) TabbedPane
B) MultiWindow
D) TabHost
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In the Graphical Layout tab of Eclipse, a(n) ____ placeholder marks the location of future tabs.

A) blue
C) green
B) brown
D) orange
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
A View instance occupies a rectangular area on the screen and is responsible for drawing component in an outer container, such as a GridView control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
The TabHost class will automatically add any TabSpec objects that have been created.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The ____ is the root control of the ____ and ____.

A) TabHost; TabWidget; FrameLayout
C) FrameLayout; TabHost; TabWidget
B) FrameLayout; Grid View; TabHost
D) GridView; TabHost; TabWidget
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
When using multiple images in a GridView, it is often easiest to hold them in a(n) ____.

A) array
C) set
B) queue
D) table
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
The recommended name of the first Tab Activity is ____.

A) .Tab1
C) Tab1
B) .TabOne
D) TabOne
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
The XML code for the Android ID of the FrameLayout for a tabbed application is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
The ____________________ control is the root of the layout and can be placed at the top or bottom of the Android window.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
To display the auto-complete listing for a piece of code in Eclipse, press ____.

A) alt+spacebar
C) shift+spacebar
B) ctrl+spacebar
D) spacebar
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The method to locate a View class by its identifier is____.

A) accessView
C) locateView
B) findViewById
D) viewFromId
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The ____ method defines the padding for all sides of each image.

A) createPadding
C) padding
B) definePadding
D) setPadding
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
The getView()method uses ____ to create a new ImageView instance.

A) Activity
C) GridView
B) Context
D) TabWidget
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ property can be set to an integer or to auto_fit.

A) columnWidth
C) numColumns
B) layout_width
D) stretchMode
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
By dividing different components of the user interface and displaying them in ____, it is easier for developers to reuse these components across various Activities.

A) Fragments
C) Intents
B) GridViews
D) Tabs
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The ____ property sets the content for a TextView control.

A) content
C) text
B) display
D) view
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Each tab must have a(n) ____, which specifies how the tabs should actually appear.

A) AbstractTab
C) TabLayout
B) Design
D) TabSpec
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Android uses the ____ method to open a URI.

A) accessURI
C) startActivity
B) getURI
D) uriOpen
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
The ____ method is used to set the type of scaling in the ImageView control.

A) imageBehavior
C) setScaleType
B) scalingFunction
D) setType
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The XML namespace can be found at ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
The code to assign the ID of the TabWidget control in the XML layout file is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
The ImageAdapter class usually extends ____.

A) BaseAdapter
C) MainAdapter
B) ControlAdapter
D) ViewableAdapter
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
The ____________________ control lies inside the TabHost and displays the tabs.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
The setLayoutParams method in the ImageView class requires ____ parameter(s).

A) one
C) three
B) two
D) four
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
The ____ sets the width and height of a GridView in pixels.

A) columnWidth property
C) TabView method
B) LayoutParams method
D) padding property
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
The code to place in the manifest file in order to have a titleless theme is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
The code to set an ImageAdapter around your Activity class, and then set it to a GridView g as the bound adapter is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
A(n) ____________________ is essentially a sub-Activity hosted inside another Activity.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
The GridView class is in the ____________________ package.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
The code to set an Intent called myIntent to a TabSpec named mySpec is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
The TabSpec method ____________________ sets the tab button caption and supplies the icon image to the tab.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
The ____________________ class is used to load and access resources for the application.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
The code to have a TabSpec instance called mySpec use "Photos" as the text and photostack. png as the image is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
The ____________________ property specifies a fixed width for each column.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
The code to move a bottom-placed tab five pixels from the bottom edge is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.