XverhelstX Well-Known Member Licensed User Longtime User Sep 26, 2011 #1 HI Erel, Is it possible to add some (of the following) functions for the homescreen widgets? Code: Copy setLayout(String ViewName, int Left, int Top, int Width, int Height); - Changes the view position on runtime. (need this desperately.) Code: Copy getWidth(String ViewName); setWidth(String ViewName, int Width); - gets (and sets) the width of a view. Code: Copy getHeight(String ViewName); setHeight(String ViewName, int Height); - gets (and sets) the height of a view. Code: Copy addView(View view, String ViewName, int Left, int Top, int Width, int Height); - Adds a view on runtime. (need this desperately.) Code: Copy 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: Sep 26, 2011
HI Erel, Is it possible to add some (of the following) functions for the homescreen widgets? Code: Copy setLayout(String ViewName, int Left, int Top, int Width, int Height); - Changes the view position on runtime. (need this desperately.) Code: Copy getWidth(String ViewName); setWidth(String ViewName, int Width); - gets (and sets) the width of a view. Code: Copy getHeight(String ViewName); setHeight(String ViewName, int Height); - gets (and sets) the height of a view. Code: Copy addView(View view, String ViewName, int Left, int Top, int Width, int Height); - Adds a view on runtime. (need this desperately.) Code: Copy 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
corwin42 Expert Licensed User Longtime User Sep 27, 2011 #2 XverhelstX said: I don't know if it's added yet, but perhaps a: _longclick for some views? Click to expand... 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.
XverhelstX said: I don't know if it's added yet, but perhaps a: _longclick for some views? Click to expand... 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.
M magarcan Active Member Licensed User Longtime User Sep 27, 2011 #3 I would also add an easiest way to build widgets. Too much XML edition is needed in order to build one.
I would also add an easiest way to build widgets. Too much XML edition is needed in order to build one.
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2011 #4 I would also add an easiest way to build widgets. Too much XML edition is needed in order to build one. Click to expand... Have you read the tutorials? Usually you will not need to modify any XML file yourself.
I would also add an easiest way to build widgets. Too much XML edition is needed in order to build one. Click to expand... Have you read the tutorials? Usually you will not need to modify any XML file yourself.
M magarcan Active Member Licensed User Longtime User Sep 27, 2011 #5 Erel said: Have you read the tutorials? Usually you will not need to modify any XML file yourself. Click to expand... It seems, I was mistaken with another tutorial
Erel said: Have you read the tutorials? Usually you will not need to modify any XML file yourself. Click to expand... It seems, I was mistaken with another tutorial