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 or anything based of TextBoxBase.java also got the shadow and animations functions.
Works for me so far however i would like help making the animation styles better/more fun.
The changes can be found on my repo textview_animations github branch
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 :)
Added the events EnterPressed and TextChanged to TextBoxBase and its inheritors.
Added the function SelectAll
Added properties SelectAllOnFocus and ErrorText.
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.
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 or anything based of TextBoxBase.java also got the shadow and animations functions.
Works for me so far however i would like help making the animation styles better/more fun.
The changes can be found on my repo textview_animations github branch
Enjoy!
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 :)
TextBox/PasswordBox changes
Added the events EnterPressed and TextChanged to TextBoxBase and its inheritors.
Added the function SelectAll
Added properties SelectAllOnFocus and ErrorText.
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 :)
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!