Exam 7: Touches and Swipes

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The getX method of MouseEvent returns:

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

B

What does the getRawX method of MouseEvent return?

Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
Verified

A

It is possible to adjust the font size of a TextView depending on the text contained inside the TextView.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

True

The public field of the ViewGroup.MarginLayoutParams class defining a top margin is __________________.

(Short Answer)
4.7/5
(38)

To handle touch events, one of the things we must do is define a class that implements View.OnTouchListener and overrides its ____________ method.

(Short Answer)
4.9/5
(38)

We want to be able to compare the starting coordinate of a touch with the ending coordinate of a touch. How can we do it?

(Multiple Choice)
4.9/5
(41)

It is possible that two Views overlap, in which case one View is stacked above the other View.

(True/False)
4.9/5
(30)

We can enable the user to move a TextView.

(True/False)
4.9/5
(32)

The __________________ interface notifies us of double taps or confirmed single taps.

(Short Answer)
4.8/5
(30)

The public field of the ViewGroup.MarginLayoutParams class defining a right margin is ____________.

(Short Answer)
4.8/5
(31)

It is possible for a device to detect taps.

(True/False)
4.9/5
(30)

The onDown method of the GestureDetector.OnGestureListener interface is called on a(n) __________________ action when a touch occurs.

(Short Answer)
4.9/5
(32)

Touching the screen can be detected on Android devices.

(True/False)
4.8/5
(31)

If a TextView has not been displayed yet, it is possible to retrieve measurements about its width and height using the __________________ method.

(Short Answer)
5.0/5
(43)

One of the things we must do to handle touch events is create an object of a class that __________________ View.OnTouchListener.

(Short Answer)
4.9/5
(35)

The rgb ____________ method of the Color class can be used to create a Color.

(Short Answer)
4.8/5
(37)

Which method of the GestureDetector class should we call from the onTouchEvent method of the Activity class to dispatch a touch event to the appropriate method of the listener interfaces?

(Multiple Choice)
4.8/5
(42)

The public field of the ViewGroup.MarginLayoutParams class defining a bottom margin is __________________.

(Short Answer)
5.0/5
(33)

The onSingleTapUp method of the GestureDetector.OnGestureListener interface is called on a(n) ____________ action when a touch occurs.

(Short Answer)
4.8/5
(38)

What does the getAction method of MouseEvent return?

(Multiple Choice)
4.8/5
(33)
Showing 1 - 20 of 22
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)