Custom TextView
Hello everyone, Today I am launching my new extension i.e Custom TextView.This extension helps you to create different (7) types of textviews Textview are basically labels that show piece of text. This extension can create 7 styles of textviews with many customization. You can head to the Preview for seeing the all types of textviews preview.
The seven styles of the textview that this extension creates are:-
- Scale TextView
- Rainbow TextView
- TypeWriter TextView
- Evaporate TextView
- Fade textView
- Fall TextView
- Line TextView
Let see some blocks and their documentation.
All Blocks
Documentation
This event raises when any label clicked
This event raises when any label long clicked
This event raises when the label’s animation start. Like in Typewriter TextView when it starts to write the text on it then this event will occur.
This event raises when the label’s animation is end.
This event raises when the TyperWriter textview complted its text.(This event is only for Typewriter textview).
This block creates the Scale styled textview with given Id. ID must be unique
This block creates the rainbow styled textview with given id. You need to give a list of colors in colors
parameter as it is called rainbow text. you can give multiple colors in a list. List length must be > 1.
This block created the Typewriter styled textview. You have to give an Integer in charIncrease
parameter. you can define the speed of the typewriter char by the SetSpeed
block.
This block creates the Evaporate styled textview. I like this most from other ones .
This block creates the Fade styled textview. You can give a float for spacing between the letter of the text. for ex. 0.10.
This block creates the Fall styled textview with given id
This block created the Line styled textview. It need the color and width of the line in params so it can set the property of the line. The line is not a simple stroke. It animates itself for the respected duration.
This block set the background color of the textviews with given id.
this block set or animates the text of the created labels with the given ids
this block helps to set the typeface for the label with given id. Where typeface must be an int. It set the typeface property of the textview like font awesome etc.
This block set speed of the animation of text in labels. Note. It is only applicable to TypeWriter and Rainboew Textview.
This block set the line color and line width of the Line textview(Only).
This block set the duration of animation of the textview. Note:- It is only applicable to fade and fall textview.
This bock set the visibility of the labels for given id.
This block set the clickibility of the labels.
This block set the font size of the labels for given id.
This block set the text color of the label for given id.
This block set the custom font typeface of the labels. Note:- It does not work in companion testing.
This block returns the text of created label for given id
This block return typewriter’s textview typing speed or char spped
This block return the id of the given textview.
This block returns the type of textview that you have created. For ex. It will return Fall TextView
if you given it the fall textview component.
This block returns true if the label is clickable for given id.
This block return the font size of the label for given id.
This block deletes the created label for the given id.
This block set the margin of the label for given id. Margin must be a list of 4 integers that defines the margin.
This block set the padding of the label for given id. It is same as the margin block. parameter paddings
must be a list of four integers.
This block return the label component refrenced to its id.
I hope you understand the documentation. Now let see Examples and Usage.
Usage and Preview
Scale TextView
Usage
Here we are creating a Scale styled textview. Let see its preview now
Preview
Rainbow TextView
Usage
Preview
TypeWriter TextView
Usage
Preview
Fade TextView
Usage
Preview
Fall TextView
Usage
Preview
Evaporate TextView
Usage
Preview
Line TextVIew
Usage
Preview
Note
I have used Animation End event for changing the text continuously. So dont think that the text will automatically change
Downloads
Credits
Thanks to @Mohamed_Tamer for helping me.
Thanks to @Shreyash for his super Rush .
Suggestion and issue are welcome
If you like the extension then like the topic
Thank You All
Donate
If you like my work then donate if you can