logoalt Hacker News

fhubtoday at 12:30 PM1 replyview on HN

If you can get your agent of choice to run up the app in an emulator and navigate the whole thing taking screenshots then tasks like edge-to-edge can be pretty hands off.

The way I did it was to firstly get accessibility identifiers on everything. Then have it record everything I do on an emulator to navigate the entire app. Then left it for a while to work out how to actually use the app via the emulator. Once you have this sort of baseline. A lot of changes are really quite pleasant. I often ask for an HTML gallery of screenshots covering a few device sizes as the step before I bother running it on a device myself.


Replies

david_allisontoday at 12:42 PM

We use Roborazzi[0], which is an excellent screenshot library, but:

* We target minSdk 24

* We're still using XML views

* We target a large variety of form factors

* We have a lot of screens, and these have a lot of configuration options.

I really wish it was "point an agent at it, and walk away", but many screens ended up being hours of iteration with Fable driving my phone/an emulator to produce an acceptable outcome.

Given that my Pixel 9 Pro has system screens which are still broken under edge to edge, it's not an easy change, and takes up time which could have been going towards feature development.

[0] https://github.com/takahirom/roborazzi/

show 1 reply