B4XThreePages - Based App UI (Basic, Shaped, Borderless or Transparent Style)
This B4J project template is based on Erel's [B4X] B4XPages + B4XDrawer example. The B4XThreePages - Based App UI is the result of seeking shaped and transparent form version of the B4XPages + B4XDrawer as discussed on the related thread. This is a work in progress but can serve as take off on developing B4J apps with the suggested UI. This is intended to be extended to B4A and B4i. Certain libraries, classes, layouts, UI design, and code snippets sourced from B4X developers in this forum, credits are attributed to them (as comments within the code source and link to their work).
B4XThreePages - Based App UI Source Code Description:
The B4XPages + B4XDrawer app UI framework introduced by Erel is a good approach in developing applications with basic as well as modern user interface. In that direction, this B4XThreePages - Based App UI template further extends the possibilities the basic B4XPages + B4XDrawer provides such as theme (light, dark, etc.) and style (decorated, transparent, etc.) selections and applies on the fly. App form can be dragged using most views. As Erel pointed out in this thread and other threads on transparent B4X pages (that is supposed to be non-transparent but made possible here), changing form style requires app restart which is automated in this app template. Further, form settings (position, size, theme, style) are remembered for next app run. Provided as is and may contain code logic or efficiency issues, use this template and improve on it as desired, share your creation.Note:
Various libraries aside from internal B4J ones are needed. Also, ensure that a background is set first by clicking the draw pen -> Random Background -> Check icons, avoiding silly transparent background color. In order for the app auto-rerun during style change, a standalone package (.exe) must be made using B4J IDE and app run from the executable.Download Link:
Download the source code of the B4XThreePages - Based App UI from the link below:Attachments
Last edited: