|
|
@@ -1,5 +1,6 @@
|
|
|
package com.atmob.keyboard_android.component.item
|
|
|
|
|
|
+import android.text.TextUtils
|
|
|
import android.view.LayoutInflater
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
|
@@ -50,6 +51,14 @@ class AiKeyboardKeyViewBinder(
|
|
|
}
|
|
|
LottieAnimationUtil.stopLottieAnimation(holder.vLoveFlyLoadingLottieView)
|
|
|
}
|
|
|
+ // 设置文字超出1行后,启用跑马灯效果(必须代码设置,xml中设置会无效)
|
|
|
+ holder.vKeyText.apply {
|
|
|
+ ellipsize = TextUtils.TruncateAt.MARQUEE
|
|
|
+ isSingleLine = true
|
|
|
+ isSelected = true
|
|
|
+ isFocusable = true
|
|
|
+ isFocusableInTouchMode = true
|
|
|
+ }
|
|
|
holder.itemView.click {
|
|
|
onItemClick.invoke(holder.itemView, item)
|
|
|
}
|