[Wish] More Widget Features

XverhelstX

Well-Known Member
Licensed User
Longtime User
HI Erel,

Is it possible to add some (of the following) functions for the homescreen widgets?


B4X:
setLayout(String ViewName, int Left, int Top, int Width, int Height);

- Changes the view position on runtime. (need this desperately.)


B4X:
getWidth(String ViewName);
setWidth(String ViewName, int Width);

- gets (and sets) the width of a view.


B4X:
getHeight(String ViewName);
setHeight(String ViewName, int Height);

- gets (and sets) the height of a view.

B4X:
addView(View view, String ViewName, int Left, int Top, int Width, int Height);

- Adds a view on runtime. (need this desperately.)

B4X:
removeView(String ViewName)

- Removes a view at runtime. (need this desperately.)

I don't know if it's added yet, but perhaps a:

_longclick

for some views?

Thanks,

XverhelstX
 
Last edited:

corwin42

Expert
Licensed User
Longtime User
I don't know if it's added yet, but perhaps a:

_longclick

for some views?

I think a long click is not possible on widgets because if I make a long click on a widget the launcher opens a popup menu to configure the widget.
 

magarcan

Active Member
Licensed User
Longtime User
I would also add an easiest way to build widgets. Too much XML edition is needed in order to build one.
 
Top