-
Book Overview & Buying
-
Table Of Contents
Android Programming for Beginners - Fourth Edition
By :
You have probably noticed that much of the Kotlin syntax we have learned about so far doesn't quite correspond to the code we have seen in the composable functions. As a reminder, composable functions are the functions that are preceded by the @Composable annotation.
Furthermore, the code in the setContent call has the same disparities as the composable functions. Here is a reminder of what the setContent calls look like.
setContent{
...
}
For a start, if setContent is a function call, why isn't the call wrapped in nice, neat parentheses like all the functions we learned about in the preceding chapter?
In an ideal world, this information would have been in Chapter 2. Still, as I explained in Chapter 2, **The structure of the demo app**, a straightforward explanation is, in my view, impossible without the background information of the previous chapters.
In this chapter, we are now prepared to find out why there appear...