Include question and reference.
Re: Model solution to Tuesday Week 3 in-class quiz part II
padding
is the space between the content and the border
, whereas margin
is the space outside the border.
source : http://stackoverflow.com/questions/5958699/difference-between-margin-and-padding
Re: Model solution to Tuesday Week 3 in-class quiz part II
What is a database cursor?
A Cursor is a control structure that allows one to transverse over a database. This allows retrieval, addition, and removal of database records.
Re: Model solution to Tuesday Week 3 in-class quiz part II
1. What does sp stand for and why will we almost always use it (for text)?
SP stands for scale-independent pixels. They change size to match the user's text size settings, which people expect so that they can read on these miniscule screens. Not to be confused with SCP.
p. 156
Re: Model solution to Tuesday Week 3 in-class quiz part II
4.
The helper class is used to add some functionality that isn't the main focus of the main class.
CrimBaseHelper.java was used to check to make sure that the database exists and if it did not, it created it. I was also used to make sure that you were running the current version of the database and upgraded it if you were not.
Re: Model solution to Tuesday Week 3 in-class quiz part II
6) How do you access the GLT? Do you like it?
Click on any layout.xml and click on the Design tab on the bottom. you will be in the Graphical Layout Tool and can drag and drop new widgets and views.
We're divided on whether we like it or not. I personally like it for creating views, but find it useless for organizing them.
Sources:
android studio
Big nerd ranch textbook pg158
Re: Model solution to Tuesday Week 3 in-class quiz part II
4. Wrapper Class - in general, a wrapper class is any class which "wraps" or "encapsulates" the functionality of another class or component and allows you to add more functionality on top of it(methods).
We saw it in Lab when we used CursorWrapper