Package ai.nexconn.chatui.widget
Class TextAnimationHelper
-
- All Implemented Interfaces:
public class TextAnimationHelperText display animation helper - handles ViewHolder reuse in RecyclerView
-
-
Constructor Summary
Constructors Constructor Description TextAnimationHelper()
-
Method Summary
Modifier and Type Method Description static voidaddPendingAnimation(String messageUid)Add a message UID that needs a display animation static voidstartWithUidCheck(View containerView, TextView textView, String text, String messageUid, boolean isLeftToRight)Smartly start a display animation based on message UID. static booleanneedsAnimation(String messageUid)Check whether the specified message UID needs an animation static voidclearAllCache()Clear all caches -
-
Method Detail
-
addPendingAnimation
static void addPendingAnimation(String messageUid)
Add a message UID that needs a display animation
-
startWithUidCheck
static void startWithUidCheck(View containerView, TextView textView, String text, String messageUid, boolean isLeftToRight)
Smartly start a display animation based on message UID. Uses animation for the first display, otherwise shows full content directly.
-
needsAnimation
static boolean needsAnimation(String messageUid)
Check whether the specified message UID needs an animation
-
clearAllCache
static void clearAllCache()
Clear all caches
-
-
-
-