TextAnimationHelper

public class TextAnimationHelper

文本展示动画帮助类 - 专门处理RecyclerView中ViewHolder复用的情况

Constructors

Link copied to clipboard
public void TextAnimationHelper()

Functions

Link copied to clipboard
public static void addPendingAnimation(String messageUid)
添加需要展示动画的消息UID
Link copied to clipboard
public static void clearAllCache()
清除所有缓存
Link copied to clipboard
public static boolean needsAnimation(String messageUid)
检查指定消息UID是否需要执行动画
Link copied to clipboard
public static void startWithUidCheck(View containerView, TextView textView, String text, String messageUid, boolean isLeftToRight)
根据消息UID智能启动展示动画 如果是第一次显示则使用动画,否则直接显示完整内容