Java Question Edge to edge helper (borde a borde ayudante)

Enxix

Member
Estoy usando una librería (creada por mi [WindowInsets]) para aplicar edge-to-edge en B4A con B4XPages.
La librería funciona correctamente si instancio la clase manualmente en cada B4XPage, pero en realidad todas las B4XPages comparten una única Activity principal.

Necesito saber cuál es el parámetro correcto que debo pasarle a la librería para que reconozca automáticamente la Activity principal usada por B4XPages y así aplicar el diseño borde a borde una sola vez para toda la aplicación.

Actualmente no me queda claro si debo pasar:

* getActivity
* BA.activity
* Main
* B4XPages.GetNativeParent
* otro objeto/contexto específico

La idea es evitar inicializar la librería en cada página individual y hacerlo únicamente sobre la Activity real que maneja B4XPages.

I'm using a library created by me called WindowInsets to apply edge-to-edge support in B4A with B4XPages.

The library works correctly if I instantiate the class manually inside each B4XPage, but in reality all B4XPages share a single main Activity instance.

I need to know what is the correct parameter or object I should pass to the library so it can automatically recognize the main Activity used by B4XPages and apply the edge-to-edge layout only once for the whole application.

Right now it's not clear to me if I should pass:

* getActivity
* BA.activity
* Main
* B4XPages.GetNativeParent
* some other specific Activity or Context object

The goal is to avoid initializing the library in every individual page and instead initialize it only on the real Activity that hosts all B4XPages.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…