Lucas Eduardo Active Member Licensed User Jun 26, 2020 #1 Hello, i did not found it in forum. Is there a way to do this effect in some image with B4A and B4I? https://gifmania.com.br/wp-content/uploads/2020/01/CORA%C3%87%C3%83O_BATENDO.gif Thank you.
Hello, i did not found it in forum. Is there a way to do this effect in some image with B4A and B4I? https://gifmania.com.br/wp-content/uploads/2020/01/CORA%C3%87%C3%83O_BATENDO.gif Thank you.
Jorge M A Well-Known Member Licensed User Jun 27, 2020 #2 Heart Beat Using Bezier Curves Touch screen to start, touch again to stop. Turn up volume for sound effects. www.b4x.com It is for Android. Upvote 0
Heart Beat Using Bezier Curves Touch screen to start, touch again to stop. Turn up volume for sound effects. www.b4x.com It is for Android.
Biswajit Active Member Licensed User Longtime User Jun 27, 2020 #3 Lucas Eduardo said: Hello, i did not found it in forum. Is there a way to do this effect in some image with B4A and B4I? https://gifmania.com.br/wp-content/uploads/2020/01/CORA%C3%87%C3%83O_BATENDO.gif Thank you. Click to expand... You can use an animation library. Or you can do it manually, Method 1: Create a label. Set text alignment to center (H+V) Set typeface/font to Fontawesome/ Material icon Set text to any heart icon. Create a function (say animateLabel) call SetLayoutAnimated and increase the label size within 2000ms call Sleep for 2000ms call SetLayoutAnimated and decrease the label size within 2000ms call Sleep for 2000ms call animateLabel again Method 2: Create a label. Set text alignment to center (H+V) Set typeface/font to Fontawesome/ Material icon Set text to any heart icon. Set label tag to 1 (from code) Create a timer with less than 500ms interval for smooth animation. On timer tick event check for max limit (say 40) if the text size is equal to 40 then set label tag to -1 OR check for min limit (say 20) if the text size is equal to 20 then set label tag to 1 Set label text size like (label.textsize = label.TextSize + label.tag Upvote 0
Lucas Eduardo said: Hello, i did not found it in forum. Is there a way to do this effect in some image with B4A and B4I? https://gifmania.com.br/wp-content/uploads/2020/01/CORA%C3%87%C3%83O_BATENDO.gif Thank you. Click to expand... You can use an animation library. Or you can do it manually, Method 1: Create a label. Set text alignment to center (H+V) Set typeface/font to Fontawesome/ Material icon Set text to any heart icon. Create a function (say animateLabel) call SetLayoutAnimated and increase the label size within 2000ms call Sleep for 2000ms call SetLayoutAnimated and decrease the label size within 2000ms call Sleep for 2000ms call animateLabel again Method 2: Create a label. Set text alignment to center (H+V) Set typeface/font to Fontawesome/ Material icon Set text to any heart icon. Set label tag to 1 (from code) Create a timer with less than 500ms interval for smooth animation. On timer tick event check for max limit (say 40) if the text size is equal to 40 then set label tag to -1 OR check for min limit (say 20) if the text size is equal to 20 then set label tag to 1 Set label text size like (label.textsize = label.TextSize + label.tag
LucaMs Expert Licensed User Longtime User Jun 27, 2020 #4 Try this one. Attachments Pulse.zip 22.5 KB · Views: 207 Last edited: Jun 27, 2020 Upvote 0
udg Expert Licensed User Longtime User Jun 27, 2020 #5 For some basic functionality you may have a look at my old library dgTextEffects. It makes use of the standard Andoird component TextSwitcher Upvote 0
For some basic functionality you may have a look at my old library dgTextEffects. It makes use of the standard Andoird component TextSwitcher
Lucas Eduardo Active Member Licensed User Jun 29, 2020 #6 Thank you guys. Is it possible to do this in the marker on map? Thank you. Attachments mapaCort.jpg 58 KB · Views: 188 Upvote 0