Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

Control + space will be the most popular shortcut you use, pressing it will bring up the codesense suggestion dialog when you type to allow you to find the method/variable you’re looking for. It will also bring up the documentation for the highlighted method. Press enter to auto complete

Pressing alt and enter will open up the quick fix menu which will give you some useful functions such as refracting a string or reversing an if statement

Pressing control and enter will bring up the generate menu which is useful when overriding methods from the super class you don’t know the name of

Pressing control and p will bring up the parameters for a method as you’re typing.

13.
@scruffyfoxLesson 2 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-2
How Adapters work
• getCount()
Exactly what it says – returns the number of
items in the current data set

14.
@scruffyfoxLesson 2 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-2
How Adapters work
• getItem(int position)
Returns the item from the data set at the
specific position

15.
@scruffyfoxLesson 2 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-2
How Adapters work
• getItemId(int position)
Returns the item’s id at the position. Can just
return 0, but return a reliable int
ID/representation of the item to increase
performance of the list view

16.
@scruffyfoxLesson 2 – https://github.com/scruffyfox/AndroidCourse/tree/Lesson-2
How Adapters work
• getView(int position, View convertView,
ViewGroup parent)
Returns the view in the list. This is where we do all of
our data inflating into the screen which the user sees.
Position is the position of the item in the dataset
ConvertView is the view that will be shown
Parent is the parent view of the view being shown
(usually the list view)