This page was machine-translated from Portuguese and may contain errors. The Portuguese version is canonical.
Runnable sample apps
Because CrossFly is native/OpenGL (it doesn’t run in a live web sandbox), the “examples” are runnable projects that you clone and run on the desktop — fast iteration, no emulator:
gradlew :lwjgl3:run
What each example demonstrates
| Example | Demonstrates |
|---|---|
| To-Do / CRUD | Window, VerticalLayout, TextField, VirtualListView, SQLite persistence |
| Widget gallery | all widgets (one screen per family) — a living visual reference |
| Navigation and pickers | Window stack, DatePicker/PhotoPicker/ColorPicker |
| Themes and skins | Styles.setDarkMode(...) and `Skin.set(new MaterialSkin() |
| Large lists | VirtualListView with thousands of items (recycling) |
| Device | camera/GPS/Bluetooth BLE via dev.crossfly.device |
| Charts | LineChart/AreaChart/BarChart/StackedBarChart/PieChart/DonutChart/ComboChart (ChartView + ChartType) |
The examples mirror the sample suite in the dev.cf package (used as a reference, not as a
dependency of your app).
How to use
- Open the example project in your IDE (or clone the samples repository).
- Run
gradlew :lwjgl3:run. - Read the code of the screen that interests you — each example is small and focused.
- Copy the pattern into your app.
The documentation screenshots are generated from these screens via
Main.getScreenShot(...)+ the testing framework (Testing), so they never grow stale.
See also
- Guided tracks: Get Started · Learn
- Samples and tutorials · Contributing
Was this page helpful?Thanks for the feedback!