http://developerstudyjams.com/
Week 7 - Retrospectively looking at Udacity Lesson 5 Rich & Responsive Layouts
Google Developers Study Jams is a free series of global, community-run, in-person study groups. The first Study Jams series is presented in partnership with Udacity and will follow their Android Fundamentals curriculum. Google Developer Group facilitators certified in the course will lead the Study Jams that meet once weekly for 8 - 9 weeks.
Promote using hashtag #devstudyjam
4. Prime Directive
‘Regardless of where we are up to, we
understand and truly believe that
everyone did the best job he or she
could, given his or her skills and
abilities, the personal time available,
and the situation at hand.’
5. Difficulty Check
● Who completed the class?
● How long did it take?
● Hands up 1-10 difficulty of the weeks lesson
● Any specific areas of the lesson that require
particular focus?
6. Retro lesson 4 rich & responsive layouts
What we learnt last week
● Design principles
● Views & ViewGroups
● ViewHolder pattern
● Optimising layouts with hierarchy viewer
● Resource folders with buckets & qualifiers
● Fragments
● Custom Views
7. Design Principles
● Enchant me
● Simplify my life
● Make me amazing
http://developer.android.com/design/get-started/creative-vision.html
● 30 seconds to win people over
● Suprise & delight
● Subtle animations
● Contribute to a feeling of power
and effortlessness
● Touch & interact with objects
directly
19. ViewHolder pattern
● findViewById() is a heavy call that does view hierarchy
traversal
● Remove unnecessary calls to findViewById()
● stored in the “tag” field of the view, setTag(Object) getTag()
20. Hierarchy Viewer
From a terminal, launch hierarchyviewer from the <sdk>/tools/directory.
http://developer.android.com/tools/debugging/debugging-ui.html
27. Headless Fragments
● setRetainInstance(true);
● Lives separate from the Activity
● Doesn’t create a view
● Doesn’t need to be destroyed & recreated
● Lifecycle is slightly different
● Great for networking
● Holding cache data
33. What went well
● Wireframing first always give me a better insight into
what layouts to use
● Understanding navigation should always be done by an
Activity
● Headless fragments are a powerful feature
● Fragments and rotation
● Themes & Styles
● Accessibility Developer Checklist is great http:
//developer.android.
com/guide/topics/ui/accessibility/checklist.html
35. What didn’t go so well
● android:gravity vs android:layout_gravity is so
confusing
● ActionBar
● Flag to remember if you’re in a 2-pane layout or
single-pane
● User icon naming convention “ic_”
● Lesson has a lot of stuff to cover
● having v21 & v14 styles is a lot of overhead
37. Next Week - Android
Jam
Services & Notifications
38. Next Lesson - Services & Notifications
Learning Objectives:
- Background work & Services
- Efficient data transferring
- Sync Adapters
- Notifications
- Final Project
39. See you next week..
- Time: Tuesday 7pm
- Place: SpacePort
- Things needed: You + Questions +
Feedback
- Can contact us if issues:
@blundell_apps / @android_mcr