Sapient Company Programming

Which of the following is a layout Manager?
A. Framelayout
B. ScrollView
C. LinearLayout
D. GridLayout

1) Only A & B
2) Only B
3) Only A, C, D
4) Only C & D

Read Solution (Total 1)

Sapient Other Question

It is possibel that two activites are in the same process and one activity is starting the other activity.
What is the correct order of operations that occur when activity A start Activity B?

1. Activity A's onPause() method executes
2. Activity B's onCreate(), onStart() and onResume() methods execute in squence (Activity B now has user focus)
3. Then, if Activity A is no longer visible on screen, its onStop() method executes.

1) 2-->1-->3
2) 1-->2-->3
3) 1-->3-->2
4) 2-->3-->1
Which attribute specifies how to place the content of an object, both on the x- and y-axis, within the object itself?

1) layout_VerticalX
2) layout_HorizontalY
3) layout_gravity
4) layout_XY