This talk was given by Trevor Stokvis (https://www.linkedin.com/in/tstokvis/) at the first Vancouver Kotlin Night as part of the http://vankotl.in user group.
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
Abstract Views - Trevor Stokvis
1.
2. Publishing Team
- Focus on composing, scheduling and controlling content
- Recent projects:
- New Compose
- Facebook album support
- Extensible Media Library
4. Publishing Team
- Adopted Kotlin on March 21st, 2017
- Since:
- Lines in Java: 695
- Lines converted from Java to Kotlin: 732
5.
6.
7.
8.
9.
10.
11. How should it be?
- View components should be abstract
- Should be able to put a view inside an XML and it should work
without adding anything
- View parent should state what happens to the fragment when the
component is interacted with
- View component state what happens to the component when it is
interacted with
12.
13. How does Kotlin help?
- Setting Lambda functions as variables
- Functions can be set by the view parent for onClick, onTextChanged etc
- When the component is interacted with, perform a uniform behavior and then call
the unit local variable
- Nullability
- Variables be null, meaning that if the variable isn’t set do nothing
- You only have to set functions for things you only care about