Model solution to Tuesday Week 3 in-class quiz part II

Model solution to Tuesday Week 3 in-class quiz part II

by Tony deLaubenfels -
Number of replies: 6

Include question and reference.

In reply to Tony deLaubenfels

Re: Model solution to Tuesday Week 3 in-class quiz part II

by Hwi Ram Jeong -

padding is the space between the content and the border, whereas margin is the space outside the border.

enter image description here


source : http://stackoverflow.com/questions/5958699/difference-between-margin-and-padding

In reply to Tony deLaubenfels

Re: Model solution to Tuesday Week 3 in-class quiz part II

by Joe Sterchele -

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. 

In reply to Tony deLaubenfels

Re: Model solution to Tuesday Week 3 in-class quiz part II

by Eric Andow -

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

In reply to Tony deLaubenfels

Re: Model solution to Tuesday Week 3 in-class quiz part II

by Brian Hixson-Simeral -

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.

In reply to Tony deLaubenfels

Re: Model solution to Tuesday Week 3 in-class quiz part II

by Rollin Tschirgi -

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

In reply to Tony deLaubenfels

Re: Model solution to Tuesday Week 3 in-class quiz part II

by Dawit Tsigie -

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