Library Implementation
Animated Gradient TextView
Import library to:
.sketchware/libs/local_libs/
Library: AnimatedGradientTextView.zip
Download from MediaFire
Download from File-Upload
1. Convert TextView widget to:
com.soap.widget.animatedgradienttextview.AnimatedGradientTextView
2. Add attrs.xml and colors.xml inside values folder from resources > values
Select resources from Configuration tab.
Select values from resources.
Create new xml files if you haven't created yet, just like from image below.
Edit colors.xml and add your color hex values, see image below for sample. (You can add as much as colors you want)
Edit attrs.xml and add list of colors. (You can add duplicate colors also)
3. Inject attributes to AnimatedGradientTextView widget
app:colors="@array/YOUR_COLOR_LIST"
app:simultaneousColors="NUMBER_OF_COLORS_YOU_WANT_TO_SHOW"
app:angle="ANGLE_ANIMATION_OF_COLORS"
app:speed="SPEED_OF_ANIMATION"
app:maxFPS="FRAME_PER_SECONDS"
app:customFont="YOUR_FONT_FROM_ASSETS"
4. Run your project.
Post a Comment
2 Comments
Not yet bro error
ReplyDeleteTell me error
Delete