fengdai
11/01/2019, 3:08 AMmeasurement and intrinsic measurement?Adam Powell
11/01/2019, 1:26 PMPablichjenkov
11/01/2019, 2:02 PMrequestLayout() and invalidate() that ones can call when the shape or content of a composable change?
Or there is no need for that?Adam Powell
11/01/2019, 2:10 PMAdam Powell
11/01/2019, 2:11 PMrequestLayout and invalidate, the easiest way to get those is to change an @Model property that is read by the measure, layout or draw stages of the relevant componentAdam Powell
11/01/2019, 2:12 PMAdam Powell
11/01/2019, 2:12 PMPablichjenkov
11/01/2019, 2:22 PMrequestLayout or invalidate or both, optimized things a bit. Like calling only invalidate explicitly tell the system to skip measurement/layout phases.Adam Powell
11/01/2019, 2:25 PM@Model observation scopes perform the same duty here for triggering what phase we need to go back toAdam Powell
11/01/2019, 2:25 PMPablichjenkov
11/01/2019, 2:28 PMAdam Powell
11/01/2019, 2:28 PM@Model outside the scope of where you actually use it means you can end up causing more work than you intended when it changes. You want to read @Model as close to the usage site as possible.Pablichjenkov
11/01/2019, 2:34 PM