Question

QUESTION 1 Which of the following methods would be implemented by the developer when drawing customized...


QUESTION 1

Which of the following methods would be implemented by the developer when drawing customized 2-D Graphics on a View?


a.invalidate
b.draw

c.onDraw

d.drawSquare


QUESTION 2

Which of the following methods will correctly request a re-drawing of the customized 2-D graphics on a View object once this specified method is invoked?

a.draw

b.invalidate

c.onDraw

d.validate



QUESTION 3

What type of object is passed to the onDraw method and is used for drawing customized graphics on the View?

a.Graphics?


b.Canvas?


c. CoreGraphicsContext?


d. View?


QUESTION 4

The overriden View's onDraw method can be invoked directly from any method outside of the Customized View's class.



a.True


b.False


Homework Answers

Answer #1

1) c. onDraw()

Reason. onDraw() can be used by view to draw itself.

2) b. invalidate ()

Reason: invalidate() correctly request a re-drawing of the customized 2-D graphics on a View object once this specified method is invoked.

3) b. Canvas

Reason: Canvas object is passed to the onDraw method and is used for drawing customized graphics on the View.

4) False

Reason: The overriden View's onDraw method cannot be invoked directly from any method outside of the Customized View's class.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
JAVA QUIZ Question 1 Which of the following is false about a "super" call in a...
JAVA QUIZ Question 1 Which of the following is false about a "super" call in a sub class's constructor? Select one: a. It must be the first statement in the constructor b. If you don't include it Java will c. If you don't include it you must have a 0 parameter constructor coded in the super class or no constructors coded at all in the super class d. The sub class constructor containing the super call and the called super...
1 Which of the following statements is TRUE regarding time series forecasting methods? a Moving average...
1 Which of the following statements is TRUE regarding time series forecasting methods? a Moving average (MA) method is appropriate for forecasting an item that shows seasonal pattern b By assigning larger weight to the most recent period data, weighted moving average (WMA) method is more reflective to the changes in the most recent period of data than MA method c Simple exponential smoothing method is NOT appropriate for forecasting stable item without trend d Linear trend line method is...
Answer all the following multiple choices with the right answer. Question 1 Which object(s) would you...
Answer all the following multiple choices with the right answer. Question 1 Which object(s) would you use to describe the shape of the 2p orbital? Question 1 options: a) a circle b) a sphere c) a dumb-bell d) two perpendicular dumb-bells e) a doughnut Question 2 Which situation must be true for two electrons to occupy the same orbital? Question 2 options: a) The electrons must have low energy. b) The electrons must have identical sets of quantum numbers. c)...
Question 1 of 15 Which of the following is not a recommended starting point to enter...
Question 1 of 15 Which of the following is not a recommended starting point to enter sales of products/services? A. Quick Create > Invoice B. Register > New transaction C. Quick Create > Sales Receipt D. Customer detail page > New transaction E. Transactions > Sales > New transaction Question 2 of 15 Which of the following statements accurately describes bank rules? A. Bank rules are imported from the Bank's website into the For Review tab in the Banking Center...
1- which one of the following statements regarding valuation is false a when using the discounted...
1- which one of the following statements regarding valuation is false a when using the discounted free cash flow model, we should use a firm's wacc b. the comparables method takes into acount important differences between different firms c the difference between the discounted free cah flow model and the dividend discount model is that the latter computes a firms stock price directly while the free cash flows model has to make adjustments to get the share price d one...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime...
Question 1) Which of the following are considered valid criticisms of the legalistic model of crime and criminology? a. Law in action departs substantially from the ideal behavior of the law. b. Focusing only on legally criminalized behavior makes it impossible to consider the impact of gender, race, age and ethnicity. c. Legalistic definitions ignore acts that cause great harm. d. The legalistic model suggests that these are absolute standards for judging right and wrong. e. All of the above....
Question 1 Which of the following are ways to improve your global and intercultural fluency? Question...
Question 1 Which of the following are ways to improve your global and intercultural fluency? Question 1 options: Travel Make new friends Engage in friendly debate All of the above Question 2 What is service learning? Question 2 options: The knowledge, skills, and motivation that enable individuals to adapt effectively in cross-cultural environments A structured program that alternates work experiences in a career field with classes for a semester or a year to integrate classroom learning in practical work settings...
1) Consider the following Java program, which one of the following best describes "setFlavor"? public class...
1) Consider the following Java program, which one of the following best describes "setFlavor"? public class Food {     static int count;     private String flavor = "sweet";     Food() { count++; }     void setFlavor(String s) { flavor = s; }     String getFlavor() { return flavor; }     static public void main(String[] args) {         Food pepper = new Food();         System.out.println(pepper.getFlavor());     } } a. a class variable b. a constructor c. a local object variable d....
Circle the letter that corresponds to the best answer for each question. 1.     Which of the...
Circle the letter that corresponds to the best answer for each question. 1.     Which of the following statements concerning the nursing process is accurate? a.     The nursing process is nurse oriented. b.    The steps of the nursing process are separate entities. c.     The nursing process is nursing practice in action. d.    The nursing process comprises four steps to promote patient well-being. 2.     Which of the following groups legitimized the steps of the nursing process in 1973 by devel- oping standards...
QUESTION 1 Which of the following best exemplifies offshoring? A. A U.S. company employs foreign nationals...
QUESTION 1 Which of the following best exemplifies offshoring? A. A U.S. company employs foreign nationals at its U.S. based headquarters. B. A U.S. company translates novels originally written in foreign languages into English for distribution in the U.S. market. C. A U.S. company starts a chain of fusion restaurants to cater to the American public’s evolving palates. D. A U.S. company purchases footwear made in Europe to distribute to retailers in the United States. E. A U.S. company that...