Zhelyazko Atanasov
08/16/2020, 5:37 PMScaffold
but reading the docs doesn't really explain what it is. Judging by the samples, it looks to be something like a CoordinatorLayout
, am I right?
2. All the samples I've been reading use hardcoded values for dimensions (using the extension function Int.dp()
). Haven't read much about Theming yet, but is it possible to define something similar to custom attributes (attrs.xml
) or dimensions and reference those instead of the hardcoded values? Same for Strings - is there an alternative to strings.xml
/ plurals.xml
3. Are there any more complex examples of a complete application? I'm about to read and play with Chris Banes' Tivi, as I'd like to see some samples on how to handle large app with many different screens, what are the best practices to integrate Composables with ViewModel...
4. And last one for the time being - so far I haven't seen/read anything about handling configuration changes (the most common one being screen rotation). In Activity's world we have onSaveInstanceState()
- is there an alternative in Compose (other than ViewModel's SaveState)?Adam Powell
08/16/2020, 5:43 PMremember {}
but that does the usual parcel saving.Zhelyazko Atanasov
08/16/2020, 5:46 PMsavedInstanceState
composable and how to reference String resources.Adam Powell
08/16/2020, 5:49 PMZhelyazko Atanasov
08/16/2020, 5:57 PMcb
08/18/2020, 7:11 AM