This example demonstrates several things:
- Cross platform code and files, similar to the way XUI2D games are organized:
- All the logic is implemented in a class named EditableTable. The module is located in the projects parent folder.
- The two asset files (list of animals - source; and the preferences dialog template) are stored in the Shared Files folder and are copied when needed with a #CustomBuildAction command. You can see it in the EditableTable class. Note that if you want to update those files then you need to update the files in the Shared Files folder. The project specific files will be updated automatically.
- Using B4XTable and B4XPreferencesDialog to create an editable table. Table features:
- Add new items.
- Edit existing items.
- Delete existing items.
- Duplicate existing items.
- Data is saved when the app closes to a CSV file.
- Saved data is loaded when the app starts.
- B4XPreferencesDialog v1.30+: https://www.b4x.com/android/forum/threads/103842/#content
The B4A, B4i and B4J projects are attached.
B4J example of a table with inline editing: https://www.b4x.com/android/forum/threads/b4xtable-with-inline-editing.112686/#post-702660
189.3 KB Views: 1,757