Even though widgets were available in B4A for over a year, this is the first time one of my apps needed them. I went through the tutorials, questions, everything and figured out a lot. Still there are a few issues I am facing.
1. Is it possible to resize the labels and imageviews in a widget, on run time, with code?
2. My widget has a label, clicking upon which should open a link in the browser. This link changes every time. Normally if it was in an activity, I would have stored the link in label.tag and retrieved it in the label_click event using Sender. But in case of widgets I couldn't set the tag using code. Moreover trying to request Sender in label_click resulted in force close of the app. So how can this be done here?
3. Is it possible to enable setEllipsize for a label used in the widget, so that the text gets truncated properly with "..." in the end, instead of an abrupt cut off? If no, then how can I calculate the maximum number of characters that will fit within a label?
1. Is it possible to resize the labels and imageviews in a widget, on run time, with code?
2. My widget has a label, clicking upon which should open a link in the browser. This link changes every time. Normally if it was in an activity, I would have stored the link in label.tag and retrieved it in the label_click event using Sender. But in case of widgets I couldn't set the tag using code. Moreover trying to request Sender in label_click resulted in force close of the app. So how can this be done here?
3. Is it possible to enable setEllipsize for a label used in the widget, so that the text gets truncated properly with "..." in the end, instead of an abrupt cut off? If no, then how can I calculate the maximum number of characters that will fit within a label?