Updated the Component and Blockly Version Upgraders since I bumped the version for the Label, TextBox, PasswordTextBox components. I'm going to test these for a couple days and then merge into master. It would be nice to get some feedback on these changes, thanks. Enjoy!
Added BackgroundImage support to Label, TextBox and PasswordTextBox. You can now add 9-patch(*.9.png) images to you assets and set them as background image for your labels and textboxes. Note: 9-patch images are not shown in the Designer as it would not look right anyway, Use companion to see your changes. This could make for some really nice UIs :)
TextBox/PasswordBox changes Added the events EnterPressed and TextChanged to TextBoxBase and its inheritors. Added the function SelectAll Added properties SelectAllOnFocus and ErrorText. Enjoy!
We need to use an annotation parameter to actually group Properties for display rather than the chaos sometimes created by the current alphabetic fashion. I kinda like the way Kodular has that "Advanced" expanding section as well. What do you guys think?
Added RotationAngle to both Label and TextBox components. Added SetCursorAt and SetCursorAtEnd functions to TextBox. These are all things I had to use extensions for in my last app :)
I needed to add shadow text support to the Label component and decided to just add the other features too. Added are the following: Clickable: property read-write Designer/Blocks Marquee: Note marquee will do nothing if the text is not long enough to ellipse. MarqueeRepeatLimit: Leave a -1 for infinite Events: Clicked: Fired when you click label if Clickable turned on LongClicked: Same as above Functions: StartAnimation: param style read docs StopAnimation: SetShadow: Add shadow layer to text TextBox...
The problem as I'm seeing it is that cleartext is not a runtime option it can't be toggled at its an AndroidManifest.xml thing. Why its always false for the companion is because companion is just an AI2 app and what it does is actually make the method calls associated with whatever that component is (Form.class aka Screen1). So because the companion does not have the cleartextTrafficPermitted=true in its own properties file so at build time buildserver packages it with false. A quick fix would be...
The problem as I'm seeing it is that cleartext is not a runtime option it can't be toggled at its an AndroidManifest.xml thing. Why its always false for the companion is because companion is just an AI2 app and what it does is actually make the method calls associated with whatever that component is (Form.class aka Screen1). So because the companion does not have the cleartextTrafficPermitted=true in its own properties file so at build time buildserver packages it with false. A quick fix would be...