3 ms·
The Android example is a bummer. After this many years and generations of GUI frameworks, you should not have to experiment nor dig into source code to learn ho
by 01HNNWZ0MV43FF 7mo ago
The Android example is a bummer. After this many years and generations of GUI frameworks, you should not have to experiment nor dig into source code to learn how to do something as simple as laying out your widgets.
The docs should have examples for that kind of thing.
- tadfisher 7mo agoNote that the author is describing a custom View subclass, which is a couple of steps beyond "layout out your widgets". There used to be pretty comprehensive examples on the developer site for how to do View invalidation properly (calling requestLayout willy-nilly isn't always it). Nowadays, they learned from many years and generations of GUI frameworks and... made a new GUI framework, Jetpack Compose UI.