This is a follow-up to my earlier post about ChatGPT being able to modify an existing MIT App Inventor .aia file and return a usable .aia that can be imported directly back into App Inventor.
In that earlier experiment, the interesting part was not simply that ChatGPT could suggest blocks. It actually modified the project file itself and returned a working .aia.
I tried it again.
This time the change came from a usability observation.
My card-game scoring app has a screen where the scorekeeper sets the player order before the game begins. The original version used a standard ListView along with buttons such as Move Up and Move Down.
When I showed the app to my wife, she did something completely natural: she pressed on a player’s name and tried to drag it up or down in the list.
That immediately made me wonder whether the screen should work that way instead.
Since a standard App Inventor ListView does not provide native drag-to-reorder behavior, I asked ChatGPT whether there was another way to accomplish it using App Inventor components.
The approach it came up with was to replace the reorder portion of the screen with a Canvas.
The basic idea is:
-
Each player name is displayed in its own horizontal area on the Canvas.
-
TouchDowndetermines which player the user touched. -
Draggedtracks the finger vertically. -
As the finger moves into another row, the underlying player list is reordered.
-
The Canvas is redrawn to show the new order.
-
The reordered list is then passed to the rest of the app just as it was before.
The part that continues the earlier experiment is how the change was implemented.
I uploaded my existing .aia file to ChatGPT and told it to modify only that screen while leaving the rest of the app alone.
ChatGPT then modified the .aia project files directly and returned a new .aia.
I imported that returned file into MIT App Inventor in the normal way.
No rebuilding the project from scratch.
No manually recreating all the blocks.
No copying code line by line.
The modified project simply came back as another App Inventor project file that I could import and test.
I am keeping my known-good version untouched and doing these experiments in a newer copy, so if something fails I can always go back.
What interests me most at this point is not just the drag-to-reorder technique itself. It is the broader possibility that an AI can make targeted changes to an existing App Inventor project, preserve the rest of the application, and return a usable .aia for continued development.
That is the part I wanted to follow up on from my previous post.
I would be interested to know whether others here have experimented with AI modifying .aia files directly, or whether anyone has tried a similar Canvas-based drag-to-reorder approach.

