Warning: Illegal string offset 'language' in /var/www/vhosts/ansuz.nl/subdomains/blog/httpdocs/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510
Warning: ksort() expects parameter 1 to be array, string given in /var/www/vhosts/ansuz.nl/subdomains/blog/httpdocs/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513
9.00 What’s new in Android
Company: Google, Speaker: Chet Haase
New Nexus 6 and 9 devices. Android Studio 1.0 Beta.
Material design: Tangible surface, easy ways of branding, meaningful motion, adaptive design. Also see the design documentation.
UI toolkit: New theme (material), theme colours (all assets are greyscale and can be tinted), dynamic colors (pallet API). New (material) widgets: RecyclerView, (Stacker)GridView, CardView.
Graphics: Real-time shadows relative to light source (60fps), outlines for Views. Render thread.
Material animations: Activity and Fragment transitions. Animation curves. Animated reveal. Animated vector Drawable.
System changes: Document-centric apps, new (material) Notifications, heads-up Notifications. Notifications on lock-screen.
Media: OpenGL ES 3.0, Android extension pack, Camera & Audio: raw input, MediaSession, MediaBrowser.
ART is now the runtime for L.
Project Volta: optimising battery usage. New service: BatteryStats. Use Historian (on Github) to analyse results.
Company: Google, Speakers: Chris Banes, Nick Butcher, Slides on G+.
Reasons behind Material Design:
- Providing a coherent cross-platform experience.
- A more flexible design system for Android.
- A rational approach to visual, interaction and motion design.
UI as digital paper. Adding z-depth, signifying UI element importance.
Z = Elevation + TranslationZ.
New “stateListAnimator” XML-attribute.
Extend the ViewOutlineProvider class to create any clipping.
Refined typography, using typography to provide the app structure. Typographic scale provides the standard scales.
There is a new TextAppearance.AppCompat style.
Using bold colours, take the brand colour and use the complementary as accent.
Theme.AppCompat provides the tinting as well (API 7+).
Content can provide colours. To generate the colours, use the Palette class:
The palette generation takes roughly 30ms, so run it on a separate thread.
To enable Activity transitions, add “android:windowContentTranstion” attribute to your theme. Next, Define a shared element. And finally, start the Activity.
Asymmetric motion, user initiates motion. To create this, use the RippleDrawable (“ripple” XML-tag).
Circular Reveal, use ViewAminationUtils.createCircularReveal(…).
Making apps looks good on various screen sizes.
Think in Keylines, Increments, blocks.
New more flexible Toolbar (based off Actionbar).
Add “Toolbar” XML-tag in your layouts. Also available in AppCompat.
12.00 How to Build a One Man Band
Speaker: Nicoll Hunt
You’ll need: Time, money, skillz.
Stop wasting time on unrelated things. Use self-funding and/or crowd funding (like kickstarter). Work with your limitations, accept them, don’t try to fight them. Learn to deal with criticism.
13.45 Graphical Magic – Styling Android
Speaker: Mark Allison, Blog: blog.stylingandroid.com
Increasing performance by reducing GPU overdraw. Turn “GPU Overdraw” on in device developer settings to see trouble areas. Flatten any Views with transparent backgrounds. Hook into the “onPreDraw” method.
Use the ColorMatrix class to manipulate colour information. Use a paint Shader to apply effects on text, the same way you can create outlines (a.k.a image masks).
Applying blur effects with RenderScript. To avoid artefacts, add a margin and crop it off later.
Don’t forget to recycle() any temp Bitmaps.
14.35 Rx-Fy all the things!
Company: Novoda, Speaker: Benjamin Augustin
Reactive Extensions Java project: RxJava on Github.
Important Operators/methods to remember:
To perform multiple operations / create a pipeline, chain multiple of the above Operators.
Novoda working on a set of RxJava tools for Android.
RxAndroid – Collection of tools for Android created by SoundCloud.
For a quick intro into RxJava, have a look at the RxJava workshop in the Novoda workshops repo.
15.45 “Project Volta”
Or “Getting By With Less Than 1.21 Gigawatts”
Company: Commonsware, Speaker: Mark Murphy
Discussing the new JobScheduler class. All slides can be found at commonsware.com/presos/droidconUK2014.
BatteryHistorian is a python script hosted on the Google Github.
16.35 Deep Dive into the Gradle-based Android Build System
Company: Gradleware, Speaker: Etienne Studer
The Gradle DSL configuration is mapped to the AppExtension object.
When creating your own tasks, make sure to define inputs and outputs so the task can be skipped when there is no change.
Enable Gradle daemon on your local machine to cut down VM warm-up times.
17.30 Closing Ceremony