Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Developer FAQs Chapter 2 1. How many drawable folders are available in the res f

ID: 642866 • Letter: D

Question

Developer FAQs Chapter 2

1. How many drawable folders are available in the res folder?

2. If you were creating an app in many different languages, would you have to write the entire program from scratch for each language? What part of the program would stay the same? What part of the program would be different?

3. In which subfolder in the Package Explorer are the XML files stored?

4. Which three controls were used in the chapter project?

5. What is the difference between a Linear layout and a Relative layout?

6. Is the default layout for an Android screen Linear or Relative?

7. Which measurement is most preferred for text size? Why?

8. What does px stand for?

9. What does sp stand for?

10. What does dpi stand for?

11. Which picture file types are accepted for an ImageView control?

12. Which picture file type is preferred?

13. In the Palette in the layout folder, in which category is the ImageView control found?

14. Which three properties were changed in the chapter project for the Button control?

15. What is the property that defines the name of a Button control?

16. Write one line of code that would launch a second class named Garden from the present MainActivity class.

17. Write one line of code that declares a Button control with the variable bt that references a button in the XML layout with the Id property of btnOpinion.

18. Write one line of code that opens the XML layout named lemon.

19. Which two keys are pressed to auto-complete a line of Java code?

20. What character is placed at the end of most lines of Java code?

Explanation / Answer

1. There are three drawable folders : drawable-ldpi, drawable-mdpi, and drawable-hdpi.

2. No, I need not to write full program different in each language. Main function, variable declaration, slightly will be same. Header files also not all will be changed. User defined functions can remain the same. Just the syntax and tokens of different languages vary a little.

3.  ".rels" subfolder

4. Which chapter?????

5. Linear layouts put every child, one after the other, in a line, either horizontally or vertically. With a relative layout you can give each child a LayoutParam that specifies exactly where is should go, relative to the parent or relative to other children.

6. Linear Layout

7. Points. Points equates differently to pixels depending on the operating system or Web browser

8. The px unit is the magic unit of CSS. It is not related to the current font and usually not relatated to physical centimeters or inches either. The px unit is defined to be small but visible.The px unit got its name from those screen pixels.

9.Single Precision

10. Dots per inch

11.  JPG and GIF files are supported, but the preferred image format is PNG.

12. .jpg,.jpeg, .gif

13. UIControls

14. Chapter???

15. UIA_NamePropertyId