Hoisington, C. (2013). Android boot camp for developers using java . Boston: Cen
ID: 645619 • Letter: H
Question
Hoisington, C. (2013). Android boot camp for developers using java. Boston: Cengage Learning, Inc.
Chapter 7: Development FAQs
What do the numbers in the following statement represent?
pic.setLayoutParams(new GridView.LayoutParams(300, 325));
What does the aspect ratio 3:2 mean?
In the following method, what does int (integer) represent?
public int getCount( ) {
return Soccer.length;
}
What would be returned in the method in question 17 if the Soccer array
has the maximum index of 22?
What term does the following define? Constructs the values of data members of the class.
Write a statement that sets the scale type to CENTER for an ImageView instance named tower.
Explanation / Answer
1) the parameters 300,325 are to set size for layout...in our basic terms setting size of an emulator
2)It is all about space..generally 3:2 ratio means relationship between hieght and width of image i.e 36x24mm
3)int is return type.....if int some value must be return
if void nothing must return
4)generally index start from 0
if index 0 then length 1
if index 1 then length 2
so if index 22 then length 23
4) This term defines to create constructor. Constructor is to initialize values when created
5)tower.inage.setScaleType(InageView.ScaleType.CENTER_CROP);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.